diff --git a/.github/workflows/manual_commands_triggers.yml b/.github/workflows/manual_commands_triggers.yml index 24436aacedf407..5265c1045e363b 100644 --- a/.github/workflows/manual_commands_triggers.yml +++ b/.github/workflows/manual_commands_triggers.yml @@ -32,7 +32,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Set up Go 1.x uses: actions/setup-go@v5 diff --git a/.github/workflows/publish_plugin_to_hub.yml b/.github/workflows/publish_plugin_to_hub.yml index 2e6b740b1fdd24..7e032176a211ba 100644 --- a/.github/workflows/publish_plugin_to_hub.yml +++ b/.github/workflows/publish_plugin_to_hub.yml @@ -11,6 +11,7 @@ jobs: prepare: runs-on: ubuntu-latest outputs: + plugin_name_undashed: ${{ steps.undash_plugin_name.outputs.plugin_name }} plugin_name: ${{ steps.split.outputs.plugin_name }} plugin_kind: ${{ steps.split.outputs.plugin_kind }} plugin_kind_plural: ${{ steps.split.outputs.plugin_kind_plural }} @@ -27,11 +28,25 @@ jobs: plugin_name=$(echo $tag | cut -d- -f3) plugin_kind_plural=$(if [ "$plugin_kind" = "source" ]; then echo "sources"; else echo "destinations"; fi) plugin_version=$(echo $tag | cut -d- -f4-) + # perform looping till either the plugin version passes our semver test or is empty + until [[ $plugin_version =~ ^v?[0-9]+\.[0-9]+ ]] || [[ $(echo $plugin_version | wc -c) -eq 0 ]] ; do + echo "${plugin_version} is not a valid version" + plugin_name="$plugin_name-$(echo $plugin_version | cut -d- -f1)" + plugin_version=$(echo $plugin_version | cut -d- -f2-) + done echo "plugin_name=${plugin_name}" >> $GITHUB_OUTPUT echo "plugin_kind=${plugin_kind}" >> $GITHUB_OUTPUT echo "plugin_kind_plural=${plugin_kind_plural}" >> $GITHUB_OUTPUT echo "plugin_version=${plugin_version}" >> $GITHUB_OUTPUT echo "plugin_dir=plugins/${plugin_kind}/${plugin_name}" >> $GITHUB_OUTPUT + - name: Undash + id: undash_plugin_name + env: + plugin_name: ${{ steps.split.outputs.plugin_name }} + run: | + p=$(echo $plugin_name | sed 's|-|_|g') + echo "plugin_name=${p}" >> $GITHUB_OUTPUT + # Fail if not a valid SemVer string - name: Parse semver string uses: booxmedialtd/ws-action-parse-semver@7784200024d6b3fc01253e617ec0168daf603de3 @@ -116,7 +131,7 @@ jobs: - name: Find and Replace uses: jacobtomlinson/gha-find-replace@3a8ed858a4e3fb487c6f53658ec40b2b1d45d9d8 with: - find: "(?i)version_${{ needs.prepare.outputs.plugin_kind }}_${{ needs.prepare.outputs.plugin_name }}" + find: "(?i)version_${{ needs.prepare.outputs.plugin_kind }}_${{ needs.prepare.outputs.plugin_name_undashed }}" replace: ${{ needs.prepare.outputs.plugin_version }} include: ${{ needs.prepare.outputs.plugin_dir }}/docs/*.md @@ -133,7 +148,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} @@ -190,7 +205,7 @@ jobs: - name: Find and Replace uses: jacobtomlinson/gha-find-replace@3a8ed858a4e3fb487c6f53658ec40b2b1d45d9d8 with: - find: "(?i)version_${{ needs.prepare.outputs.plugin_kind }}_${{ needs.prepare.outputs.plugin_name }}" + find: "(?i)version_${{ needs.prepare.outputs.plugin_kind }}_${{ needs.prepare.outputs.plugin_name_undashed }}" replace: ${{ needs.prepare.outputs.plugin_version }} include: ${{ needs.prepare.outputs.plugin_dir }}/docs/*.md @@ -207,7 +222,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} @@ -275,7 +290,7 @@ jobs: - name: Find and Replace uses: jacobtomlinson/gha-find-replace@3a8ed858a4e3fb487c6f53658ec40b2b1d45d9d8 with: - find: "(?i)version_${{ needs.prepare.outputs.plugin_kind }}_${{ needs.prepare.outputs.plugin_name }}" + find: "(?i)version_${{ needs.prepare.outputs.plugin_kind }}_${{ needs.prepare.outputs.plugin_name_undashed }}" replace: ${{ needs.prepare.outputs.plugin_version }} include: ${{ needs.prepare.outputs.plugin_dir }}/docs/*.md @@ -288,7 +303,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_duckdb.yml b/.github/workflows/publish_plugin_to_hub_duckdb.yml index 040c42d27bfe43..ad4d46db8e91c9 100644 --- a/.github/workflows/publish_plugin_to_hub_duckdb.yml +++ b/.github/workflows/publish_plugin_to_hub_duckdb.yml @@ -106,7 +106,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_motherduck.yml b/.github/workflows/publish_plugin_to_hub_motherduck.yml index 61b109f7f09b0e..b09377f1e216cc 100644 --- a/.github/workflows/publish_plugin_to_hub_motherduck.yml +++ b/.github/workflows/publish_plugin_to_hub_motherduck.yml @@ -106,7 +106,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_snowflake.yml b/.github/workflows/publish_plugin_to_hub_snowflake.yml index 35ad2315c5753c..663410ed8e29a9 100644 --- a/.github/workflows/publish_plugin_to_hub_snowflake.yml +++ b/.github/workflows/publish_plugin_to_hub_snowflake.yml @@ -107,7 +107,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/publish_plugin_to_hub_sqlite.yml b/.github/workflows/publish_plugin_to_hub_sqlite.yml index 12a82a3cd8f0a4..fa154c4d73eb36 100644 --- a/.github/workflows/publish_plugin_to_hub_sqlite.yml +++ b/.github/workflows/publish_plugin_to_hub_sqlite.yml @@ -106,7 +106,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: Publish plugin to hub working-directory: ${{ needs.prepare.outputs.plugin_dir }} diff --git a/.github/workflows/release_plugin.yml b/.github/workflows/release_plugin.yml index 5e2d016100fc18..58d5a0256b9c28 100644 --- a/.github/workflows/release_plugin.yml +++ b/.github/workflows/release_plugin.yml @@ -27,6 +27,12 @@ jobs: plugin_type=$(echo $tag | cut -d- -f2) plugin_name=$(echo $tag | cut -d- -f3) plugin_version=$(echo $tag | cut -d- -f4-) + # perform looping till either the plugin version passes our semver test or is empty + until [[ $plugin_version =~ ^v?[0-9]+\.[0-9]+ ]] || [[ $(echo $plugin_version | wc -c) -eq 0 ]] ; do + echo "${plugin_version} is not a valid version" + plugin_name="$plugin_name-$(echo $plugin_version | cut -d- -f1)" + plugin_version=$(echo $plugin_version | cut -d- -f2-) + done echo "plugin_name=${plugin_name}" >> $GITHUB_OUTPUT echo "plugin_type=${plugin_type}" >> $GITHUB_OUTPUT echo "plugin_version=${plugin_version}" >> $GITHUB_OUTPUT diff --git a/.github/workflows/source_alicloud.yml b/.github/workflows/source_alicloud.yml index e4eafae56c572e..877ed55d6b6281 100644 --- a/.github/workflows/source_alicloud.yml +++ b/.github/workflows/source_alicloud.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_aws.yml b/.github/workflows/source_aws.yml index ce7d51af45b78d..15c3db0c6f3792 100644 --- a/.github/workflows/source_aws.yml +++ b/.github/workflows/source_aws.yml @@ -49,7 +49,7 @@ jobs: - name: Setup CloudQuery uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_awspricing.yml b/.github/workflows/source_awspricing.yml index 4445fdc867f182..e6d426a728cceb 100644 --- a/.github/workflows/source_awspricing.yml +++ b/.github/workflows/source_awspricing.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_azure.yml b/.github/workflows/source_azure.yml index aba6018053dbb5..24417ce7a1157a 100644 --- a/.github/workflows/source_azure.yml +++ b/.github/workflows/source_azure.yml @@ -47,7 +47,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_cloudflare.yml b/.github/workflows/source_cloudflare.yml index 1e032b93bf395d..efecf2153276b3 100644 --- a/.github/workflows/source_cloudflare.yml +++ b/.github/workflows/source_cloudflare.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_datadog.yml b/.github/workflows/source_datadog.yml index 5c8b6841ac3ccc..75de594de1ea91 100644 --- a/.github/workflows/source_datadog.yml +++ b/.github/workflows/source_datadog.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_digitalocean.yml b/.github/workflows/source_digitalocean.yml index 29fd55c5d45fce..b6d741a78cb191 100644 --- a/.github/workflows/source_digitalocean.yml +++ b/.github/workflows/source_digitalocean.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_gcp.yml b/.github/workflows/source_gcp.yml index f02e15612391d6..1ce3a8e1961ce6 100644 --- a/.github/workflows/source_gcp.yml +++ b/.github/workflows/source_gcp.yml @@ -47,7 +47,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_github.yml b/.github/workflows/source_github.yml index 1dfb84739249a9..d313f445428e7e 100644 --- a/.github/workflows/source_github.yml +++ b/.github/workflows/source_github.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_gitlab.yml b/.github/workflows/source_gitlab.yml index f26c3b5289e15d..026b8f0e9e0dc3 100644 --- a/.github/workflows/source_gitlab.yml +++ b/.github/workflows/source_gitlab.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_hackernews.yml b/.github/workflows/source_hackernews.yml index 38d1dec495bb47..591b28045d6f05 100644 --- a/.github/workflows/source_hackernews.yml +++ b/.github/workflows/source_hackernews.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_hubspot.yml b/.github/workflows/source_hubspot.yml index 59676b98e729a6..6899c2c0134904 100644 --- a/.github/workflows/source_hubspot.yml +++ b/.github/workflows/source_hubspot.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_k8s.yml b/.github/workflows/source_k8s.yml index 88ada94f40f55d..cd2fb8ee72d035 100644 --- a/.github/workflows/source_k8s.yml +++ b/.github/workflows/source_k8s.yml @@ -47,7 +47,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_notion.yml b/.github/workflows/source_notion.yml index dba4d56e9ec8a8..4d0be98d69cdc9 100644 --- a/.github/workflows/source_notion.yml +++ b/.github/workflows/source_notion.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_okta.yml b/.github/workflows/source_okta.yml index 44886193f5f6e8..631d2894235fce 100644 --- a/.github/workflows/source_okta.yml +++ b/.github/workflows/source_okta.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_oracle.yml b/.github/workflows/source_oracle.yml index 04933eb3a7e9fc..0273c532fa442c 100644 --- a/.github/workflows/source_oracle.yml +++ b/.github/workflows/source_oracle.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen-docs if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_pagerduty.yml b/.github/workflows/source_pagerduty.yml index fc82c066d3b2e1..1fb93e52c8cc64 100644 --- a/.github/workflows/source_pagerduty.yml +++ b/.github/workflows/source_pagerduty.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.github/workflows/source_test.yml b/.github/workflows/source_test.yml index c32a10b6aa6e74..52c72575ca2f49 100644 --- a/.github/workflows/source_test.yml +++ b/.github/workflows/source_test.yml @@ -46,7 +46,7 @@ jobs: if: github.event_name == 'pull_request' uses: cloudquery/setup-cloudquery@v3 with: - version: v5.8.2 + version: v5.8.3 - name: gen if: github.event_name == 'pull_request' run: make gen diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 937bef9c826860..83892b15a4258d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - "cli": "5.8.3", + "cli": "5.9.0", "cli+FILLER": "0.0.0", "plugins/source/aws": "22.19.2", "plugins/source/aws+FILLER": "0.0.0", @@ -11,17 +11,17 @@ "plugins/source/digitalocean+FILLER": "0.0.0", "plugins/source/gcp": "10.0.0", "plugins/source/gcp+FILLER": "0.0.0", - "plugins/source/github": "8.1.1", + "plugins/source/github": "8.1.2", "plugins/source/github+FILLER": "0.0.0", - "plugins/source/k8s": "6.0.5", + "plugins/source/k8s": "6.0.6", "plugins/source/k8s+FILLER": "0.0.0", - "plugins/source/okta": "4.1.2", + "plugins/source/okta": "4.1.3", "plugins/source/okta+FILLER": "0.0.0", "plugins/source/terraform": "3.0.12", "plugins/source/terraform+FILLER": "0.0.0", - "plugins/source/test": "4.2.0", + "plugins/source/test": "4.2.2", "plugins/source/test+FILLER": "0.0.0", - "plugins/destination/postgresql": "7.3.7", + "plugins/destination/postgresql": "7.4.0", "plugins/destination/postgresql+FILLER": "0.0.0", "plugins/destination/test": "2.3.2", "plugins/destination/test+FILLER": "0.0.0", @@ -33,11 +33,11 @@ "plugins/source/datadog+FILLER": "0.0.0", "plugins/destination/bigquery": "3.4.3", "plugins/destination/bigquery+FILLER": "0.0.0", - "plugins/source/pagerduty": "3.2.2", + "plugins/source/pagerduty": "3.2.3", "plugins/source/pagerduty+FILLER": "0.0.0", "plugins/destination/mongodb": "2.3.2", "plugins/destination/mongodb+FILLER": "0.0.0", - "plugins/source/gitlab": "4.2.2", + "plugins/source/gitlab": "4.2.3", "plugins/source/gitlab+FILLER": "0.0.0", "plugins/destination/gcs": "3.6.1", "plugins/destination/gcs+FILLER": "0.0.0", @@ -51,9 +51,9 @@ "plugins/destination/neo4j+FILLER": "0.0.0", "plugins/destination/kafka": "3.3.2", "plugins/destination/kafka+FILLER": "0.0.0", - "plugins/source/hackernews": "3.0.24", + "plugins/source/hackernews": "3.0.25", "plugins/source/hackernews+FILLER": "0.0.0", - "scaffold": "3.0.5", + "scaffold": "3.0.6", "scaffold+FILLER": "0.0.0", "plugins/source/oracle": "4.2.14", "plugins/source/oracle+FILLER": "0.0.0", @@ -63,7 +63,7 @@ "plugins/destination/mssql+FILLER": "0.0.0", "plugins/source/stripe": "2.1.12", "plugins/source/stripe+FILLER": "0.0.0", - "plugins/source/hubspot": "3.1.3", + "plugins/source/hubspot": "3.1.4", "plugins/source/hubspot+FILLER": "0.0.0", "plugins/destination/elasticsearch": "3.2.3", "plugins/destination/elasticsearch+FILLER": "0.0.0", @@ -89,21 +89,21 @@ "plugins/destination/gremlin+FILLER": "0.0.0", "plugins/destination/meilisearch": "2.3.2", "plugins/destination/meilisearch+FILLER": "1.0.0", - "plugins/source/firestore": "3.1.3", + "plugins/source/firestore": "3.1.4", "plugins/source/firestore+FILLER": "0.0.0", "plugins/source/oracledb": "3.0.12", "plugins/source/oracledb+FILLER": "0.0.0", - "plugins/source/square": "1.2.1", + "plugins/source/square": "1.2.2", "plugins/source/square+FILLER": "0.0.0", - "plugins/source/typeform": "1.3.1", + "plugins/source/typeform": "1.3.3", "plugins/source/typeform+FILLER": "0.0.0", "plugins/source/jira": "1.0.10", "plugins/source/jira+FILLER": "0.0.0", "plugins/source/vault": "1.0.8", "plugins/source/vault+FILLER": "0.0.0", - "plugins/source/airtable": "2.1.0", + "plugins/source/airtable": "2.1.1", "plugins/source/airtable+FILLER": "0.0.0", "plugins/source/bitbucket": "1.1.0", "plugins/source/bitbucket+FILLER": "0.0.0", - "plugins/source/notion": "1.1.2" + "plugins/source/notion": "1.1.3" } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c61826f85e6f50..c3369195fee4f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,7 +66,7 @@ CloudQuery has the ability to be run locally with a corresponding local Postgres * [Development Environment](./contributing/development_environment.md) * [Connecting to a database](https://docs.cloudquery.io/docs/getting-started#spawn-or-connect-to-a-database) -* [Debugging a plugin](https://docs.cloudquery.io/docs/developers/debugging) +* [Running plugins locally](https://docs.cloudquery.io/docs/developers/running-locally) * [Developing a new plugin](https://docs.cloudquery.io/docs/developers/developing-new-provider) #### Further guides diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 9eb65d1a2a2fa2..ea15b0ba06ebe5 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -5,6 +5,19 @@ All notable changes to CloudQuery will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.9.0](https://github.com/cloudquery/cloudquery/compare/cli-v5.8.3...cli-v5.9.0) (2024-03-12) + + +### Features + +* Add `invocation-id` to all log statements ([#17087](https://github.com/cloudquery/cloudquery/issues/17087)) ([7154f9e](https://github.com/cloudquery/cloudquery/commit/7154f9eb9fcc55e0e034ffa6dbfbedc31c6f7257)) + + +### Bug Fixes + +* **deps:** Update Google Golang modules ([#17094](https://github.com/cloudquery/cloudquery/issues/17094)) ([7055ebf](https://github.com/cloudquery/cloudquery/commit/7055ebf3c4ef3f952e461b243b8b2b57d1e681f9)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [5.8.3](https://github.com/cloudquery/cloudquery/compare/cli-v5.8.2...cli-v5.8.3) (2024-03-05) diff --git a/cli/cmd/logging.go b/cli/cmd/logging.go index 60833a497c9e09..5bb9d7e199aad6 100644 --- a/cli/cmd/logging.go +++ b/cli/cmd/logging.go @@ -48,6 +48,6 @@ func initLogging(noLogFile bool, logLevel *enum.Enum, logFormat *enum.Enum, logC } } mw := io.MultiWriter(writers...) - log.Logger = zerolog.New(mw).Level(zerologLevel).With().Str("module", "cli").Timestamp().Logger() + log.Logger = zerolog.New(mw).Level(zerologLevel).With().Str("module", "cli").Str("invocation-id", invocationUUID.String()).Timestamp().Logger() return logFile, nil } diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 666934a459d86d..1715c831efd7b0 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -5,6 +5,7 @@ import ( "os" "time" + "github.com/google/uuid" "github.com/rs/zerolog" "github.com/cloudquery/cloudquery/cli/internal/enum" @@ -29,6 +30,7 @@ Find more information at: disableSentry = false analyticsClient *AnalyticsClient logFile *os.File + invocationUUID uuid.UUID ) func NewCmdRoot() *cobra.Command { @@ -67,6 +69,12 @@ func NewCmdRoot() *cobra.Command { // PersistentPreRunE runs after argument parsing, so errors during parsing will result in printing the help cmd.SilenceUsage = true var err error + + invocationUUID, err = uuid.NewRandom() + if err != nil { + return fmt.Errorf("failed to generate invocation uuid: %w", err) + } + if logFile, err = initLogging(noLogFile, logLevel, logFormat, logConsole, logFileName); err != nil { return err } diff --git a/cli/cmd/sync.go b/cli/cmd/sync.go index e5924beb3db21e..5986405760f4aa 100644 --- a/cli/cmd/sync.go +++ b/cli/cmd/sync.go @@ -7,8 +7,6 @@ import ( "slices" "strings" - "github.com/google/uuid" - apiAuth "github.com/cloudquery/cloudquery-api-go/auth" "github.com/cloudquery/cloudquery/cli/internal/auth" "github.com/cloudquery/cloudquery/cli/internal/specs/v0" @@ -105,10 +103,6 @@ func sync(cmd *cobra.Command, args []string) error { return fmt.Errorf("failed to load spec(s) from %s. Error: %w", strings.Join(args, ", "), err) } - invocationUUID, err := uuid.NewRandom() - if err != nil { - return fmt.Errorf("failed to generate invocation uuid: %w", err) - } sources := specReader.Sources destinations := specReader.Destinations sourcePluginClients := make(managedplugin.Clients, 0) diff --git a/cli/go.mod b/cli/go.mod index 4b6e0501811886..b5bea430838868 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -9,7 +9,7 @@ require ( github.com/cloudquery/cloudquery-api-go v1.7.5 github.com/cloudquery/codegen v0.3.12 github.com/cloudquery/plugin-pb-go v1.19.2 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/distribution/reference v0.5.0 github.com/docker/distribution v2.8.3+incompatible github.com/docker/docker v25.0.3+incompatible @@ -33,8 +33,8 @@ require ( golang.org/x/net v0.21.0 golang.org/x/sync v0.6.0 golang.org/x/term v0.17.0 - google.golang.org/grpc v1.62.0 - google.golang.org/protobuf v1.32.0 + google.golang.org/grpc v1.62.1 + google.golang.org/protobuf v1.33.0 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/cli/go.sum b/cli/go.sum index de6b7b646a9ab9..75177e9a52bf44 100644 --- a/cli/go.sum +++ b/cli/go.sum @@ -72,8 +72,8 @@ github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOC github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= github.com/cloudquery/plugin-pb-go v1.19.2 h1:HExE7KUpz/ocJI0AWrewbf0k0VphaR2Qgbcc6nmKLso= github.com/cloudquery/plugin-pb-go v1.19.2/go.mod h1:QfbIZ2/bsC+t44SzCumpK5G+uE5q57s8ZnQT1GtGKI4= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= @@ -518,12 +518,12 @@ gonum.org/v1/gonum v0.12.0 h1:xKuo6hzt+gMav00meVPUlXwSdoEJP46BR+wdxQEFK2o= gonum.org/v1/gonum v0.12.0/go.mod h1:73TDxJfAAHeA8Mk9mf8NlIppyhQNo5GLTcYeqgo2lvY= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 h1:KAeGQVN3M9nD0/bQXnr/ClcEMJ968gUXJQ9pwfSynuQ= -google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe h1:0poefMBYvYbs7g5UkjS6HcxBPaTRAmznle9jnxYoAI8= -google.golang.org/genproto/googleapis/api v0.0.0-20240125205218-1f4bbc51befe/go.mod h1:4jWUdICTdgc3Ibxmr8nAJiiLHwQBY0UI0XZcEMaFKaA= +google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1:SO1wX9btGFrwj9EzH3ocqfwiPVOxfv4ggAJajzlHA5s= +google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= -google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= +google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= +google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -532,8 +532,8 @@ google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzi google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= -google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/plugins/destination/azblob/go.mod b/plugins/destination/azblob/go.mod index 334fa0b2640c24..7bb98e87085866 100644 --- a/plugins/destination/azblob/go.mod +++ b/plugins/destination/azblob/go.mod @@ -10,7 +10,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 github.com/cloudquery/codegen v0.3.12 github.com/cloudquery/filetypes/v4 v4.2.11 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -42,7 +42,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -134,7 +134,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/azblob/go.sum b/plugins/destination/azblob/go.sum index 91c098436031e0..0560feb3db2999 100644 --- a/plugins/destination/azblob/go.sum +++ b/plugins/destination/azblob/go.sum @@ -69,12 +69,12 @@ github.com/cloudquery/filetypes/v4 v4.2.11 h1:FxLM0to2wHr/pT2NcqGpbtCuVxvZpSVIDc github.com/cloudquery/filetypes/v4 v4.2.11/go.mod h1:eqgWrMw9wrSDmTioNVEbbESdP+z91t827mDTbi26w0Q= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -122,8 +122,8 @@ github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MG github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw= github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -388,8 +388,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/bigquery/go.mod b/plugins/destination/bigquery/go.mod index e1c2b91980c6e6..3a563ca07bb312 100644 --- a/plugins/destination/bigquery/go.mod +++ b/plugins/destination/bigquery/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go/bigquery v1.59.1 github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.31.0 @@ -33,7 +33,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -63,8 +63,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -81,8 +81,8 @@ require ( github.com/schollz/closestmatch v2.1.0+incompatible // indirect github.com/sirupsen/logrus v1.9.3 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect diff --git a/plugins/destination/bigquery/go.sum b/plugins/destination/bigquery/go.sum index ecdcdd653e2ef5..d5472a981e3951 100644 --- a/plugins/destination/bigquery/go.sum +++ b/plugins/destination/bigquery/go.sum @@ -73,12 +73,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= @@ -212,11 +212,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -297,10 +297,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= diff --git a/plugins/destination/clickhouse/go.mod b/plugins/destination/clickhouse/go.mod index 6279353d326a4f..94ed9cb9560202 100644 --- a/plugins/destination/clickhouse/go.mod +++ b/plugins/destination/clickhouse/go.mod @@ -6,9 +6,9 @@ require ( github.com/ClickHouse/clickhouse-go/v2 v2.10.1 github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 - github.com/google/uuid v1.5.0 + github.com/google/uuid v1.6.0 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 golang.org/x/sync v0.6.0 @@ -34,7 +34,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -70,8 +70,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -95,8 +95,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -126,7 +126,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/clickhouse/go.sum b/plugins/destination/clickhouse/go.sum index 9c307e4d77c285..44cecd2a2ea786 100644 --- a/plugins/destination/clickhouse/go.sum +++ b/plugins/destination/clickhouse/go.sum @@ -55,12 +55,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -109,8 +109,8 @@ github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -128,8 +128,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -166,11 +166,11 @@ github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwf github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -260,10 +260,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -399,8 +399,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= diff --git a/plugins/destination/duckdb/go.mod b/plugins/destination/duckdb/go.mod index c992230bae5adc..c3e3ddf33e42c5 100644 --- a/plugins/destination/duckdb/go.mod +++ b/plugins/destination/duckdb/go.mod @@ -6,8 +6,8 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cenkalti/backoff/v4 v4.2.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 - github.com/google/uuid v1.5.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 + github.com/google/uuid v1.6.0 github.com/marcboeker/go-duckdb v1.5.6 github.com/rs/zerolog v1.31.0 ) @@ -31,7 +31,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -67,8 +67,8 @@ require ( github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect github.com/klauspost/asmfmt v1.3.2 // indirect - github.com/klauspost/compress v1.17.6 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -92,8 +92,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -124,7 +124,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/duckdb/go.sum b/plugins/destination/duckdb/go.sum index 63297ee4ab4d83..ae5888a979ab16 100644 --- a/plugins/destination/duckdb/go.sum +++ b/plugins/destination/duckdb/go.sum @@ -55,12 +55,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -104,8 +104,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -121,8 +121,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -159,11 +159,11 @@ github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= github.com/klauspost/asmfmt v1.3.2 h1:4Ri7ox3EwapiOjCki+hw14RyKk201CN4rzyCJRFLpK4= github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= -github.com/klauspost/compress v1.17.6 h1:60eq2E/jlfwQXtvZEeBUYADs+BwKBWURIY+Gj2eRGjI= -github.com/klauspost/compress v1.17.6/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -252,10 +252,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -369,8 +369,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/elasticsearch/go.mod b/plugins/destination/elasticsearch/go.mod index 48cbbb442dc1da..1b646fbc8e9976 100644 --- a/plugins/destination/elasticsearch/go.mod +++ b/plugins/destination/elasticsearch/go.mod @@ -6,7 +6,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cenkalti/backoff/v4 v4.2.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/elastic/go-elasticsearch/v8 v8.6.0 github.com/goccy/go-json v0.10.2 github.com/invopop/jsonschema v0.11.0 @@ -34,7 +34,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -55,7 +55,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -69,8 +69,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -91,8 +91,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -120,7 +120,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/elasticsearch/go.sum b/plugins/destination/elasticsearch/go.sum index 872613b0faea1c..270ee086018a20 100644 --- a/plugins/destination/elasticsearch/go.sum +++ b/plugins/destination/elasticsearch/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -104,8 +104,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -121,8 +121,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -157,11 +157,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -243,10 +243,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -360,8 +360,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/file/go.mod b/plugins/destination/file/go.mod index ae7ae9bd43aba1..1d13dacf39b6de 100644 --- a/plugins/destination/file/go.mod +++ b/plugins/destination/file/go.mod @@ -5,10 +5,10 @@ go 1.21.5 toolchain go1.21.6 require ( - github.com/apache/arrow/go/v15 v15.0.0 + github.com/apache/arrow/go/v15 v15.0.1 github.com/cloudquery/codegen v0.3.12 github.com/cloudquery/filetypes/v4 v4.2.11 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/google/go-cmp v0.6.0 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -37,7 +37,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -126,7 +126,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/file/go.sum b/plugins/destination/file/go.sum index 194b2d041c7c61..b3c49fb74aba59 100644 --- a/plugins/destination/file/go.sum +++ b/plugins/destination/file/go.sum @@ -21,8 +21,8 @@ github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1 github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/apache/arrow/go/v13 v13.0.0-20230731205701-112f94971882 h1:mFDZW1FQk9yndPvxScp7RpcOpdSHaqcgBWO7sDlx4S8= github.com/apache/arrow/go/v13 v13.0.0-20230731205701-112f94971882/go.mod h1:W69eByFNO0ZR30q1/7Sr9d83zcVZmF2MiP3fFYAWJOc= -github.com/apache/arrow/go/v15 v15.0.0 h1:1zZACWf85oEZY5/kd9dsQS7i+2G5zVQcbKTHgslqHNA= -github.com/apache/arrow/go/v15 v15.0.0/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= +github.com/apache/arrow/go/v15 v15.0.1 h1:mq61hYtKBel8wCYrOM4yY4YzJ05IA2qZUrevXe5IbZQ= +github.com/apache/arrow/go/v15 v15.0.1/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= github.com/apache/thrift v0.19.0 h1:sOqkWPzMj7w6XaYbJQG7m4sGqVolaW/0D28Ln7yPzMk= github.com/apache/thrift v0.19.0/go.mod h1:SUALL216IiaOw2Oy+5Vs9lboJ/t9g40C+G07Dc0QC1I= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= @@ -57,12 +57,12 @@ github.com/cloudquery/filetypes/v4 v4.2.11 h1:FxLM0to2wHr/pT2NcqGpbtCuVxvZpSVIDc github.com/cloudquery/filetypes/v4 v4.2.11/go.mod h1:eqgWrMw9wrSDmTioNVEbbESdP+z91t827mDTbi26w0Q= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -106,8 +106,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -366,8 +366,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/firehose/go.mod b/plugins/destination/firehose/go.mod index 18bbeae4087eba..22435f53dc63a6 100644 --- a/plugins/destination/firehose/go.mod +++ b/plugins/destination/firehose/go.mod @@ -6,11 +6,11 @@ toolchain go1.21.6 require ( github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 - github.com/aws/aws-sdk-go-v2 v1.25.2 - github.com/aws/aws-sdk-go-v2/config v1.27.4 - github.com/aws/aws-sdk-go-v2/service/firehose v1.28.1 + github.com/aws/aws-sdk-go-v2 v1.25.3 + github.com/aws/aws-sdk-go-v2/config v1.27.7 + github.com/aws/aws-sdk-go-v2/service/firehose v1.28.2 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 @@ -26,16 +26,16 @@ require ( github.com/andybalholm/brotli v1.1.0 // indirect github.com/apache/arrow/go/v13 v13.0.0-20230731205701-112f94971882 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.4 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.7 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 // indirect github.com/aws/smithy-go v1.20.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect @@ -45,7 +45,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -65,7 +65,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -80,8 +80,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -101,8 +101,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -133,7 +133,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/firehose/go.sum b/plugins/destination/firehose/go.sum index 296b9a996887ef..7d0a9894ebc78b 100644 --- a/plugins/destination/firehose/go.sum +++ b/plugins/destination/firehose/go.sum @@ -23,32 +23,32 @@ github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 h1:iRgSd0hkAl github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= -github.com/aws/aws-sdk-go-v2 v1.25.2 h1:/uiG1avJRgLGiQM9X3qJM8+Qa6KRGK5rRPuXE0HUM+w= -github.com/aws/aws-sdk-go-v2 v1.25.2/go.mod h1:Evoc5AsmtveRt1komDwIsjHFyrP5tDuF1D1U+6z6pNo= -github.com/aws/aws-sdk-go-v2/config v1.27.4 h1:AhfWb5ZwimdsYTgP7Od8E9L1u4sKmDW2ZVeLcf2O42M= -github.com/aws/aws-sdk-go-v2/config v1.27.4/go.mod h1:zq2FFXK3A416kiukwpsd+rD4ny6JC7QSkp4QdN1Mp2g= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4 h1:h5Vztbd8qLppiPwX+y0Q6WiwMZgpd9keKe2EAENgAuI= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4/go.mod h1:+30tpwrkOgvkJL1rUZuRLoxcJwtI/OkeBLYnHxJtVe0= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 h1:AK0J8iYBFeUk2Ax7O8YpLtFsfhdOByh2QIkHmigpRYk= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2/go.mod h1:iRlGzMix0SExQEviAyptRWRGdYNo3+ufW/lCzvKVTUc= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 h1:bNo4LagzUKbjdxE0tIcR9pMzLR2U/Tgie1Hq1HQ3iH8= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2/go.mod h1:wRQv0nN6v9wDXuWThpovGQjqF1HFdcgWjporw14lS8k= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 h1:EtOU5jsPdIQNP+6Q2C5e3d65NKT1PeCiQk+9OdzO12Q= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2/go.mod h1:tyF5sKccmDz0Bv4NrstEr+/9YkSPJHrcO7UsUKf7pWM= +github.com/aws/aws-sdk-go-v2 v1.25.3 h1:xYiLpZTQs1mzvz5PaI6uR0Wh57ippuEthxS4iK5v0n0= +github.com/aws/aws-sdk-go-v2 v1.25.3/go.mod h1:35hUlJVYd+M++iLI3ALmVwMOyRYMmRqUXpTtRGW+K9I= +github.com/aws/aws-sdk-go-v2/config v1.27.7 h1:JSfb5nOQF01iOgxFI5OIKWwDiEXWTyTgg1Mm1mHi0A4= +github.com/aws/aws-sdk-go-v2/config v1.27.7/go.mod h1:PH0/cNpoMO+B04qET699o5W92Ca79fVtbUnvMIZro4I= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7 h1:WJd+ubWKoBeRh7A5iNMnxEOs982SyVKOJD+K8HIezu4= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7/go.mod h1:UQi7LMR0Vhvs+44w5ec8Q+VS+cd10cjwgHwiVkE0YGU= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 h1:p+y7FvkK2dxS+FEwRIDHDe//ZX+jDhP8HHE50ppj4iI= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3/go.mod h1:/fYB+FZbDlwlAiynK9KDXlzZl3ANI9JkD0Uhz5FjNT4= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 h1:ifbIbHZyGl1alsAhPIYsHOg5MuApgqOvVeI8wIugXfs= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3/go.mod h1:oQZXg3c6SNeY6OZrDY+xHcF4VGIEoNotX2B4PrDeoJI= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 h1:Qvodo9gHG9F3E8SfYOspPeBt0bjSbsevK8WhRAUHcoY= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3/go.mod h1:vCKrdLXtybdf/uQd/YfVR2r5pcbNuEYKzMQpcxmeSJw= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/service/firehose v1.28.1 h1:MUpdcOKpTyPt6F3rgHZVs2o9sqpfMW1KEFsSeRw7srs= -github.com/aws/aws-sdk-go-v2/service/firehose v1.28.1/go.mod h1:Y4zm0U9Yl0wt9JOhgt97YeQe/st7UHDbSjvLd1j3Bp8= +github.com/aws/aws-sdk-go-v2/service/firehose v1.28.2 h1:UUZd0OkSUIxCjOfMxTs5DVHSfU1BeHFDhYUQecLmCt0= +github.com/aws/aws-sdk-go-v2/service/firehose v1.28.2/go.mod h1:J/jz2p5nOXCQsJ1qe0Lvmukdd7vDdg6Kv2W1ZQ/EA/o= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 h1:EyBZibRTVAs6ECHZOw5/wlylS9OcTzwyjeQMudmREjE= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1/go.mod h1:JKpmtYhhPs7D97NL/ltqz7yCkERFW5dOlHyVl66ZYF8= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 h1:5ffmXjPtwRExp1zc7gENLgCPyHFbhEPwVTkTiH9niSk= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2/go.mod h1:Ru7vg1iQ7cR4i7SZ/JTLYN9kaXtbL69UdgG0OQWQxW0= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 h1:utEGkfdQ4L6YW/ietH7111ZYglLJvS+sLriHJ1NBJEQ= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1/go.mod h1:RsYqzYr2F2oPDdpy+PdhephuZxTfjHQe7SOBcZGoAU8= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 h1:9/GylMS45hGGFCcMrUZDVayQE1jYSIN6da9jo7RAYIw= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1/go.mod h1:YjAPFn4kGFqKC54VsHs5fn5B6d+PCY2tziEa3U/GB5Y= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 h1:3I2cBEYgKhrWlwyZgfpSO2BpaMY1LHPqXYk/QGlu2ew= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1/go.mod h1:uQ7YYKZt3adCRrdCBREm1CD3efFLOUNH77MrUCvx5oA= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 h1:K/NXvIftOlX+oGgWGIa3jDyYLDNsdVhsjHmsBH2GLAQ= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5/go.mod h1:cl9HGLV66EnCmMNzq4sYOti+/xo8w34CsgzVtm2GgsY= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 h1:XOPfar83RIRPEzfihnp+U6udOveKZJvPQ76SKWrLRHc= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2/go.mod h1:Vv9Xyk1KMHXrR3vNQe8W5LMFdTjSeWk0gBZBzvf3Qa0= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 h1:pi0Skl6mNl2w8qWZXcdOyg197Zsf4G97U7Sso9JXGZE= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2/go.mod h1:JYzLoEVeLXk+L4tn1+rrkfhkxl6mLDEVaDSvGq9og90= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 h1:Ppup1nVNAOWbBOrcoOxaxPeEnSFB2RnnQdguhXpmeQk= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4/go.mod h1:+K1rNPVyGxkRuv9NNiaZ4YhBFuyw2MMA9SlIJ1Zlpz8= github.com/aws/smithy-go v1.20.1 h1:4SZlSlMr36UEqC7XOyRVb27XMeZubNcBNN+9IgEPIQw= github.com/aws/smithy-go v1.20.1/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= @@ -79,12 +79,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -128,8 +128,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -145,8 +145,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -181,11 +181,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -265,10 +265,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -382,8 +382,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/gcs/go.mod b/plugins/destination/gcs/go.mod index f4402b9f28b000..2da89e21b826d2 100644 --- a/plugins/destination/gcs/go.mod +++ b/plugins/destination/gcs/go.mod @@ -9,7 +9,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 github.com/cloudquery/codegen v0.3.12 github.com/cloudquery/filetypes/v4 v4.2.11 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.31.0 @@ -42,7 +42,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -142,7 +142,7 @@ require ( google.golang.org/genproto v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/gcs/go.sum b/plugins/destination/gcs/go.sum index 572a7d66cd83a7..81dfac23dad326 100644 --- a/plugins/destination/gcs/go.sum +++ b/plugins/destination/gcs/go.sum @@ -71,15 +71,15 @@ github.com/cloudquery/filetypes/v4 v4.2.11 h1:FxLM0to2wHr/pT2NcqGpbtCuVxvZpSVIDc github.com/cloudquery/filetypes/v4 v4.2.11/go.mod h1:eqgWrMw9wrSDmTioNVEbbESdP+z91t827mDTbi26w0Q= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101 h1:7To3pQ+pZo0i3dsWEbinPNFs5gPSBOsJtx3wTT94VBY= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa h1:jQCWAUqqlij9Pgj2i/PB79y4KOPYVyFYdROxgaCwdTQ= +github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -91,8 +91,8 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= -github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= +github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= +github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= @@ -132,8 +132,8 @@ github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -479,8 +479,8 @@ google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyac google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/plugins/destination/gremlin/go.mod b/plugins/destination/gremlin/go.mod index 4c88ef6bd48351..33dc21e9b7dc26 100644 --- a/plugins/destination/gremlin/go.mod +++ b/plugins/destination/gremlin/go.mod @@ -5,11 +5,11 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/apache/tinkerpop/gremlin-go/v3 v3.6.3 - github.com/aws/aws-sdk-go-v2 v1.25.2 - github.com/aws/aws-sdk-go-v2/config v1.27.4 + github.com/aws/aws-sdk-go-v2 v1.25.3 + github.com/aws/aws-sdk-go-v2/config v1.27.7 github.com/cenkalti/backoff/v4 v4.2.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/invopop/jsonschema v0.11.0 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 @@ -26,16 +26,16 @@ require ( github.com/andybalholm/brotli v1.1.0 // indirect github.com/apache/arrow/go/v13 v13.0.0-20230731205701-112f94971882 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.4 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.7 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 // indirect github.com/aws/smithy-go v1.20.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect @@ -44,7 +44,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -65,7 +65,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/gorilla/websocket v1.5.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect @@ -80,8 +80,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -102,8 +102,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -133,7 +133,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/gremlin/go.sum b/plugins/destination/gremlin/go.sum index a34c1cb9e0843b..3556d3d3738418 100644 --- a/plugins/destination/gremlin/go.sum +++ b/plugins/destination/gremlin/go.sum @@ -26,30 +26,30 @@ github.com/apache/tinkerpop/gremlin-go/v3 v3.6.3 h1:jXN0ZqT972CRu3VSwdj3rpqOA2A7 github.com/apache/tinkerpop/gremlin-go/v3 v3.6.3/go.mod h1:KZ4BFULeKTVqzgX41fiTj2XYTs9meWc/TWQHsICy69I= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= -github.com/aws/aws-sdk-go-v2 v1.25.2 h1:/uiG1avJRgLGiQM9X3qJM8+Qa6KRGK5rRPuXE0HUM+w= -github.com/aws/aws-sdk-go-v2 v1.25.2/go.mod h1:Evoc5AsmtveRt1komDwIsjHFyrP5tDuF1D1U+6z6pNo= -github.com/aws/aws-sdk-go-v2/config v1.27.4 h1:AhfWb5ZwimdsYTgP7Od8E9L1u4sKmDW2ZVeLcf2O42M= -github.com/aws/aws-sdk-go-v2/config v1.27.4/go.mod h1:zq2FFXK3A416kiukwpsd+rD4ny6JC7QSkp4QdN1Mp2g= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4 h1:h5Vztbd8qLppiPwX+y0Q6WiwMZgpd9keKe2EAENgAuI= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4/go.mod h1:+30tpwrkOgvkJL1rUZuRLoxcJwtI/OkeBLYnHxJtVe0= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 h1:AK0J8iYBFeUk2Ax7O8YpLtFsfhdOByh2QIkHmigpRYk= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2/go.mod h1:iRlGzMix0SExQEviAyptRWRGdYNo3+ufW/lCzvKVTUc= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 h1:bNo4LagzUKbjdxE0tIcR9pMzLR2U/Tgie1Hq1HQ3iH8= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2/go.mod h1:wRQv0nN6v9wDXuWThpovGQjqF1HFdcgWjporw14lS8k= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 h1:EtOU5jsPdIQNP+6Q2C5e3d65NKT1PeCiQk+9OdzO12Q= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2/go.mod h1:tyF5sKccmDz0Bv4NrstEr+/9YkSPJHrcO7UsUKf7pWM= +github.com/aws/aws-sdk-go-v2 v1.25.3 h1:xYiLpZTQs1mzvz5PaI6uR0Wh57ippuEthxS4iK5v0n0= +github.com/aws/aws-sdk-go-v2 v1.25.3/go.mod h1:35hUlJVYd+M++iLI3ALmVwMOyRYMmRqUXpTtRGW+K9I= +github.com/aws/aws-sdk-go-v2/config v1.27.7 h1:JSfb5nOQF01iOgxFI5OIKWwDiEXWTyTgg1Mm1mHi0A4= +github.com/aws/aws-sdk-go-v2/config v1.27.7/go.mod h1:PH0/cNpoMO+B04qET699o5W92Ca79fVtbUnvMIZro4I= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7 h1:WJd+ubWKoBeRh7A5iNMnxEOs982SyVKOJD+K8HIezu4= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7/go.mod h1:UQi7LMR0Vhvs+44w5ec8Q+VS+cd10cjwgHwiVkE0YGU= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 h1:p+y7FvkK2dxS+FEwRIDHDe//ZX+jDhP8HHE50ppj4iI= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3/go.mod h1:/fYB+FZbDlwlAiynK9KDXlzZl3ANI9JkD0Uhz5FjNT4= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 h1:ifbIbHZyGl1alsAhPIYsHOg5MuApgqOvVeI8wIugXfs= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3/go.mod h1:oQZXg3c6SNeY6OZrDY+xHcF4VGIEoNotX2B4PrDeoJI= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 h1:Qvodo9gHG9F3E8SfYOspPeBt0bjSbsevK8WhRAUHcoY= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3/go.mod h1:vCKrdLXtybdf/uQd/YfVR2r5pcbNuEYKzMQpcxmeSJw= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 h1:EyBZibRTVAs6ECHZOw5/wlylS9OcTzwyjeQMudmREjE= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1/go.mod h1:JKpmtYhhPs7D97NL/ltqz7yCkERFW5dOlHyVl66ZYF8= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 h1:5ffmXjPtwRExp1zc7gENLgCPyHFbhEPwVTkTiH9niSk= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2/go.mod h1:Ru7vg1iQ7cR4i7SZ/JTLYN9kaXtbL69UdgG0OQWQxW0= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 h1:utEGkfdQ4L6YW/ietH7111ZYglLJvS+sLriHJ1NBJEQ= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1/go.mod h1:RsYqzYr2F2oPDdpy+PdhephuZxTfjHQe7SOBcZGoAU8= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 h1:9/GylMS45hGGFCcMrUZDVayQE1jYSIN6da9jo7RAYIw= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1/go.mod h1:YjAPFn4kGFqKC54VsHs5fn5B6d+PCY2tziEa3U/GB5Y= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 h1:3I2cBEYgKhrWlwyZgfpSO2BpaMY1LHPqXYk/QGlu2ew= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1/go.mod h1:uQ7YYKZt3adCRrdCBREm1CD3efFLOUNH77MrUCvx5oA= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 h1:K/NXvIftOlX+oGgWGIa3jDyYLDNsdVhsjHmsBH2GLAQ= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5/go.mod h1:cl9HGLV66EnCmMNzq4sYOti+/xo8w34CsgzVtm2GgsY= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 h1:XOPfar83RIRPEzfihnp+U6udOveKZJvPQ76SKWrLRHc= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2/go.mod h1:Vv9Xyk1KMHXrR3vNQe8W5LMFdTjSeWk0gBZBzvf3Qa0= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 h1:pi0Skl6mNl2w8qWZXcdOyg197Zsf4G97U7Sso9JXGZE= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2/go.mod h1:JYzLoEVeLXk+L4tn1+rrkfhkxl6mLDEVaDSvGq9og90= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 h1:Ppup1nVNAOWbBOrcoOxaxPeEnSFB2RnnQdguhXpmeQk= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4/go.mod h1:+K1rNPVyGxkRuv9NNiaZ4YhBFuyw2MMA9SlIJ1Zlpz8= github.com/aws/smithy-go v1.20.1 h1:4SZlSlMr36UEqC7XOyRVb27XMeZubNcBNN+9IgEPIQw= github.com/aws/smithy-go v1.20.1/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= @@ -80,12 +80,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -129,8 +129,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -146,8 +146,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -182,11 +182,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -269,10 +269,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -399,8 +399,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/kafka/go.mod b/plugins/destination/kafka/go.mod index 06677fec8738b4..6364a3ba55fe7f 100644 --- a/plugins/destination/kafka/go.mod +++ b/plugins/destination/kafka/go.mod @@ -9,7 +9,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 github.com/cloudquery/codegen v0.3.12 github.com/cloudquery/filetypes/v4 v4.2.11 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.31.0 github.com/wk8/go-ordered-map/v2 v2.1.8 @@ -35,7 +35,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -59,7 +59,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -138,7 +138,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/kafka/go.sum b/plugins/destination/kafka/go.sum index a9c7dfc0211a5a..65b77f7c801419 100644 --- a/plugins/destination/kafka/go.sum +++ b/plugins/destination/kafka/go.sum @@ -61,12 +61,12 @@ github.com/cloudquery/filetypes/v4 v4.2.11 h1:FxLM0to2wHr/pT2NcqGpbtCuVxvZpSVIDc github.com/cloudquery/filetypes/v4 v4.2.11/go.mod h1:eqgWrMw9wrSDmTioNVEbbESdP+z91t827mDTbi26w0Q= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -118,8 +118,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -135,8 +135,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= @@ -420,8 +420,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/meilisearch/go.mod b/plugins/destination/meilisearch/go.mod index ffe1c8b3766662..23cd5c94a26526 100644 --- a/plugins/destination/meilisearch/go.mod +++ b/plugins/destination/meilisearch/go.mod @@ -5,9 +5,9 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 - github.com/google/uuid v1.5.0 + github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 github.com/meilisearch/meilisearch-go v0.24.0 github.com/rs/zerolog v1.31.0 @@ -32,7 +32,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -66,8 +66,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -88,8 +88,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -120,7 +120,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/meilisearch/go.sum b/plugins/destination/meilisearch/go.sum index ee0c8a64479259..de78ce2cd10431 100644 --- a/plugins/destination/meilisearch/go.sum +++ b/plugins/destination/meilisearch/go.sum @@ -52,12 +52,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -103,8 +103,8 @@ github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MG github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -120,8 +120,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -158,11 +158,11 @@ github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/klauspost/compress v1.15.6/go.mod h1:PhcZ0MbTNciWF3rruxRgKxI5NkcHHrHUDtV4Yw2GlzU= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -244,10 +244,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -372,8 +372,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/mongodb/go.mod b/plugins/destination/mongodb/go.mod index 0fd6571b318eb6..59bd9ea795ce4f 100644 --- a/plugins/destination/mongodb/go.mod +++ b/plugins/destination/mongodb/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 github.com/rs/zerolog v1.31.0 go.mongodb.org/mongo-driver v1.12.1 @@ -29,7 +29,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -49,7 +49,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -64,8 +64,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -87,8 +87,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -123,7 +123,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/mongodb/go.sum b/plugins/destination/mongodb/go.sum index f06b0fb7c423a1..615bdbf4a37888 100644 --- a/plugins/destination/mongodb/go.sum +++ b/plugins/destination/mongodb/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -119,8 +119,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -156,11 +156,11 @@ github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIR github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -242,10 +242,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -387,8 +387,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/motherduck/go.mod b/plugins/destination/motherduck/go.mod index 5ceb3659ffa555..9a518bb1a4e9a1 100644 --- a/plugins/destination/motherduck/go.mod +++ b/plugins/destination/motherduck/go.mod @@ -6,8 +6,8 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cenkalti/backoff/v4 v4.2.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 - github.com/google/uuid v1.5.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 + github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 github.com/marcboeker/go-duckdb v1.5.6 github.com/rs/zerolog v1.31.0 @@ -33,7 +33,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -68,8 +68,8 @@ require ( github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect github.com/klauspost/asmfmt v1.3.2 // indirect - github.com/klauspost/compress v1.17.6 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -93,8 +93,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -124,7 +124,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/motherduck/go.sum b/plugins/destination/motherduck/go.sum index 63297ee4ab4d83..ae5888a979ab16 100644 --- a/plugins/destination/motherduck/go.sum +++ b/plugins/destination/motherduck/go.sum @@ -55,12 +55,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -104,8 +104,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -121,8 +121,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -159,11 +159,11 @@ github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= github.com/klauspost/asmfmt v1.3.2 h1:4Ri7ox3EwapiOjCki+hw14RyKk201CN4rzyCJRFLpK4= github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE= -github.com/klauspost/compress v1.17.6 h1:60eq2E/jlfwQXtvZEeBUYADs+BwKBWURIY+Gj2eRGjI= -github.com/klauspost/compress v1.17.6/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -252,10 +252,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -369,8 +369,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/mssql/go.mod b/plugins/destination/mssql/go.mod index 27148be357c553..179568d8b28067 100644 --- a/plugins/destination/mssql/go.mod +++ b/plugins/destination/mssql/go.mod @@ -3,9 +3,9 @@ module github.com/cloudquery/cloudquery/plugins/destination/mssql go 1.21.6 require ( - github.com/apache/arrow/go/v15 v15.0.0 + github.com/apache/arrow/go/v15 v15.0.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 @@ -36,7 +36,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -72,8 +72,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect @@ -95,8 +95,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -127,7 +127,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/mssql/go.sum b/plugins/destination/mssql/go.sum index 132542686a0904..8c76c86443af59 100644 --- a/plugins/destination/mssql/go.sum +++ b/plugins/destination/mssql/go.sum @@ -31,8 +31,8 @@ github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1 github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/apache/arrow/go/v13 v13.0.0 h1:kELrvDQuKZo8csdWYqBQfyi431x6Zs/YJTEgUuSVcWk= github.com/apache/arrow/go/v13 v13.0.0/go.mod h1:W69eByFNO0ZR30q1/7Sr9d83zcVZmF2MiP3fFYAWJOc= -github.com/apache/arrow/go/v15 v15.0.0 h1:1zZACWf85oEZY5/kd9dsQS7i+2G5zVQcbKTHgslqHNA= -github.com/apache/arrow/go/v15 v15.0.0/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= +github.com/apache/arrow/go/v15 v15.0.1 h1:mq61hYtKBel8wCYrOM4yY4YzJ05IA2qZUrevXe5IbZQ= +github.com/apache/arrow/go/v15 v15.0.1/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= @@ -63,12 +63,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -184,11 +184,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -277,10 +277,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -426,8 +426,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/mysql/go.mod b/plugins/destination/mysql/go.mod index 1942a833a43e64..bcdccf405aa1eb 100644 --- a/plugins/destination/mysql/go.mod +++ b/plugins/destination/mysql/go.mod @@ -5,9 +5,9 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/go-sql-driver/mysql v1.7.1 - github.com/google/uuid v1.5.0 + github.com/google/uuid v1.6.0 github.com/rs/zerolog v1.31.0 golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 ) @@ -30,7 +30,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -65,8 +65,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -87,8 +87,8 @@ require ( github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -118,7 +118,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/mysql/go.sum b/plugins/destination/mysql/go.sum index 20a21a8b5b99d8..23a73226057d33 100644 --- a/plugins/destination/mysql/go.sum +++ b/plugins/destination/mysql/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -102,8 +102,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -119,8 +119,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -154,11 +154,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -238,10 +238,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -355,8 +355,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/neo4j/go.mod b/plugins/destination/neo4j/go.mod index 2c504ec3692251..2980b8fd148616 100644 --- a/plugins/destination/neo4j/go.mod +++ b/plugins/destination/neo4j/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/neo4j/neo4j-go-driver/v5 v5.6.0 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 @@ -29,7 +29,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -50,7 +50,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -65,8 +65,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -86,8 +86,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -118,7 +118,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/neo4j/go.sum b/plugins/destination/neo4j/go.sum index 0218cb0498a223..f021a94cab01b6 100644 --- a/plugins/destination/neo4j/go.sum +++ b/plugins/destination/neo4j/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -117,8 +117,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -153,11 +153,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -239,10 +239,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -356,8 +356,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/postgresql/CHANGELOG.md b/plugins/destination/postgresql/CHANGELOG.md index 2556841cc8cbfe..8a1bfa53aafe95 100644 --- a/plugins/destination/postgresql/CHANGELOG.md +++ b/plugins/destination/postgresql/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [7.4.0](https://github.com/cloudquery/cloudquery/compare/plugins-destination-postgresql-v7.3.8...plugins-destination-postgresql-v7.4.0) (2024-03-12) + + +### Features + +* Add support for CrateDB to Postgres destination ([#17088](https://github.com/cloudquery/cloudquery/issues/17088)) ([316984a](https://github.com/cloudquery/cloudquery/commit/316984ab4ea7f9761b31242b3307878bc40bee83)) + +## [7.3.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-postgresql-v7.3.7...plugins-destination-postgresql-v7.3.8) (2024-03-06) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [7.3.7](https://github.com/cloudquery/cloudquery/compare/plugins-destination-postgresql-v7.3.6...plugins-destination-postgresql-v7.3.7) (2024-03-05) diff --git a/plugins/destination/postgresql/client/client.go b/plugins/destination/postgresql/client/client.go index 504972a6a72c6d..3b8954b8776c82 100644 --- a/plugins/destination/postgresql/client/client.go +++ b/plugins/destination/postgresql/client/client.go @@ -46,6 +46,7 @@ const ( invalid pgType = iota pgTypePostgreSQL pgTypeCockroachDB + pgTypeCrateDB ) func New(ctx context.Context, logger zerolog.Logger, specBytes []byte, opts plugin.NewClientOptions) (plugin.Client, error) { @@ -160,6 +161,8 @@ func (c *Client) getPgType(ctx context.Context) (pgType, error) { typ = pgTypePostgreSQL case "cockroachdb": typ = pgTypeCockroachDB + case "cratedb": + typ = pgTypeCrateDB default: return typ, fmt.Errorf("unknown database type %s", name) } diff --git a/plugins/destination/postgresql/client/delete.go b/plugins/destination/postgresql/client/delete.go index 79a4f96ce1cecf..de14fb4f8d042c 100644 --- a/plugins/destination/postgresql/client/delete.go +++ b/plugins/destination/postgresql/client/delete.go @@ -35,7 +35,7 @@ func (c *Client) DeleteRecordsBatch(ctx context.Context, messages message.WriteD batch := &pgx.Batch{} for _, msg := range messages { sql := generateDeleteCTE(msg.DeleteRecord) - vals := extractPredicateValues(msg.DeleteRecord.WhereClause) + vals := c.extractPredicateValues(msg.DeleteRecord.WhereClause) batch.Queue(sql, vals...) } br := c.conn.SendBatch(ctx, batch) @@ -121,7 +121,7 @@ func generateDeleteCTE(deleteRecord message.DeleteRecord) string { return sb.String() } -func extractPredicateValues(where message.PredicateGroups) []any { +func (c *Client) extractPredicateValues(where message.PredicateGroups) []any { predicateCount := 0 for _, predicateGroup := range where { predicateCount += len(predicateGroup.Predicates) @@ -131,7 +131,7 @@ func extractPredicateValues(where message.PredicateGroups) []any { for _, predicateGroup := range where { for _, predicate := range predicateGroup.Predicates { col := predicate.Record.Column(0) - transformed := transformArr(col) + transformed := c.transformArr(col) results[counter] = transformed[0] counter++ } diff --git a/plugins/destination/postgresql/client/insert.go b/plugins/destination/postgresql/client/insert.go index 5c881eb4adb473..fd992b1e70a6e8 100644 --- a/plugins/destination/postgresql/client/insert.go +++ b/plugins/destination/postgresql/client/insert.go @@ -53,7 +53,7 @@ func (c *Client) InsertBatch(ctx context.Context, messages message.WriteInserts) queries[tableName] = sql } - rows := transformValues(r) + rows := c.transformValues(r) for _, rowVals := range rows { batch.Queue(sql, rowVals...) } @@ -114,12 +114,13 @@ func (*Client) insert(table *schema.Table) string { } func (c *Client) upsert(table *schema.Table) string { + if c.pgType == pgTypeCrateDB { + return c.upsertCrateDB(table) + } var sb strings.Builder - sb.WriteString(c.insert(table)) columns := table.Columns columnsLen := len(columns) - constraintName := table.PkConstraintName sb.WriteString(" on conflict on constraint ") sb.WriteString(pgx.Identifier{constraintName}.Sanitize()) @@ -138,6 +139,32 @@ func (c *Client) upsert(table *schema.Table) string { return sb.String() } +// CrateDB differs from normal Postgres in that it does not support constraint-name +// based upserts, and errors out if a primary key is written to during upsert. +func (c *Client) upsertCrateDB(table *schema.Table) string { + var sb strings.Builder + sb.WriteString(c.insert(table)) + columns := table.Columns + if len(table.PrimaryKeysIndexes()) == len(table.Columns) { + sb.WriteString(" on conflict do nothing") + return sb.String() + } + pks := table.PrimaryKeys() + sb.WriteString(fmt.Sprintf(" on conflict (%s) ", strings.Join(pks, ","))) + + sb.WriteString(" do update set ") + cols := make([]string, 0, len(columns)-len(pks)) + for _, column := range columns { + if column.PrimaryKey { + continue + } + cols = append(cols, pgx.Identifier{column.Name}.Sanitize()+"=excluded."+pgx.Identifier{column.Name}.Sanitize()) + } + sb.WriteString(strings.Join(cols, ",")) + + return sb.String() +} + func pgErrToStr(err *pgconn.PgError) string { var sb strings.Builder sb.WriteString("severity: ") diff --git a/plugins/destination/postgresql/client/migrate.go b/plugins/destination/postgresql/client/migrate.go index ddc14be133d44b..d77f0b183a71a1 100644 --- a/plugins/destination/postgresql/client/migrate.go +++ b/plugins/destination/postgresql/client/migrate.go @@ -82,6 +82,14 @@ func (c *Client) normalizeTable(table *schema.Table) *schema.Table { Name: table.Name, } for _, col := range table.Columns { + if c.pgType == pgTypeCrateDB { + // CrateDB doesn't allow columns that start with an underscore, + // so we trim the leading underscore from the column name + col.Name = strings.TrimLeft(col.Name, "_") + // CrateDB does not support Unique constraints + col.Unique = false + } + // Postgres doesn't support column names longer than 63 characters // and it will automatically truncate them, so we do the same here // to make migrations predictable @@ -93,6 +101,7 @@ func (c *Client) normalizeTable(table *schema.Table) *schema.Table { col.NotNull = true } col.Type = c.PgToSchemaType(c.SchemaTypeToPg(col.Type)) + normalizedTable.Columns = append(normalizedTable.Columns, col) // pgTablesToPKConstraints is populated when handling migrate messages if entry := c.pgTablesToPKConstraints[table.Name]; entry != nil { @@ -261,7 +270,7 @@ func (c *Client) migrateToCQID(ctx context.Context, table *schema.Table, _ schem return err } - // CockroachDB doesn't support dropping NOT NULL constraints in the same transaction as the the primary key is changed + // CockroachDB doesn't support dropping NOT NULL constraints in the same transaction as the primary key is changed // So we have to alter the PK in one transaction and then drop the old NOT NULL constraints in another transaction if c.pgType == pgTypeCockroachDB { if err == nil { diff --git a/plugins/destination/postgresql/client/read.go b/plugins/destination/postgresql/client/read.go index 07d2ddcbe7d11b..8dd5042075301f 100644 --- a/plugins/destination/postgresql/client/read.go +++ b/plugins/destination/postgresql/client/read.go @@ -25,6 +25,10 @@ const ( func (c *Client) Read(ctx context.Context, table *schema.Table, res chan<- arrow.Record) error { colNames := make([]string, 0, len(table.Columns)) for _, col := range table.Columns { + if c.pgType == pgTypeCrateDB { + colNames = append(colNames, pgx.Identifier{strings.Trim(col.Name, "_")}.Sanitize()) + continue + } colNames = append(colNames, pgx.Identifier{col.Name}.Sanitize()) } cols := strings.Join(colNames, ",") diff --git a/plugins/destination/postgresql/client/spec/schema.json b/plugins/destination/postgresql/client/spec/schema.json index 916e8be9f258a8..56836537f4c232 100644 --- a/plugins/destination/postgresql/client/spec/schema.json +++ b/plugins/destination/postgresql/client/spec/schema.json @@ -29,7 +29,9 @@ "type": "string", "minLength": 1, "description": "Connection string to connect to the database. This can be a URL or a DSN, as per [`pgxpool`](https://pkg.go.dev/github.com/jackc/pgx/v4/pgxpool#ParseConfig)\n\n- `\"postgres://jack:secret@localhost:5432/mydb?sslmode=prefer\"` _connect with tcp and prefer TLS_\n- `\"postgres://jack:secret@localhost:5432/mydb?sslmode=disable\u0026application_name=pgxtest\u0026search_path=myschema\u0026connect_timeout=5\"` _be explicit with all options_\n- `\"postgres://localhost:5432/mydb?sslmode=disable\"` _connect with os username cloudquery is being run as_\n- `\"postgres:///mydb?host=/tmp\"` _connect over unix socket_\n- `\"dbname=mydb\"` _unix domain socket, just specifying the db name - useful if you want to use peer authentication_\n- `\"user=jack password=jack\\\\'ssooper\\\\\\\\secret host=localhost port=5432 dbname=mydb sslmode=disable\"` _DSN with escaped backslash and single quote_", - "x-cq-secret": true + "examples": [ + "${POSTGRESQL_CONNECTION_STRING}" + ] }, "pgx_log_level": { "$ref": "#/$defs/LogLevel", diff --git a/plugins/destination/postgresql/client/spec/spec.go b/plugins/destination/postgresql/client/spec/spec.go index ae8b502dfb8dcf..3f8272516cb017 100644 --- a/plugins/destination/postgresql/client/spec/spec.go +++ b/plugins/destination/postgresql/client/spec/spec.go @@ -24,7 +24,7 @@ type Spec struct { // - `"postgres:///mydb?host=/tmp"` _connect over unix socket_ // - `"dbname=mydb"` _unix domain socket, just specifying the db name - useful if you want to use peer authentication_ // - `"user=jack password=jack\\'ssooper\\\\secret host=localhost port=5432 dbname=mydb sslmode=disable"` _DSN with escaped backslash and single quote_ - ConnectionString string `json:"connection_string,omitempty" jsonschema:"required,minLength=1" jsonschema_extras:"x-cq-secret=true"` + ConnectionString string `json:"connection_string,omitempty" jsonschema:"required,minLength=1,example=${POSTGRESQL_CONNECTION_STRING}"` // Available: `error`, `warn`, `info`, `debug`, `trace`. // Defines what [`pgx`](https://github.com/jackc/pgx) call events should be logged. diff --git a/plugins/destination/postgresql/client/transformer.go b/plugins/destination/postgresql/client/transformer.go index 390934ab0cfdc1..b01f53052912b9 100644 --- a/plugins/destination/postgresql/client/transformer.go +++ b/plugins/destination/postgresql/client/transformer.go @@ -1,6 +1,7 @@ package client import ( + "encoding/base64" "encoding/json" "strings" @@ -52,7 +53,7 @@ func stripNullsFromJsonValue(val any) any { } } -func transformArr(arr arrow.Array) []any { +func (c *Client) transformArr(arr arrow.Array) []any { pgArr := make([]any, arr.Len()) for i := 0; i < arr.Len(); i++ { if arr.IsNull(i) || !arr.IsValid(i) { @@ -101,7 +102,11 @@ func transformArr(arr arrow.Array) []any { Valid: a.IsValid(i), } case *array.Uint64: - pgArr[i] = a.Value(i) + if c.pgType == pgTypeCrateDB { + pgArr[i] = a.ValueStr(i) + } else { + pgArr[i] = a.Value(i) + } case *array.Float32: pgArr[i] = pgtype.Float4{ Float32: a.Value(i), @@ -113,9 +118,17 @@ func transformArr(arr arrow.Array) []any { Valid: a.IsValid(i), } case *array.Binary: - pgArr[i] = a.Value(i) + if c.pgType == pgTypeCrateDB { + pgArr[i] = base64.StdEncoding.EncodeToString(a.Value(i)) + } else { + pgArr[i] = a.Value(i) + } case *array.LargeBinary: - pgArr[i] = a.Value(i) + if c.pgType == pgTypeCrateDB { + pgArr[i] = base64.StdEncoding.EncodeToString(a.Value(i)) + } else { + pgArr[i] = a.Value(i) + } case *array.String: pgArr[i] = pgtype.Text{ String: stripNulls(a.Value(i)), @@ -166,7 +179,7 @@ func transformArr(arr arrow.Array) []any { case array.ListLike: start, end := a.ValueOffsets(i) nested := array.NewSlice(a.ListValues(), start, end) - pgArr[i] = transformArr(nested) + pgArr[i] = c.transformArr(nested) case *types.JSONArray: pgArr[i] = stripNullsFromMarshalledJson(a.Storage().(*array.Binary).Value(i)) default: @@ -177,7 +190,7 @@ func transformArr(arr arrow.Array) []any { return pgArr } -func transformValues(r arrow.Record) [][]any { +func (c *Client) transformValues(r arrow.Record) [][]any { results := make([][]any, r.NumRows()) for i := range results { @@ -186,7 +199,7 @@ func transformValues(r arrow.Record) [][]any { for i := 0; i < int(r.NumCols()); i++ { col := r.Column(i) - transformed := transformArr(col) + transformed := c.transformArr(col) for l := 0; l < col.Len(); l++ { results[l][i] = transformed[l] } diff --git a/plugins/destination/postgresql/client/types.go b/plugins/destination/postgresql/client/types.go index 421d9e8fb3ed50..4d351b886ccfed 100644 --- a/plugins/destination/postgresql/client/types.go +++ b/plugins/destination/postgresql/client/types.go @@ -9,6 +9,8 @@ func (c *Client) SchemaTypeToPg(t arrow.DataType) string { switch c.pgType { case pgTypeCockroachDB: return pgarrow.ArrowToCockroach(t) + case pgTypeCrateDB: + return pgarrow.ArrowToCrateDB(t) default: return pgarrow.ArrowToPg10(t) } @@ -18,6 +20,8 @@ func (c *Client) PgToSchemaType(t string) arrow.DataType { switch c.pgType { case pgTypeCockroachDB: return pgarrow.CockroachToArrow(t) + case pgTypeCrateDB: + return pgarrow.CrateDBToArrow(t) default: return pgarrow.Pg10ToArrow(t) } diff --git a/plugins/destination/postgresql/docs/_configuration.md b/plugins/destination/postgresql/docs/_configuration.md index 54464d37fed34b..e5d87c918acf34 100644 --- a/plugins/destination/postgresql/docs/_configuration.md +++ b/plugins/destination/postgresql/docs/_configuration.md @@ -9,7 +9,7 @@ spec: version: "VERSION_DESTINATION_POSTGRESQL" spec: - connection_string: "${POSTGRESQL_CONNECTION_STRING}" # set the environment variable in a format like postgresql://postgres:pass@localhost:5432/postgres?sslmode=disable + connection_string: "${POSTGRESQL_CONNECTION_STRING}" # set the environment variable in a format like postgres://postgres:pass@localhost:5432/postgres?sslmode=disable # you can also specify it in DSN format, which can hold special characters in the password field: # connection_string: "user=postgres password=pass+0-[word host=localhost port=5432 dbname=postgres" # Optional parameters: diff --git a/plugins/destination/postgresql/go.mod b/plugins/destination/postgresql/go.mod index a6b7490130783d..058a636a6a45e0 100644 --- a/plugins/destination/postgresql/go.mod +++ b/plugins/destination/postgresql/go.mod @@ -7,7 +7,7 @@ toolchain go1.21.6 require ( github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/google/go-cmp v0.6.0 github.com/invopop/jsonschema v0.12.0 github.com/jackc/pgx-zerolog v0.0.0-20230315001418-f978528409eb @@ -35,7 +35,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -56,7 +56,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -73,8 +73,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -94,8 +94,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -125,7 +125,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/postgresql/go.sum b/plugins/destination/postgresql/go.sum index 02ea694aa5ecec..8b9c43df044ac0 100644 --- a/plugins/destination/postgresql/go.sum +++ b/plugins/destination/postgresql/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -117,8 +117,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -163,11 +163,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -247,10 +247,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -364,8 +364,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/postgresql/pgarrow/to_arrow.go b/plugins/destination/postgresql/pgarrow/to_arrow.go index 698b151561ece8..745a9f168d2f96 100644 --- a/plugins/destination/postgresql/pgarrow/to_arrow.go +++ b/plugins/destination/postgresql/pgarrow/to_arrow.go @@ -133,6 +133,66 @@ func CockroachToArrow(t string) arrow.DataType { } } +func CrateDBToArrow(t string) arrow.DataType { + t = normalize(t) + if strings.HasSuffix(t, "[]") { + return arrow.ListOf(Pg10ToArrow(t[:len(t)-2])) + } + + parsers := []func(string) (arrow.DataType, bool){ + parseTimestamp, + parseTime, + } + for _, parser := range parsers { + got, matched := parser(t) + if matched { + return got + } + } + + switch t { + case "boolean": + return arrow.FixedWidthTypes.Boolean + case "smallserial": + return arrow.PrimitiveTypes.Int16 + case "serial": + return arrow.PrimitiveTypes.Int32 + case "bigserial", "serial8": + return arrow.PrimitiveTypes.Int64 + case "smallint", "int2": + return arrow.PrimitiveTypes.Int16 + case "integer", "int", "int4": + return arrow.PrimitiveTypes.Int32 + case "bigint", "int8": + return arrow.PrimitiveTypes.Int64 + case "numeric": + // Special case + return arrow.PrimitiveTypes.Uint64 + case "real", "float4": + return arrow.PrimitiveTypes.Float32 + case "double precision", "float8": + return arrow.PrimitiveTypes.Float64 + case "uuid": + // CrateDB does not support UUID type + return arrow.BinaryTypes.String + case "bytea": + return arrow.BinaryTypes.Binary + case "date": + return arrow.FixedWidthTypes.Date32 + case "json", "jsonb", "object": + return cqtypes.ExtensionTypes.JSON + case "cidr": + return cqtypes.ExtensionTypes.Inet + case "macaddr", "macaddr8": + // CrateDB does not support macaddr type + return arrow.BinaryTypes.String + case "inet", "ip": + return cqtypes.ExtensionTypes.Inet + default: + return arrow.BinaryTypes.String + } +} + func normalize(t string) string { return strings.ToLower(strings.TrimSpace(t)) } diff --git a/plugins/destination/postgresql/pgarrow/to_pg.go b/plugins/destination/postgresql/pgarrow/to_pg.go index 2a851d505c70d9..43fffb4cf405fc 100644 --- a/plugins/destination/postgresql/pgarrow/to_pg.go +++ b/plugins/destination/postgresql/pgarrow/to_pg.go @@ -127,3 +127,73 @@ func ArrowToCockroach(t arrow.DataType) string { return "text" } } + +func ArrowToCrateDB(t arrow.DataType) string { + switch dt := t.(type) { + case *arrow.BooleanType: + return "boolean" + case *arrow.Int8Type: + return "smallint" + case *arrow.Int16Type: + return "smallint" + case *arrow.Int32Type: + return "int" + case *arrow.Int64Type: + return "bigint" + case *arrow.Uint8Type: + return "smallint" + case *arrow.Uint16Type: + return "int" + case *arrow.Uint32Type: + return "bigint" + case *arrow.Uint64Type: + // CrateDB does not support storing numeric types. + return "text" + case *arrow.Float32Type: + return "real" + case *arrow.Float64Type: + return "double precision" + case arrow.DecimalType: + // CrateDB does not support storing numeric types + return "text" + case *arrow.StringType: + return "text" + case *arrow.BinaryType: + // CrateDB does not support bytea + return "text" + case *arrow.LargeBinaryType: + // CrateDB does not support bytea + return "text" + case *arrow.TimestampType: + return "timestamp without time zone" + case *arrow.Time32Type, *arrow.Time64Type: + // CrateDB does not support "time without time zone", and does not support + // storage of "time with time zone". + return "text" + case *arrow.Date32Type, *arrow.Date64Type: + // CrateDB does not support storing "date" type + return "timestamp without time zone" + case *cqtypes.UUIDType: + // CrateDB does not support UUID type + return "text" + case *cqtypes.JSONType: + // CrateDB calls JSON type "object" + return "object" + case *cqtypes.MACType: + // CrateDB does not support macaddr type + return "text" + case *cqtypes.InetType: + // CrateDB does not support inet type, but we can use IP + return "ip" + case *arrow.ListType: + return ArrowToCrateDB(dt.Elem()) + "[]" + case *arrow.FixedSizeListType: + return ArrowToCrateDB(dt.Elem()) + "[]" + case *arrow.LargeListType: + return ArrowToCrateDB(dt.Elem()) + "[]" + case *arrow.MapType: + return "text" + default: + return "text" + } +} diff --git a/plugins/destination/s3/go.mod b/plugins/destination/s3/go.mod index b2255dcbad8180..a4cb6c7e169b5e 100644 --- a/plugins/destination/s3/go.mod +++ b/plugins/destination/s3/go.mod @@ -6,15 +6,15 @@ toolchain go1.21.6 require ( github.com/apache/arrow/go/v15 v15.0.0-20240115115805-d7bc55542e61 - github.com/aws/aws-sdk-go-v2 v1.25.2 - github.com/aws/aws-sdk-go-v2/config v1.27.4 - github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.6 - github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1 + github.com/aws/aws-sdk-go-v2 v1.25.3 + github.com/aws/aws-sdk-go-v2/config v1.27.7 + github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.9 + github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4 github.com/cloudquery/codegen v0.3.12 github.com/cloudquery/filetypes/v4 v4.2.11 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/google/go-cmp v0.6.0 - github.com/google/uuid v1.5.0 + github.com/google/uuid v1.6.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 @@ -34,19 +34,19 @@ require ( github.com/apache/thrift v0.19.0 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.4 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.7 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.2 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.2 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 // indirect github.com/aws/smithy-go v1.20.1 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect @@ -56,7 +56,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -146,7 +146,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/s3/go.sum b/plugins/destination/s3/go.sum index 2e03ea48a916a0..77d6a6c7db95b5 100644 --- a/plugins/destination/s3/go.sum +++ b/plugins/destination/s3/go.sum @@ -27,42 +27,42 @@ github.com/apache/thrift v0.19.0 h1:sOqkWPzMj7w6XaYbJQG7m4sGqVolaW/0D28Ln7yPzMk= github.com/apache/thrift v0.19.0/go.mod h1:SUALL216IiaOw2Oy+5Vs9lboJ/t9g40C+G07Dc0QC1I= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= -github.com/aws/aws-sdk-go-v2 v1.25.2 h1:/uiG1avJRgLGiQM9X3qJM8+Qa6KRGK5rRPuXE0HUM+w= -github.com/aws/aws-sdk-go-v2 v1.25.2/go.mod h1:Evoc5AsmtveRt1komDwIsjHFyrP5tDuF1D1U+6z6pNo= +github.com/aws/aws-sdk-go-v2 v1.25.3 h1:xYiLpZTQs1mzvz5PaI6uR0Wh57ippuEthxS4iK5v0n0= +github.com/aws/aws-sdk-go-v2 v1.25.3/go.mod h1:35hUlJVYd+M++iLI3ALmVwMOyRYMmRqUXpTtRGW+K9I= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 h1:gTK2uhtAPtFcdRRJilZPx8uJLL2J85xK11nKtWL0wfU= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1/go.mod h1:sxpLb+nZk7tIfCWChfd+h4QwHNUR57d8hA1cleTkjJo= -github.com/aws/aws-sdk-go-v2/config v1.27.4 h1:AhfWb5ZwimdsYTgP7Od8E9L1u4sKmDW2ZVeLcf2O42M= -github.com/aws/aws-sdk-go-v2/config v1.27.4/go.mod h1:zq2FFXK3A416kiukwpsd+rD4ny6JC7QSkp4QdN1Mp2g= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4 h1:h5Vztbd8qLppiPwX+y0Q6WiwMZgpd9keKe2EAENgAuI= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4/go.mod h1:+30tpwrkOgvkJL1rUZuRLoxcJwtI/OkeBLYnHxJtVe0= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 h1:AK0J8iYBFeUk2Ax7O8YpLtFsfhdOByh2QIkHmigpRYk= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2/go.mod h1:iRlGzMix0SExQEviAyptRWRGdYNo3+ufW/lCzvKVTUc= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.6 h1:prcsGA3onmpc7ea1W/m+SMj4uOn5vZ63uJp805UhJJs= -github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.6/go.mod h1:7eQrvATnVFDY0WfMYhfKkSQ1YtZlClT71fAAlsA1s34= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 h1:bNo4LagzUKbjdxE0tIcR9pMzLR2U/Tgie1Hq1HQ3iH8= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2/go.mod h1:wRQv0nN6v9wDXuWThpovGQjqF1HFdcgWjporw14lS8k= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 h1:EtOU5jsPdIQNP+6Q2C5e3d65NKT1PeCiQk+9OdzO12Q= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2/go.mod h1:tyF5sKccmDz0Bv4NrstEr+/9YkSPJHrcO7UsUKf7pWM= +github.com/aws/aws-sdk-go-v2/config v1.27.7 h1:JSfb5nOQF01iOgxFI5OIKWwDiEXWTyTgg1Mm1mHi0A4= +github.com/aws/aws-sdk-go-v2/config v1.27.7/go.mod h1:PH0/cNpoMO+B04qET699o5W92Ca79fVtbUnvMIZro4I= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7 h1:WJd+ubWKoBeRh7A5iNMnxEOs982SyVKOJD+K8HIezu4= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7/go.mod h1:UQi7LMR0Vhvs+44w5ec8Q+VS+cd10cjwgHwiVkE0YGU= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 h1:p+y7FvkK2dxS+FEwRIDHDe//ZX+jDhP8HHE50ppj4iI= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3/go.mod h1:/fYB+FZbDlwlAiynK9KDXlzZl3ANI9JkD0Uhz5FjNT4= +github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.9 h1:vXY/Hq1XdxHBIYgBUmug/AbMyIe1AKulPYS2/VE1X70= +github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.9/go.mod h1:GyJJTZoHVuENM4TeJEl5Ffs4W9m19u+4wKJcDi/GZ4A= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 h1:ifbIbHZyGl1alsAhPIYsHOg5MuApgqOvVeI8wIugXfs= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3/go.mod h1:oQZXg3c6SNeY6OZrDY+xHcF4VGIEoNotX2B4PrDeoJI= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 h1:Qvodo9gHG9F3E8SfYOspPeBt0bjSbsevK8WhRAUHcoY= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3/go.mod h1:vCKrdLXtybdf/uQd/YfVR2r5pcbNuEYKzMQpcxmeSJw= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.2 h1:en92G0Z7xlksoOylkUhuBSfJgijC7rHVLRdnIlHEs0E= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.2/go.mod h1:HgtQ/wN5G+8QSlK62lbOtNwQ3wTSByJ4wH2rCkPt+AE= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3 h1:mDnFOE2sVkyphMWtTH+stv0eW3k0OTx94K63xpxHty4= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3/go.mod h1:V8MuRVcCRt5h1S+Fwu8KbC7l/gBGo3yBAyUbJM2IJOk= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 h1:EyBZibRTVAs6ECHZOw5/wlylS9OcTzwyjeQMudmREjE= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1/go.mod h1:JKpmtYhhPs7D97NL/ltqz7yCkERFW5dOlHyVl66ZYF8= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.2 h1:zSdTXYLwuXDNPUS+V41i1SFDXG7V0ITp0D9UT9Cvl18= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.2/go.mod h1:v8m8k+qVy95nYi7d56uP1QImleIIY25BPiNJYzPBdFE= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 h1:5ffmXjPtwRExp1zc7gENLgCPyHFbhEPwVTkTiH9niSk= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2/go.mod h1:Ru7vg1iQ7cR4i7SZ/JTLYN9kaXtbL69UdgG0OQWQxW0= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.2 h1:1oY1AVEisRI4HNuFoLdRUB0hC63ylDAN6Me3MrfclEg= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.2/go.mod h1:KZ03VgvZwSjkT7fOetQ/wF3MZUvYFirlI1H5NklUNsY= -github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1 h1:juZ+uGargZOrQGNxkVHr9HHR/0N+Yu8uekQnV7EAVRs= -github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1/go.mod h1:SoR0c7Jnq8Tpmt0KSLXIavhjmaagRqQpe9r70W3POJg= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 h1:utEGkfdQ4L6YW/ietH7111ZYglLJvS+sLriHJ1NBJEQ= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1/go.mod h1:RsYqzYr2F2oPDdpy+PdhephuZxTfjHQe7SOBcZGoAU8= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 h1:9/GylMS45hGGFCcMrUZDVayQE1jYSIN6da9jo7RAYIw= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1/go.mod h1:YjAPFn4kGFqKC54VsHs5fn5B6d+PCY2tziEa3U/GB5Y= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 h1:3I2cBEYgKhrWlwyZgfpSO2BpaMY1LHPqXYk/QGlu2ew= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1/go.mod h1:uQ7YYKZt3adCRrdCBREm1CD3efFLOUNH77MrUCvx5oA= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5 h1:mbWNpfRUTT6bnacmvOTKXZjR/HycibdWzNpfbrbLDIs= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5/go.mod h1:FCOPWGjsshkkICJIn9hq9xr6dLKtyaWpuUojiN3W1/8= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 h1:K/NXvIftOlX+oGgWGIa3jDyYLDNsdVhsjHmsBH2GLAQ= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5/go.mod h1:cl9HGLV66EnCmMNzq4sYOti+/xo8w34CsgzVtm2GgsY= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3 h1:4t+QEX7BsXz98W8W1lNvMAG+NX8qHz2CjLBxQKku40g= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3/go.mod h1:oFcjjUq5Hm09N9rpxTdeMeLeQcxS7mIkBkL8qUKng+A= +github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4 h1:lW5xUzOPGAMY7HPuNF4FdyBwRc3UJ/e8KsapbesVeNU= +github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4/go.mod h1:MGTaf3x/+z7ZGugCGvepnx2DS6+caCYYqKhzVoLNYPk= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 h1:XOPfar83RIRPEzfihnp+U6udOveKZJvPQ76SKWrLRHc= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2/go.mod h1:Vv9Xyk1KMHXrR3vNQe8W5LMFdTjSeWk0gBZBzvf3Qa0= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 h1:pi0Skl6mNl2w8qWZXcdOyg197Zsf4G97U7Sso9JXGZE= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2/go.mod h1:JYzLoEVeLXk+L4tn1+rrkfhkxl6mLDEVaDSvGq9og90= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 h1:Ppup1nVNAOWbBOrcoOxaxPeEnSFB2RnnQdguhXpmeQk= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4/go.mod h1:+K1rNPVyGxkRuv9NNiaZ4YhBFuyw2MMA9SlIJ1Zlpz8= github.com/aws/smithy-go v1.20.1 h1:4SZlSlMr36UEqC7XOyRVb27XMeZubNcBNN+9IgEPIQw= github.com/aws/smithy-go v1.20.1/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= @@ -95,12 +95,12 @@ github.com/cloudquery/filetypes/v4 v4.2.11 h1:FxLM0to2wHr/pT2NcqGpbtCuVxvZpSVIDc github.com/cloudquery/filetypes/v4 v4.2.11/go.mod h1:eqgWrMw9wrSDmTioNVEbbESdP+z91t827mDTbi26w0Q= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -144,8 +144,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -161,8 +161,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -409,8 +409,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/snowflake/go.mod b/plugins/destination/snowflake/go.mod index 4e0ac5e2bbce1d..568f810169cb92 100644 --- a/plugins/destination/snowflake/go.mod +++ b/plugins/destination/snowflake/go.mod @@ -3,9 +3,9 @@ module github.com/cloudquery/cloudquery/plugins/destination/snowflake go 1.21.6 require ( - github.com/apache/arrow/go/v15 v15.0.0 + github.com/apache/arrow/go/v15 v15.0.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/goccy/go-json v0.10.2 github.com/rs/zerolog v1.31.0 github.com/snowflakedb/gosnowflake v1.7.2 @@ -51,7 +51,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/danieljoos/wincred v1.2.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect @@ -92,8 +92,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -115,8 +115,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -147,7 +147,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/snowflake/go.sum b/plugins/destination/snowflake/go.sum index 3347b293846250..f22254fae73ee1 100644 --- a/plugins/destination/snowflake/go.sum +++ b/plugins/destination/snowflake/go.sum @@ -39,8 +39,8 @@ github.com/apache/arrow/go/v13 v13.0.0 h1:kELrvDQuKZo8csdWYqBQfyi431x6Zs/YJTEgUu github.com/apache/arrow/go/v13 v13.0.0/go.mod h1:W69eByFNO0ZR30q1/7Sr9d83zcVZmF2MiP3fFYAWJOc= github.com/apache/arrow/go/v14 v14.0.2 h1:N8OkaJEOfI3mEZt07BIkvo4sC6XDbL+48MBPWO5IONw= github.com/apache/arrow/go/v14 v14.0.2/go.mod h1:u3fgh3EdgN/YQ8cVQRguVW3R+seMybFg8QBQ5LU+eBY= -github.com/apache/arrow/go/v15 v15.0.0 h1:1zZACWf85oEZY5/kd9dsQS7i+2G5zVQcbKTHgslqHNA= -github.com/apache/arrow/go/v15 v15.0.0/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= +github.com/apache/arrow/go/v15 v15.0.1 h1:mq61hYtKBel8wCYrOM4yY4YzJ05IA2qZUrevXe5IbZQ= +github.com/apache/arrow/go/v15 v15.0.1/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= github.com/aws/aws-sdk-go-v2 v1.25.2 h1:/uiG1avJRgLGiQM9X3qJM8+Qa6KRGK5rRPuXE0HUM+w= @@ -109,12 +109,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/danieljoos/wincred v1.2.1 h1:dl9cBrupW8+r5250DYkYxocLeZ1Y4vB1kxgtjxw8GQs= @@ -227,11 +227,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -320,10 +320,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -440,8 +440,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/sqlite/go.mod b/plugins/destination/sqlite/go.mod index 48d793ed11fc44..f9b24395c97254 100644 --- a/plugins/destination/sqlite/go.mod +++ b/plugins/destination/sqlite/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/mattn/go-sqlite3 v1.14.16 github.com/rs/zerolog v1.31.0 ) @@ -28,7 +28,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -49,7 +49,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -64,8 +64,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -86,8 +86,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -118,7 +118,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/sqlite/go.sum b/plugins/destination/sqlite/go.sum index 059737728a37aa..56744de424c204 100644 --- a/plugins/destination/sqlite/go.sum +++ b/plugins/destination/sqlite/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -117,8 +117,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -153,11 +153,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -239,10 +239,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -356,8 +356,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/destination/test/go.mod b/plugins/destination/test/go.mod index bc1d38c919f76f..a86df1f0823185 100644 --- a/plugins/destination/test/go.mod +++ b/plugins/destination/test/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.31.0 ) @@ -28,7 +28,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -49,7 +49,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -63,8 +63,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -85,8 +85,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -117,7 +117,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/destination/test/go.sum b/plugins/destination/test/go.sum index 58525479cae039..185d6116954c22 100644 --- a/plugins/destination/test/go.sum +++ b/plugins/destination/test/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -117,8 +117,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -153,11 +153,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -237,10 +237,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -354,8 +354,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/airtable/CHANGELOG.md b/plugins/source/airtable/CHANGELOG.md index c3477348da554d..979b632c83bf46 100644 --- a/plugins/source/airtable/CHANGELOG.md +++ b/plugins/source/airtable/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [2.1.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-airtable-v2.1.0...plugins-source-airtable-v2.1.1) (2024-03-05) + + +### Bug Fixes + +* **deps:** Update dependency @cloudquery/plugin-sdk-javascript to v0.1.7 ([#16990](https://github.com/cloudquery/cloudquery/issues/16990)) ([73fdf0b](https://github.com/cloudquery/cloudquery/commit/73fdf0be450689917e86f2fbb1b4b2f7fe02279f)) +* **deps:** Update dependency @types/uuid to v9.0.8 ([#16983](https://github.com/cloudquery/cloudquery/issues/16983)) ([cb0c9b2](https://github.com/cloudquery/cloudquery/commit/cb0c9b213936b662b385f81400fe43edd8e93fea)) + ## [2.1.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-airtable-v2.0.2...plugins-source-airtable-v2.1.0) (2024-02-13) diff --git a/plugins/source/airtable/package-lock.json b/plugins/source/airtable/package-lock.json index bdc9ca8800eae5..f518e167fff805 100644 --- a/plugins/source/airtable/package-lock.json +++ b/plugins/source/airtable/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cloudquery/cq-source-airtable", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@cloudquery/cq-source-airtable", - "version": "2.1.0", + "version": "2.1.1", "license": "MPL-2.0", "dependencies": { "@cloudquery/plugin-sdk-javascript": "^0.1.6", diff --git a/plugins/source/airtable/package.json b/plugins/source/airtable/package.json index a7a76fc4fe1171..c622285529cb5d 100644 --- a/plugins/source/airtable/package.json +++ b/plugins/source/airtable/package.json @@ -1,6 +1,6 @@ { "name": "@cloudquery/cq-source-airtable", - "version": "2.1.0", + "version": "2.1.1", "description": "A CloudQuery source plugin to sync data from Airtable", "keywords": [ "nodejs", diff --git a/plugins/source/alicloud/go.mod b/plugins/source/alicloud/go.mod index 519f996dd98504..9fff6b87d84589 100644 --- a/plugins/source/alicloud/go.mod +++ b/plugins/source/alicloud/go.mod @@ -7,7 +7,7 @@ require ( github.com/aliyun/aliyun-oss-go-sdk v2.2.7+incompatible github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/golang/mock v1.5.0 github.com/invopop/jsonschema v0.12.0 github.com/pkg/errors v0.9.1 @@ -33,7 +33,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -54,7 +54,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -70,8 +70,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -93,8 +93,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -124,7 +124,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/alicloud/go.sum b/plugins/source/alicloud/go.sum index cc908bbce637a3..ab89e691fbc836 100644 --- a/plugins/source/alicloud/go.sum +++ b/plugins/source/alicloud/go.sum @@ -65,12 +65,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -115,8 +115,8 @@ github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/mock v1.5.0 h1:jlYHihg//f7RRwuPfptm04yp4s7O6Kw8EZiVYIGcH0g= github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -134,8 +134,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -178,11 +178,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -266,10 +266,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -390,8 +390,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/aws/client/data/partition_service_region.json b/plugins/source/aws/client/data/partition_service_region.json index 8112109da333ab..2c38b4f48be579 100644 --- a/plugins/source/aws/client/data/partition_service_region.json +++ b/plugins/source/aws/client/data/partition_service_region.json @@ -3063,6 +3063,7 @@ "ap-southeast-3": {}, "ap-southeast-4": {}, "ca-central-1": {}, + "ca-west-1": {}, "eu-central-1": {}, "eu-central-2": {}, "eu-north-1": {}, @@ -3648,6 +3649,7 @@ "ap-southeast-3": {}, "ap-southeast-4": {}, "ca-central-1": {}, + "ca-west-1": {}, "eu-central-1": {}, "eu-central-2": {}, "eu-north-1": {}, @@ -5191,6 +5193,7 @@ "ap-southeast-3": {}, "ap-southeast-4": {}, "ca-central-1": {}, + "ca-west-1": {}, "eu-central-1": {}, "eu-central-2": {}, "eu-north-1": {}, @@ -7296,6 +7299,12 @@ "cn-northwest-1": {} } }, + "network-firewall": { + "regions": { + "cn-north-1": {}, + "cn-northwest-1": {} + } + }, "oam": { "regions": { "cn-north-1": {}, @@ -7646,7 +7655,8 @@ }, "arc-zonal-shift": { "regions": { - "us-iso-east-1": {} + "us-iso-east-1": {}, + "us-iso-west-1": {} } }, "athena": { diff --git a/plugins/source/awspricing/go.mod b/plugins/source/awspricing/go.mod index e64bb9584db341..f3edb068acb11f 100644 --- a/plugins/source/awspricing/go.mod +++ b/plugins/source/awspricing/go.mod @@ -3,7 +3,7 @@ module github.com/cloudquery/cloudquery/plugins/source/awspricing go 1.21.5 require ( - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/rs/zerolog v1.31.0 ) @@ -26,7 +26,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -47,7 +47,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -62,8 +62,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -84,8 +84,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -116,7 +116,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/awspricing/go.sum b/plugins/source/awspricing/go.sum index cfabca2e923854..d1774d3a2db1b7 100644 --- a/plugins/source/awspricing/go.sum +++ b/plugins/source/awspricing/go.sum @@ -47,12 +47,12 @@ github.com/chenzhuoyu/iasm v0.9.1 h1:tUHQJXo3NhBqw6s33wkGn9SP3bvrWLdlVIJ3hQBL7P0 github.com/chenzhuoyu/iasm v0.9.1/go.mod h1:Xjy2NpN3h7aUqeqM+woSuuvxmIe6+DDsiNLIrkAmYog= github.com/cloudquery/cloudquery-api-go v1.7.5 h1:rd5OQx7qRQASEzU9c8Wopzau7GMVCGj2PylRxSqHd0s= github.com/cloudquery/cloudquery-api-go v1.7.5/go.mod h1:03fojQg0UpdgqXZ9tzZ5gF5CPad/F0sok66bsX6u4RA= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -96,8 +96,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -113,8 +113,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -151,11 +151,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -235,10 +235,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -352,8 +352,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/azure/docs/tables/README.md b/plugins/source/azure/docs/tables/README.md index 583c6a17f539a9..62e3117bb66124 100644 --- a/plugins/source/azure/docs/tables/README.md +++ b/plugins/source/azure/docs/tables/README.md @@ -2,15 +2,6 @@ ## Tables -- [azure_advisor_recommendation_metadata](azure_advisor_recommendation_metadata.md) -- [azure_advisor_recommendations](azure_advisor_recommendations.md) -- [azure_advisor_suppressions](azure_advisor_suppressions.md) -- [azure_analysisservices_servers](azure_analysisservices_servers.md) -- [azure_apimanagement_service](azure_apimanagement_service.md) -- [azure_appcomplianceautomation_reports](azure_appcomplianceautomation_reports.md) -- [azure_appconfiguration_configuration_stores](azure_appconfiguration_configuration_stores.md) -- [azure_applicationinsights_components](azure_applicationinsights_components.md) -- [azure_applicationinsights_web_tests](azure_applicationinsights_web_tests.md) - [azure_appservice_certificate_orders](azure_appservice_certificate_orders.md) - [azure_appservice_certificates](azure_appservice_certificates.md) - [azure_appservice_deleted_web_apps](azure_appservice_deleted_web_apps.md) @@ -25,35 +16,8 @@ - [azure_appservice_web_app_auth_settings](azure_appservice_web_app_auth_settings.md) - [azure_appservice_web_app_configurations](azure_appservice_web_app_configurations.md) - [azure_appservice_web_app_vnet_connections](azure_appservice_web_app_vnet_connections.md) -- [azure_authorization_classic_administrators](azure_authorization_classic_administrators.md) - [azure_authorization_provider_operations_metadata](azure_authorization_provider_operations_metadata.md) -- [azure_authorization_role_assignments](azure_authorization_role_assignments.md) - [azure_authorization_role_definitions](azure_authorization_role_definitions.md) -- [azure_automation_account](azure_automation_account.md) -- [azure_azurearcdata_postgres_instances](azure_azurearcdata_postgres_instances.md) -- [azure_azurearcdata_sql_managed_instances](azure_azurearcdata_sql_managed_instances.md) -- [azure_azurearcdata_sql_server_instances](azure_azurearcdata_sql_server_instances.md) -- [azure_batch_account](azure_batch_account.md) -- [azure_billing_accounts](azure_billing_accounts.md) -- [azure_billing_enrollment_accounts](azure_billing_enrollment_accounts.md) -- [azure_billing_periods](azure_billing_periods.md) -- [azure_botservice_bots](azure_botservice_bots.md) -- [azure_cdn_edge_nodes](azure_cdn_edge_nodes.md) -- [azure_cdn_managed_rule_sets](azure_cdn_managed_rule_sets.md) -- [azure_cdn_profiles](azure_cdn_profiles.md) - - [azure_cdn_endpoints](azure_cdn_endpoints.md) - - [azure_cdn_rule_sets](azure_cdn_rule_sets.md) - - [azure_cdn_security_policies](azure_cdn_security_policies.md) -- [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md) - - [azure_cognitiveservices_account_deployments](azure_cognitiveservices_account_deployments.md) - - [azure_cognitiveservices_account_models](azure_cognitiveservices_account_models.md) - - [azure_cognitiveservices_account_private_endpoint_connections](azure_cognitiveservices_account_private_endpoint_connections.md) - - [azure_cognitiveservices_account_private_link_resources](azure_cognitiveservices_account_private_link_resources.md) - - [azure_cognitiveservices_account_skus](azure_cognitiveservices_account_skus.md) - - [azure_cognitiveservices_account_usages](azure_cognitiveservices_account_usages.md) -- [azure_cognitiveservices_commitment_plans](azure_cognitiveservices_commitment_plans.md) -- [azure_cognitiveservices_deleted_accounts](azure_cognitiveservices_deleted_accounts.md) -- [azure_cognitiveservices_resource_skus](azure_cognitiveservices_resource_skus.md) - [azure_compute_availability_sets](azure_compute_availability_sets.md) - [azure_compute_capacity_reservation_groups](azure_compute_capacity_reservation_groups.md) - [azure_compute_capacity_reservations](azure_compute_capacity_reservations.md) @@ -75,169 +39,22 @@ - [azure_compute_virtual_machines](azure_compute_virtual_machines.md) - [azure_compute_virtual_machine_extensions](azure_compute_virtual_machine_extensions.md) - [azure_compute_virtual_machine_patch_assessments](azure_compute_virtual_machine_patch_assessments.md) -- [azure_confluent_marketplace_agreements](azure_confluent_marketplace_agreements.md) -- [azure_connectedvmware_clusters](azure_connectedvmware_clusters.md) -- [azure_connectedvmware_datastores](azure_connectedvmware_datastores.md) -- [azure_connectedvmware_hosts](azure_connectedvmware_hosts.md) -- [azure_connectedvmware_resource_pools](azure_connectedvmware_resource_pools.md) -- [azure_connectedvmware_v_centers](azure_connectedvmware_v_centers.md) -- [azure_connectedvmware_virtual_machine_templates](azure_connectedvmware_virtual_machine_templates.md) -- [azure_connectedvmware_virtual_machines](azure_connectedvmware_virtual_machines.md) -- [azure_connectedvmware_virtual_networks](azure_connectedvmware_virtual_networks.md) -- [azure_consumption_billing_account_balances](azure_consumption_billing_account_balances.md) -- [azure_consumption_billing_account_budgets](azure_consumption_billing_account_budgets.md) -- [azure_consumption_billing_account_charges](azure_consumption_billing_account_charges.md) -- [azure_consumption_billing_account_events](azure_consumption_billing_account_events.md) -- [azure_consumption_billing_account_legacy_usage_details](azure_consumption_billing_account_legacy_usage_details.md) -- [azure_consumption_billing_account_lots](azure_consumption_billing_account_lots.md) -- [azure_consumption_billing_account_marketplaces](azure_consumption_billing_account_marketplaces.md) -- [azure_consumption_billing_account_modern_usage_details](azure_consumption_billing_account_modern_usage_details.md) -- [azure_consumption_billing_account_reservation_recommendations](azure_consumption_billing_account_reservation_recommendations.md) -- [azure_consumption_billing_account_tags](azure_consumption_billing_account_tags.md) -- [azure_consumption_billing_profile_reservation_details](azure_consumption_billing_profile_reservation_details.md) -- [azure_consumption_billing_profile_reservation_recommendations](azure_consumption_billing_profile_reservation_recommendations.md) -- [azure_consumption_billing_profile_reservation_summaries](azure_consumption_billing_profile_reservation_summaries.md) -- [azure_consumption_billing_profile_reservation_transactions](azure_consumption_billing_profile_reservation_transactions.md) -- [azure_consumption_subscription_budgets](azure_consumption_subscription_budgets.md) -- [azure_consumption_subscription_legacy_usage_details](azure_consumption_subscription_legacy_usage_details.md) -- [azure_consumption_subscription_marketplaces](azure_consumption_subscription_marketplaces.md) -- [azure_consumption_subscription_price_sheets](azure_consumption_subscription_price_sheets.md) -- [azure_consumption_subscription_reservation_recommendations](azure_consumption_subscription_reservation_recommendations.md) -- [azure_consumption_subscription_tags](azure_consumption_subscription_tags.md) -- [azure_containerinstance_container_groups](azure_containerinstance_container_groups.md) -- [azure_containerregistry_registries](azure_containerregistry_registries.md) -- [azure_containerservice_managed_clusters](azure_containerservice_managed_clusters.md) - - [azure_containerservice_managed_cluster_upgrade_profiles](azure_containerservice_managed_cluster_upgrade_profiles.md) -- [azure_containerservice_snapshots](azure_containerservice_snapshots.md) - [azure_cosmos_database_accounts](azure_cosmos_database_accounts.md) - [azure_cosmos_mongo_db_databases](azure_cosmos_mongo_db_databases.md) - [azure_cosmos_sql_databases](azure_cosmos_sql_databases.md) - [azure_cosmos_locations](azure_cosmos_locations.md) - [azure_cosmos_restorable_database_accounts](azure_cosmos_restorable_database_accounts.md) -- [azure_costmanagement_views](azure_costmanagement_views.md) - - [azure_costmanagement_view_queries](azure_costmanagement_view_queries.md) -- [azure_customerinsights_hubs](azure_customerinsights_hubs.md) -- [azure_dashboard_grafana](azure_dashboard_grafana.md) -- [azure_databox_jobs](azure_databox_jobs.md) -- [azure_datadog_marketplace_agreements](azure_datadog_marketplace_agreements.md) -- [azure_datadog_monitors](azure_datadog_monitors.md) -- [azure_datafactory_factories](azure_datafactory_factories.md) -- [azure_datalakeanalytics_accounts](azure_datalakeanalytics_accounts.md) -- [azure_datalakestore_accounts](azure_datalakestore_accounts.md) -- [azure_datamigration_services](azure_datamigration_services.md) -- [azure_desktopvirtualization_host_pools](azure_desktopvirtualization_host_pools.md) -- [azure_devhub_workflow](azure_devhub_workflow.md) -- [azure_devops_pipeline_template_definitions](azure_devops_pipeline_template_definitions.md) -- [azure_dns_zones](azure_dns_zones.md) - - [azure_dns_record_sets](azure_dns_record_sets.md) -- [azure_dnsresolver_dns_forwarding_rulesets](azure_dnsresolver_dns_forwarding_rulesets.md) -- [azure_dnsresolver_dns_resolvers](azure_dnsresolver_dns_resolvers.md) -- [azure_elastic_monitors](azure_elastic_monitors.md) -- [azure_engagementfabric_accounts](azure_engagementfabric_accounts.md) -- [azure_eventgrid_topic_types](azure_eventgrid_topic_types.md) -- [azure_eventhub_namespaces](azure_eventhub_namespaces.md) - - [azure_eventhub_namespace_network_rule_sets](azure_eventhub_namespace_network_rule_sets.md) -- [azure_frontdoor_front_doors](azure_frontdoor_front_doors.md) -- [azure_frontdoor_managed_rule_sets](azure_frontdoor_managed_rule_sets.md) -- [azure_frontdoor_network_experiment_profiles](azure_frontdoor_network_experiment_profiles.md) -- [azure_hanaonazure_sap_monitors](azure_hanaonazure_sap_monitors.md) -- [azure_hdinsight_clusters](azure_hdinsight_clusters.md) -- [azure_healthbot_bots](azure_healthbot_bots.md) -- [azure_healthcareapis_services](azure_healthcareapis_services.md) -- [azure_hybridcompute_private_link_scopes](azure_hybridcompute_private_link_scopes.md) -- [azure_hybriddatamanager_data_managers](azure_hybriddatamanager_data_managers.md) -- [azure_keyvault_keyvault](azure_keyvault_keyvault.md) - - [azure_keyvault_keyvault_keys](azure_keyvault_keyvault_keys.md) - - [azure_keyvault_keyvault_secrets](azure_keyvault_keyvault_secrets.md) -- [azure_keyvault_keyvault_managed_hsms](azure_keyvault_keyvault_managed_hsms.md) -- [azure_kusto_clusters](azure_kusto_clusters.md) -- [azure_logic_workflows](azure_logic_workflows.md) -- [azure_maintenance_configurations](azure_maintenance_configurations.md) -- [azure_maintenance_public_maintenance_configurations](azure_maintenance_public_maintenance_configurations.md) -- [azure_managementgroups_entities](azure_managementgroups_entities.md) -- [azure_managementgroups_management_groups](azure_managementgroups_management_groups.md) - [azure_mariadb_servers](azure_mariadb_servers.md) - [azure_mariadb_server_configurations](azure_mariadb_server_configurations.md) -- [azure_marketplace_private_store](azure_marketplace_private_store.md) -- [azure_monitor_activity_log_alerts](azure_monitor_activity_log_alerts.md) -- [azure_monitor_autoscale_settings](azure_monitor_autoscale_settings.md) -- [azure_monitor_log_profiles](azure_monitor_log_profiles.md) -- [azure_monitor_private_link_scopes](azure_monitor_private_link_scopes.md) -- [azure_monitor_resources](azure_monitor_resources.md) - - [azure_monitor_diagnostic_settings](azure_monitor_diagnostic_settings.md) -- [azure_monitor_subscription_diagnostic_settings](azure_monitor_subscription_diagnostic_settings.md) -- [azure_monitor_tenant_activity_log_alerts](azure_monitor_tenant_activity_log_alerts.md) -- [azure_monitor_tenant_activity_logs](azure_monitor_tenant_activity_logs.md) - [azure_mysql_servers](azure_mysql_servers.md) - [azure_mysql_server_configurations](azure_mysql_server_configurations.md) - [azure_mysql_server_databases](azure_mysql_server_databases.md) - [azure_mysqlflexibleservers_servers](azure_mysqlflexibleservers_servers.md) - [azure_mysqlflexibleservers_server_configurations](azure_mysqlflexibleservers_server_configurations.md) - [azure_mysqlflexibleservers_server_firewall_rules](azure_mysqlflexibleservers_server_firewall_rules.md) -- [azure_network_application_gateways](azure_network_application_gateways.md) -- [azure_network_application_security_groups](azure_network_application_security_groups.md) -- [azure_network_azure_firewall_fqdn_tags](azure_network_azure_firewall_fqdn_tags.md) -- [azure_network_azure_firewalls](azure_network_azure_firewalls.md) -- [azure_network_bastion_hosts](azure_network_bastion_hosts.md) - [azure_network_bgp_service_communities](azure_network_bgp_service_communities.md) -- [azure_network_custom_ip_prefixes](azure_network_custom_ip_prefixes.md) -- [azure_network_ddos_protection_plans](azure_network_ddos_protection_plans.md) -- [azure_network_dscp_configuration](azure_network_dscp_configuration.md) -- [azure_network_express_route_circuits](azure_network_express_route_circuits.md) - - [azure_network_express_route_circuit_authorizations](azure_network_express_route_circuit_authorizations.md) - - [azure_network_express_route_circuit_peerings](azure_network_express_route_circuit_peerings.md) -- [azure_network_express_route_gateways](azure_network_express_route_gateways.md) -- [azure_network_express_route_ports](azure_network_express_route_ports.md) -- [azure_network_express_route_ports_locations](azure_network_express_route_ports_locations.md) -- [azure_network_express_route_service_providers](azure_network_express_route_service_providers.md) -- [azure_network_firewall_policies](azure_network_firewall_policies.md) -- [azure_network_interfaces](azure_network_interfaces.md) - - [azure_network_interface_ip_configurations](azure_network_interface_ip_configurations.md) -- [azure_network_ip_allocations](azure_network_ip_allocations.md) -- [azure_network_ip_groups](azure_network_ip_groups.md) -- [azure_network_load_balancers](azure_network_load_balancers.md) -- [azure_network_nat_gateways](azure_network_nat_gateways.md) -- [azure_network_private_endpoints](azure_network_private_endpoints.md) -- [azure_network_private_link_services](azure_network_private_link_services.md) -- [azure_network_profiles](azure_network_profiles.md) -- [azure_network_public_ip_addresses](azure_network_public_ip_addresses.md) -- [azure_network_public_ip_prefixes](azure_network_public_ip_prefixes.md) -- [azure_network_route_filters](azure_network_route_filters.md) -- [azure_network_route_tables](azure_network_route_tables.md) -- [azure_network_security_groups](azure_network_security_groups.md) -- [azure_network_security_partner_providers](azure_network_security_partner_providers.md) -- [azure_network_service_endpoint_policies](azure_network_service_endpoint_policies.md) -- [azure_network_subscription_network_manager_connections](azure_network_subscription_network_manager_connections.md) -- [azure_network_virtual_appliances](azure_network_virtual_appliances.md) -- [azure_network_virtual_hubs](azure_network_virtual_hubs.md) -- [azure_network_virtual_network_gateway_connections](azure_network_virtual_network_gateway_connections.md) -- [azure_network_virtual_network_gateways](azure_network_virtual_network_gateways.md) -- [azure_network_virtual_network_taps](azure_network_virtual_network_taps.md) -- [azure_network_virtual_networks](azure_network_virtual_networks.md) - - [azure_network_virtual_network_subnets](azure_network_virtual_network_subnets.md) -- [azure_network_virtual_routers](azure_network_virtual_routers.md) -- [azure_network_virtual_wans](azure_network_virtual_wans.md) -- [azure_network_vpn_gateways](azure_network_vpn_gateways.md) -- [azure_network_vpn_server_configurations](azure_network_vpn_server_configurations.md) -- [azure_network_vpn_sites](azure_network_vpn_sites.md) -- [azure_network_watchers](azure_network_watchers.md) - - [azure_network_watcher_flow_logs](azure_network_watcher_flow_logs.md) -- [azure_network_web_application_firewall_policies](azure_network_web_application_firewall_policies.md) -- [azure_networkfunction_azure_traffic_collectors_by_subscription](azure_networkfunction_azure_traffic_collectors_by_subscription.md) -- [azure_nginx_deployments](azure_nginx_deployments.md) -- [azure_notificationhubs_namespaces](azure_notificationhubs_namespaces.md) -- [azure_operationalinsights_clusters](azure_operationalinsights_clusters.md) -- [azure_operationalinsights_workspaces](azure_operationalinsights_workspaces.md) -- [azure_peering_service_countries](azure_peering_service_countries.md) - [azure_peering_service_locations](azure_peering_service_locations.md) -- [azure_peering_service_providers](azure_peering_service_providers.md) -- [azure_policy_assignments](azure_policy_assignments.md) -- [azure_policy_data_policy_manifests](azure_policy_data_policy_manifests.md) - [azure_policy_definitions](azure_policy_definitions.md) -- [azure_policy_exemptions](azure_policy_exemptions.md) -- [azure_policy_set_definitions](azure_policy_set_definitions.md) -- [azure_portal_list_tenant_configuration_violations](azure_portal_list_tenant_configuration_violations.md) -- [azure_portal_tenant_configurations](azure_portal_tenant_configurations.md) - [azure_postgresql_servers](azure_postgresql_servers.md) - [azure_postgresql_databases](azure_postgresql_databases.md) - [azure_postgresql_server_configurations](azure_postgresql_server_configurations.md) @@ -246,54 +63,7 @@ - [azure_postgresqlflexibleservers_server_configurations](azure_postgresqlflexibleservers_server_configurations.md) - [azure_postgresqlflexibleservers_server_firewall_rules](azure_postgresqlflexibleservers_server_firewall_rules.md) - [azure_postgresqlhsc_server_groups](azure_postgresqlhsc_server_groups.md) -- [azure_powerbidedicated_capacities](azure_powerbidedicated_capacities.md) -- [azure_privatedns_private_zones](azure_privatedns_private_zones.md) - - [azure_privatedns_private_zone_record_sets](azure_privatedns_private_zone_record_sets.md) - - [azure_privatedns_private_zone_virtual_network_links](azure_privatedns_private_zone_virtual_network_links.md) -- [azure_providerhub_provider_registrations](azure_providerhub_provider_registrations.md) -- [azure_redhatopenshift_open_shift_clusters](azure_redhatopenshift_open_shift_clusters.md) -- [azure_redis_caches](azure_redis_caches.md) -- [azure_relay_namespaces](azure_relay_namespaces.md) -- [azure_reservations_reservation](azure_reservations_reservation.md) -- [azure_reservations_reservation_order](azure_reservations_reservation_order.md) -- [azure_resources_links](azure_resources_links.md) -- [azure_resources_providers](azure_resources_providers.md) -- [azure_resources_resource_groups](azure_resources_resource_groups.md) -- [azure_resources_resources](azure_resources_resources.md) -- [azure_role_management_policy_assignments](azure_role_management_policy_assignments.md) -- [azure_saas_resources](azure_saas_resources.md) -- [azure_search_services](azure_search_services.md) -- [azure_security_adaptive_application_controls](azure_security_adaptive_application_controls.md) -- [azure_security_alerts](azure_security_alerts.md) -- [azure_security_alerts_suppression_rules](azure_security_alerts_suppression_rules.md) -- [azure_security_allowed_connections](azure_security_allowed_connections.md) -- [azure_security_applications](azure_security_applications.md) -- [azure_security_assessments](azure_security_assessments.md) - [azure_security_assessments_metadata](azure_security_assessments_metadata.md) -- [azure_security_auto_provisioning_settings](azure_security_auto_provisioning_settings.md) -- [azure_security_automations](azure_security_automations.md) -- [azure_security_connectors](azure_security_connectors.md) -- [azure_security_contacts](azure_security_contacts.md) -- [azure_security_discovered_security_solutions](azure_security_discovered_security_solutions.md) -- [azure_security_external_security_solutions](azure_security_external_security_solutions.md) -- [azure_security_governance_rule](azure_security_governance_rule.md) -- [azure_security_jit_network_access_policies](azure_security_jit_network_access_policies.md) -- [azure_security_locations](azure_security_locations.md) -- [azure_security_pricings](azure_security_pricings.md) -- [azure_security_regulatory_compliance_standards](azure_security_regulatory_compliance_standards.md) -- [azure_security_secure_score_control_definitions](azure_security_secure_score_control_definitions.md) -- [azure_security_secure_score_controls](azure_security_secure_score_controls.md) -- [azure_security_secure_scores](azure_security_secure_scores.md) -- [azure_security_settings](azure_security_settings.md) -- [azure_security_solutions](azure_security_solutions.md) -- [azure_security_sub_assessments](azure_security_sub_assessments.md) -- [azure_security_tasks](azure_security_tasks.md) -- [azure_security_topology](azure_security_topology.md) -- [azure_security_workspace_settings](azure_security_workspace_settings.md) -- [azure_servicebus_namespaces](azure_servicebus_namespaces.md) - - [azure_servicebus_namespace_topics](azure_servicebus_namespace_topics.md) - - [azure_servicebus_namespace_topic_authorization_rules](azure_servicebus_namespace_topic_authorization_rules.md) - - [azure_servicebus_namespace_topic_rule_access_keys](azure_servicebus_namespace_topic_rule_access_keys.md) - [azure_sql_instance_pools](azure_sql_instance_pools.md) - [azure_sql_managed_instances](azure_sql_managed_instances.md) - [azure_sql_managed_instance_encryption_protectors](azure_sql_managed_instance_encryption_protectors.md) @@ -325,15 +95,4 @@ - [azure_storage_queues](azure_storage_queues.md) - [azure_storage_queue_acl](azure_storage_queue_acl.md) - [azure_storage_tables](azure_storage_tables.md) -- [azure_storagecache_caches](azure_storagecache_caches.md) -- [azure_streamanalytics_streaming_jobs](azure_streamanalytics_streaming_jobs.md) -- [azure_subscription_subscriptions](azure_subscription_subscriptions.md) - - [azure_subscription_subscription_locations](azure_subscription_subscription_locations.md) -- [azure_subscription_tenants](azure_subscription_tenants.md) -- [azure_support_services](azure_support_services.md) -- [azure_support_tickets](azure_support_tickets.md) -- [azure_synapse_private_link_hubs](azure_synapse_private_link_hubs.md) -- [azure_synapse_workspaces](azure_synapse_workspaces.md) -- [azure_trafficmanager_profiles](azure_trafficmanager_profiles.md) -- [azure_windowsiot_services](azure_windowsiot_services.md) -- [azure_workloads_monitors](azure_workloads_monitors.md) \ No newline at end of file +- [azure_storagecache_caches](azure_storagecache_caches.md) \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_advisor_recommendation_metadata.md b/plugins/source/azure/docs/tables/azure_advisor_recommendation_metadata.md deleted file mode 100644 index 75c69f1245ff84..00000000000000 --- a/plugins/source/azure/docs/tables/azure_advisor_recommendation_metadata.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_advisor_recommendation_metadata - -This table shows data for Azure Advisor Recommendation Metadata. - -https://learn.microsoft.com/en-us/rest/api/advisor/recommendation-metadata/list?tabs=HTTP#metadataentity - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_advisor_recommendations.md b/plugins/source/azure/docs/tables/azure_advisor_recommendations.md deleted file mode 100644 index 4d328d5c602b84..00000000000000 --- a/plugins/source/azure/docs/tables/azure_advisor_recommendations.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_advisor_recommendations - -This table shows data for Azure Advisor Recommendations. - -https://learn.microsoft.com/en-us/rest/api/advisor/recommendations/list?tabs=HTTP#resourcerecommendationbase - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_advisor_suppressions.md b/plugins/source/azure/docs/tables/azure_advisor_suppressions.md deleted file mode 100644 index d35880c055a57c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_advisor_suppressions.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_advisor_suppressions - -This table shows data for Azure Advisor Suppressions. - -https://learn.microsoft.com/en-us/rest/api/advisor/suppressions/list?tabs=HTTP#suppressioncontractlistresult - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_analysisservices_servers.md b/plugins/source/azure/docs/tables/azure_analysisservices_servers.md deleted file mode 100644 index 56cf113385efed..00000000000000 --- a/plugins/source/azure/docs/tables/azure_analysisservices_servers.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_analysisservices_servers - -This table shows data for Azure Analysis Services Servers. - -https://learn.microsoft.com/en-us/rest/api/analysisservices/servers/list?tabs=HTTP#analysisservicesserver - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_apimanagement_service.md b/plugins/source/azure/docs/tables/azure_apimanagement_service.md deleted file mode 100644 index b9b9212b611857..00000000000000 --- a/plugins/source/azure/docs/tables/azure_apimanagement_service.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_apimanagement_service - -This table shows data for Azure API Management Service. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement#ServiceResource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|identity|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_appcomplianceautomation_reports.md b/plugins/source/azure/docs/tables/azure_appcomplianceautomation_reports.md deleted file mode 100644 index fa921fd9dd6bf1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_appcomplianceautomation_reports.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_appcomplianceautomation_reports - -This table shows data for Azure App Compliance Automation Reports. - -https://learn.microsoft.com/en-us/rest/api/appcompliance/reports/list?tabs=HTTP#reportresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_appconfiguration_configuration_stores.md b/plugins/source/azure/docs/tables/azure_appconfiguration_configuration_stores.md deleted file mode 100644 index a5aee2d7d3f28d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_appconfiguration_configuration_stores.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_appconfiguration_configuration_stores - -This table shows data for Azure Appconfiguration Configuration Stores. - -https://learn.microsoft.com/en-us/rest/api/appconfiguration/stable/configuration-stores/list?tabs=HTTP#configurationstore - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_applicationinsights_components.md b/plugins/source/azure/docs/tables/azure_applicationinsights_components.md deleted file mode 100644 index d30424c24c4f4c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_applicationinsights_components.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_applicationinsights_components - -This table shows data for Azure Application Insights Components. - -https://learn.microsoft.com/en-us/rest/api/application-insights/components/list?tabs=HTTP#applicationinsightscomponent - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|kind|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_applicationinsights_web_tests.md b/plugins/source/azure/docs/tables/azure_applicationinsights_web_tests.md deleted file mode 100644 index d69e647c3094f5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_applicationinsights_web_tests.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_applicationinsights_web_tests - -This table shows data for Azure Application Insights Web Tests. - -https://learn.microsoft.com/en-us/rest/api/application-insights/web-tests/list?tabs=HTTP#webtest - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|kind|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_authorization_classic_administrators.md b/plugins/source/azure/docs/tables/azure_authorization_classic_administrators.md deleted file mode 100644 index cc8f8537385988..00000000000000 --- a/plugins/source/azure/docs/tables/azure_authorization_classic_administrators.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_authorization_classic_administrators - -This table shows data for Azure Authorization Classic Administrators. - -https://learn.microsoft.com/en-us/rest/api/authorization/classic-administrators/list?tabs=HTTP#classicadministrator - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_authorization_role_assignments.md b/plugins/source/azure/docs/tables/azure_authorization_role_assignments.md deleted file mode 100644 index 7b61598edee039..00000000000000 --- a/plugins/source/azure/docs/tables/azure_authorization_role_assignments.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_authorization_role_assignments - -This table shows data for Azure Authorization Role Assignments. - -https://learn.microsoft.com/en-us/rest/api/authorization/role-assignments/get?tabs=HTTP#roleassignment - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_automation_account.md b/plugins/source/azure/docs/tables/azure_automation_account.md deleted file mode 100644 index c9dd7b02e68dd6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_automation_account.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_automation_account - -This table shows data for Azure Automation Account. - -https://learn.microsoft.com/en-us/rest/api/automation/automation-account/list?tabs=HTTP#automationaccount - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_azurearcdata_postgres_instances.md b/plugins/source/azure/docs/tables/azure_azurearcdata_postgres_instances.md deleted file mode 100644 index 6b627b980e0a33..00000000000000 --- a/plugins/source/azure/docs/tables/azure_azurearcdata_postgres_instances.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_azurearcdata_postgres_instances - -This table shows data for Azure Azure Arc Data Postgres Instances. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata@v0.5.0#PostgresInstance - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_azurearcdata_sql_managed_instances.md b/plugins/source/azure/docs/tables/azure_azurearcdata_sql_managed_instances.md deleted file mode 100644 index 51afd8fdc39831..00000000000000 --- a/plugins/source/azure/docs/tables/azure_azurearcdata_sql_managed_instances.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_azurearcdata_sql_managed_instances - -This table shows data for Azure Azure Arc Data SQL Managed Instances. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata@v0.5.0#SQLManagedInstance - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_azurearcdata_sql_server_instances.md b/plugins/source/azure/docs/tables/azure_azurearcdata_sql_server_instances.md deleted file mode 100644 index 53badc186ff1bc..00000000000000 --- a/plugins/source/azure/docs/tables/azure_azurearcdata_sql_server_instances.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_azurearcdata_sql_server_instances - -This table shows data for Azure Azure Arc Data SQL Server Instances. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata@v0.5.0#SQLServerInstance - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_batch_account.md b/plugins/source/azure/docs/tables/azure_batch_account.md deleted file mode 100644 index 3eb772707f701a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_batch_account.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_batch_account - -This table shows data for Azure Batch Account. - -https://learn.microsoft.com/en-us/rest/api/batchmanagement/batch-account/list?tabs=HTTP#batchaccount - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_billing_accounts.md b/plugins/source/azure/docs/tables/azure_billing_accounts.md deleted file mode 100644 index fcaa9db2c2dfc7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_billing_accounts.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_billing_accounts - -This table shows data for Azure Billing Accounts. - -https://learn.microsoft.com/en-us/rest/api/billing/2020-05-01/billing-accounts/list?tabs=HTTP#billingaccount - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_billing_enrollment_accounts.md b/plugins/source/azure/docs/tables/azure_billing_enrollment_accounts.md deleted file mode 100644 index 113d608bf53961..00000000000000 --- a/plugins/source/azure/docs/tables/azure_billing_enrollment_accounts.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_billing_enrollment_accounts - -This table shows data for Azure Billing Enrollment Accounts. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling@v0.5.0#EnrollmentAccountSummary - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_billing_periods.md b/plugins/source/azure/docs/tables/azure_billing_periods.md deleted file mode 100644 index 28a19f45a5bbc3..00000000000000 --- a/plugins/source/azure/docs/tables/azure_billing_periods.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_billing_periods - -This table shows data for Azure Billing Periods. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling@v0.5.0#Period - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_botservice_bots.md b/plugins/source/azure/docs/tables/azure_botservice_bots.md deleted file mode 100644 index 20cffe0816b5aa..00000000000000 --- a/plugins/source/azure/docs/tables/azure_botservice_bots.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_botservice_bots - -This table shows data for Azure Botservice Bots. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice@v0.5.0#Bot - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| -|zones|`list`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md b/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md deleted file mode 100644 index ed4879b201f03b..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cdn_edge_nodes.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_cdn_edge_nodes - -This table shows data for Azure Content Delivery Network (CDN) Edge Nodes. - -https://learn.microsoft.com/en-us/rest/api/cdn/edge-nodes/list?tabs=HTTP#edgenode - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cdn_endpoints.md b/plugins/source/azure/docs/tables/azure_cdn_endpoints.md deleted file mode 100644 index cf29e9333f8b3d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cdn_endpoints.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_cdn_endpoints - -This table shows data for Azure Content Delivery Network (CDN) Endpoints. - -https://learn.microsoft.com/en-us/rest/api/cdn/endpoints/list-by-profile?tabs=HTTP#endpoint - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_cdn_profiles](azure_cdn_profiles.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cdn_managed_rule_sets.md b/plugins/source/azure/docs/tables/azure_cdn_managed_rule_sets.md deleted file mode 100644 index 06d2306c9a4541..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cdn_managed_rule_sets.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_cdn_managed_rule_sets - -This table shows data for Azure Content Delivery Network (CDN) Managed Rule Sets. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn@v1.0.0#ManagedRuleSetDefinition - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|properties|`json`| -|sku|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cdn_profiles.md b/plugins/source/azure/docs/tables/azure_cdn_profiles.md deleted file mode 100644 index a156ce9aaf54d1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cdn_profiles.md +++ /dev/null @@ -1,30 +0,0 @@ -# Table: azure_cdn_profiles - -This table shows data for Azure Content Delivery Network (CDN) Profiles. - -https://learn.microsoft.com/en-us/rest/api/cdn/profiles/list?tabs=HTTP#profile - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_cdn_profiles: - - [azure_cdn_endpoints](azure_cdn_endpoints.md) - - [azure_cdn_rule_sets](azure_cdn_rule_sets.md) - - [azure_cdn_security_policies](azure_cdn_security_policies.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|location|`utf8`| -|sku|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|kind|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cdn_rule_sets.md b/plugins/source/azure/docs/tables/azure_cdn_rule_sets.md deleted file mode 100644 index 4fc59d08e4ec2d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cdn_rule_sets.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_cdn_rule_sets - -This table shows data for Azure Content Delivery Network (CDN) Rule Sets. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn@v1.0.0#RuleSet - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_cdn_profiles](azure_cdn_profiles.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cdn_security_policies.md b/plugins/source/azure/docs/tables/azure_cdn_security_policies.md deleted file mode 100644 index 68a394c1c2d839..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cdn_security_policies.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_cdn_security_policies - -This table shows data for Azure Content Delivery Network (CDN) Security Policies. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn@v1.0.0#SecurityPolicy - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_cdn_profiles](azure_cdn_profiles.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_deployments.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_account_deployments.md deleted file mode 100644 index d81c8e05b0fade..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_deployments.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_cognitiveservices_account_deployments - -This table shows data for Azure Cognitive Services Account Deployments. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/deployments/list?tabs=HTTP#deployment - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|sku|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_models.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_account_models.md deleted file mode 100644 index e13597778c5e85..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_models.md +++ /dev/null @@ -1,34 +0,0 @@ -# Table: azure_cognitiveservices_account_models - -This table shows data for Azure Cognitive Services Account Models. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices@v1.3.0#AccountModel - -The primary key for this table is **_cq_id**. - -## Relations - -This table depends on [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id (PK)|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|account_id|`utf8`| -|base_model|`json`| -|capabilities|`json`| -|deprecation|`json`| -|finetune_capabilities|`json`| -|format|`utf8`| -|is_default_version|`bool`| -|lifecycle_status|`utf8`| -|max_capacity|`int64`| -|name|`utf8`| -|sk_us|`json`| -|source|`utf8`| -|version|`utf8`| -|call_rate_limit|`json`| -|system_data|`json`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_private_endpoint_connections.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_account_private_endpoint_connections.md deleted file mode 100644 index 0f505c5fe17b62..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_private_endpoint_connections.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_cognitiveservices_account_private_endpoint_connections - -This table shows data for Azure Cognitive Services Account Private Endpoint Connections. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/private-endpoint-connections/list?tabs=HTTP#privateendpointconnection - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_private_link_resources.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_account_private_link_resources.md deleted file mode 100644 index 602bc91dda3016..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_private_link_resources.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_cognitiveservices_account_private_link_resources - -This table shows data for Azure Cognitive Services Account Private Link Resources. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/private-link-resources/list?tabs=HTTP#privatelinkresource - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_skus.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_account_skus.md deleted file mode 100644 index 7ddc26688f5f29..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_skus.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_cognitiveservices_account_skus - -This table shows data for Azure Cognitive Services Account Skus. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list-skus?tabs=HTTP#accountsku - -The primary key for this table is **_cq_id**. - -## Relations - -This table depends on [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id (PK)|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|account_id|`utf8`| -|resource_type|`utf8`| -|sku|`json`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_usages.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_account_usages.md deleted file mode 100644 index 9f584a9162912b..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_account_usages.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: azure_cognitiveservices_account_usages - -This table shows data for Azure Cognitive Services Account Usages. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list-usages?tabs=HTTP#usage - -The primary key for this table is **_cq_id**. - -## Relations - -This table depends on [azure_cognitiveservices_accounts](azure_cognitiveservices_accounts.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id (PK)|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|account_id|`utf8`| -|current_value|`float64`| -|limit|`float64`| -|name|`json`| -|next_reset_time|`utf8`| -|quota_period|`utf8`| -|status|`utf8`| -|unit|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_accounts.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_accounts.md deleted file mode 100644 index 37d24732784743..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_accounts.md +++ /dev/null @@ -1,36 +0,0 @@ -# Table: azure_cognitiveservices_accounts - -This table shows data for Azure Cognitive Services Accounts. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list?tabs=HTTP#account - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_cognitiveservices_accounts: - - [azure_cognitiveservices_account_deployments](azure_cognitiveservices_account_deployments.md) - - [azure_cognitiveservices_account_models](azure_cognitiveservices_account_models.md) - - [azure_cognitiveservices_account_private_endpoint_connections](azure_cognitiveservices_account_private_endpoint_connections.md) - - [azure_cognitiveservices_account_private_link_resources](azure_cognitiveservices_account_private_link_resources.md) - - [azure_cognitiveservices_account_skus](azure_cognitiveservices_account_skus.md) - - [azure_cognitiveservices_account_usages](azure_cognitiveservices_account_usages.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_commitment_plans.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_commitment_plans.md deleted file mode 100644 index a6fc1f53fa88c0..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_commitment_plans.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_cognitiveservices_commitment_plans - -This table shows data for Azure Cognitive Services Commitment Plans. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/commitment-plans/list?tabs=HTTP#commitmentplan - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_deleted_accounts.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_deleted_accounts.md deleted file mode 100644 index d30f6c9657f4a6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_deleted_accounts.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_cognitiveservices_deleted_accounts - -This table shows data for Azure Cognitive Services Deleted Accounts. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/deleted-accounts/list?tabs=HTTP#account - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_cognitiveservices_resource_skus.md b/plugins/source/azure/docs/tables/azure_cognitiveservices_resource_skus.md deleted file mode 100644 index bec68fc8a9c6d4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_cognitiveservices_resource_skus.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_cognitiveservices_resource_skus - -This table shows data for Azure Cognitive Services Resource Skus. - -https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/resource-skus/list?tabs=HTTP#resourcesku - -The primary key for this table is **_cq_id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id (PK)|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|kind|`utf8`| -|locations|`list`| -|name|`utf8`| -|resource_type|`utf8`| -|restrictions|`json`| -|tier|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_confluent_marketplace_agreements.md b/plugins/source/azure/docs/tables/azure_confluent_marketplace_agreements.md deleted file mode 100644 index fa9c71a618a5b0..00000000000000 --- a/plugins/source/azure/docs/tables/azure_confluent_marketplace_agreements.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_confluent_marketplace_agreements - -This table shows data for Azure Confluent Marketplace Agreements. - -https://learn.microsoft.com/en-us/rest/api/confluent/marketplace-agreements/list?tabs=HTTP#confluentagreementresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_clusters.md b/plugins/source/azure/docs/tables/azure_connectedvmware_clusters.md deleted file mode 100644 index 954a013c9229cd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_clusters.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_clusters - -This table shows data for Azure Connected VMware Clusters. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#Cluster - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_datastores.md b/plugins/source/azure/docs/tables/azure_connectedvmware_datastores.md deleted file mode 100644 index ed4f79b6db00a8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_datastores.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_datastores - -This table shows data for Azure Connected VMware Datastores. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#Datastore - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_hosts.md b/plugins/source/azure/docs/tables/azure_connectedvmware_hosts.md deleted file mode 100644 index 0df3c42d95795d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_hosts.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_hosts - -This table shows data for Azure Connected VMware Hosts. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#Host - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_resource_pools.md b/plugins/source/azure/docs/tables/azure_connectedvmware_resource_pools.md deleted file mode 100644 index 8a200b9595eeb1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_resource_pools.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_resource_pools - -This table shows data for Azure Connected VMware Resource Pools. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#ResourcePool - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_v_centers.md b/plugins/source/azure/docs/tables/azure_connectedvmware_v_centers.md deleted file mode 100644 index 1425c163c22269..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_v_centers.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_v_centers - -This table shows data for Azure Connected VMware V Centers. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VCenter - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_machine_templates.md b/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_machine_templates.md deleted file mode 100644 index f3a75a4c539595..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_machine_templates.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_virtual_machine_templates - -This table shows data for Azure Connected VMware Virtual Machine Templates. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VirtualMachineTemplate - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_machines.md b/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_machines.md deleted file mode 100644 index d842ed211a32bb..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_machines.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_connectedvmware_virtual_machines - -This table shows data for Azure Connected VMware Virtual Machines. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VirtualMachine - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|identity|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_networks.md b/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_networks.md deleted file mode 100644 index 47780667767552..00000000000000 --- a/plugins/source/azure/docs/tables/azure_connectedvmware_virtual_networks.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_connectedvmware_virtual_networks - -This table shows data for Azure Connected VMware Virtual Networks. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VirtualNetwork - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|extended_location|`json`| -|kind|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_balances.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_balances.md deleted file mode 100644 index 25537c745cc78d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_balances.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_billing_account_balances - -This table shows data for Azure Consumption Billing Account Balances. - -https://learn.microsoft.com/en-us/rest/api/consumption/balances/get-by-billing-account?tabs=HTTP#balance - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_budgets.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_budgets.md deleted file mode 100644 index 5aa8cfe533f3fb..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_budgets.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_billing_account_budgets - -This table shows data for Azure Consumption Billing Account Budgets. - -https://learn.microsoft.com/en-us/rest/api/consumption/budgets/list?tabs=HTTP#budget - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|e_tag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_charges.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_charges.md deleted file mode 100644 index dc7a7cd7810b50..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_charges.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_billing_account_charges - -This table shows data for Azure Consumption Billing Account Charges. - -https://learn.microsoft.com/en-us/rest/api/consumption/charges/list?tabs=HTTP#modernchargesummary - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|properties|`json`| -|e_tag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_events.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_events.md deleted file mode 100644 index 1f935bc0566af9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_events.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_billing_account_events - -This table shows data for Azure Consumption Billing Account Events. - -https://learn.microsoft.com/en-us/rest/api/consumption/events/list-by-billing-account?tabs=HTTP#eventsummary - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|e_tag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_legacy_usage_details.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_legacy_usage_details.md deleted file mode 100644 index ffbea6aef1f384..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_legacy_usage_details.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_consumption_billing_account_legacy_usage_details - -This table shows data for Azure Consumption Billing Account Legacy Usage Details. - -https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#legacyusagedetail - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_lots.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_lots.md deleted file mode 100644 index 1c5514a9d10ad7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_lots.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_billing_account_lots - -This table shows data for Azure Consumption Billing Account Lots. - -https://learn.microsoft.com/en-us/rest/api/consumption/lots/list-by-billing-account?tabs=HTTP#lotsummary - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|e_tag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_marketplaces.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_marketplaces.md deleted file mode 100644 index 84df0e6a69417c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_marketplaces.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_billing_account_marketplaces - -This table shows data for Azure Consumption Billing Account Marketplaces. - -https://learn.microsoft.com/en-us/rest/api/consumption/marketplaces/list?tabs=HTTP#marketplace - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_modern_usage_details.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_modern_usage_details.md deleted file mode 100644 index 82ceaa0a4b9623..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_modern_usage_details.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_consumption_billing_account_modern_usage_details - -This table shows data for Azure Consumption Billing Account Modern Usage Details. - -https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#modernusagedetail - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_reservation_recommendations.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_reservation_recommendations.md deleted file mode 100644 index 37187f3f382ace..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_reservation_recommendations.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_consumption_billing_account_reservation_recommendations - -This table shows data for Azure Consumption Billing Account Reservation Recommendations. - -https://learn.microsoft.com/en-us/rest/api/consumption/reservation-recommendations/list?tabs=HTTP#legacyreservationrecommendation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|etag|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|sku|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_account_tags.md b/plugins/source/azure/docs/tables/azure_consumption_billing_account_tags.md deleted file mode 100644 index 66f8a31bc7bbf6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_account_tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_billing_account_tags - -This table shows data for Azure Consumption Billing Account Tags. - -https://learn.microsoft.com/en-us/rest/api/consumption/tags/get?tabs=HTTP#tagsresult - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|e_tag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_details.md b/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_details.md deleted file mode 100644 index a231e3b82b8d6d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_details.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_billing_profile_reservation_details - -This table shows data for Azure Consumption Billing Profile Reservation Details. - -https://learn.microsoft.com/en-us/rest/api/consumption/reservations-details/list?tabs=HTTP#reservationdetail - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_recommendations.md b/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_recommendations.md deleted file mode 100644 index 2fb45698e918b9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_recommendations.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_consumption_billing_profile_reservation_recommendations - -This table shows data for Azure Consumption Billing Profile Reservation Recommendations. - -https://learn.microsoft.com/en-us/rest/api/consumption/reservation-recommendations/list?tabs=HTTP#modernreservationrecommendation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|sku|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_summaries.md b/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_summaries.md deleted file mode 100644 index aeebea4f07b269..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_summaries.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_billing_profile_reservation_summaries - -This table shows data for Azure Consumption Billing Profile Reservation Summaries. - -https://learn.microsoft.com/en-us/rest/api/consumption/reservations-summaries/list?tabs=HTTP#reservationsummary - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_transactions.md b/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_transactions.md deleted file mode 100644 index 29280d81c00e71..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_billing_profile_reservation_transactions.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_billing_profile_reservation_transactions - -This table shows data for Azure Consumption Billing Profile Reservation Transactions. - -https://learn.microsoft.com/en-us/rest/api/consumption/reservation-transactions/list?tabs=HTTP#reservationtransaction - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`list`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_subscription_budgets.md b/plugins/source/azure/docs/tables/azure_consumption_subscription_budgets.md deleted file mode 100644 index adfe16b4dda606..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_subscription_budgets.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_subscription_budgets - -This table shows data for Azure Consumption Subscription Budgets. - -https://learn.microsoft.com/en-us/rest/api/consumption/budgets/list?tabs=HTTP#budget - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|e_tag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_subscription_legacy_usage_details.md b/plugins/source/azure/docs/tables/azure_consumption_subscription_legacy_usage_details.md deleted file mode 100644 index 6bc7eebd54287a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_subscription_legacy_usage_details.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_consumption_subscription_legacy_usage_details - -This table shows data for Azure Consumption Subscription Legacy Usage Details. - -https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#legacyusagedetail - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_subscription_marketplaces.md b/plugins/source/azure/docs/tables/azure_consumption_subscription_marketplaces.md deleted file mode 100644 index 88453d7a81cef9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_subscription_marketplaces.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_subscription_marketplaces - -This table shows data for Azure Consumption Subscription Marketplaces. - -https://learn.microsoft.com/en-us/rest/api/consumption/budgets/list?tabs=HTTP#budget - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_subscription_price_sheets.md b/plugins/source/azure/docs/tables/azure_consumption_subscription_price_sheets.md deleted file mode 100644 index f7697705d08f2c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_subscription_price_sheets.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_consumption_subscription_price_sheets - -This table shows data for Azure Consumption Subscription Price Sheets. - -https://learn.microsoft.com/en-us/rest/api/consumption/price-sheet/get?tabs=HTTP#pricesheetresult - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_subscription_reservation_recommendations.md b/plugins/source/azure/docs/tables/azure_consumption_subscription_reservation_recommendations.md deleted file mode 100644 index c6735efebf84d6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_subscription_reservation_recommendations.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_consumption_subscription_reservation_recommendations - -This table shows data for Azure Consumption Subscription Reservation Recommendations. - -https://learn.microsoft.com/en-us/rest/api/consumption/reservation-recommendations/list?tabs=HTTP#legacyreservationrecommendation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|kind|`utf8`| -|etag|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|sku|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_consumption_subscription_tags.md b/plugins/source/azure/docs/tables/azure_consumption_subscription_tags.md deleted file mode 100644 index 1a22cebf229cb9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_consumption_subscription_tags.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_consumption_subscription_tags - -This table shows data for Azure Consumption Subscription Tags. - -https://learn.microsoft.com/en-us/rest/api/consumption/tags/get?tabs=HTTP#tagsresult - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|e_tag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_containerinstance_container_groups.md b/plugins/source/azure/docs/tables/azure_containerinstance_container_groups.md deleted file mode 100644 index a3a1c4274ad927..00000000000000 --- a/plugins/source/azure/docs/tables/azure_containerinstance_container_groups.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_containerinstance_container_groups - -This table shows data for Azure Container Instance Container Groups. - -https://learn.microsoft.com/en-us/rest/api/container-instances/container-groups/list?tabs=HTTP#containergroup - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|identity|`json`| -|location|`utf8`| -|tags|`json`| -|zones|`list`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_containerregistry_registries.md b/plugins/source/azure/docs/tables/azure_containerregistry_registries.md deleted file mode 100644 index b91aecc9ad1fa6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_containerregistry_registries.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_containerregistry_registries - -This table shows data for Azure Container Registry Registries. - -https://learn.microsoft.com/en-us/rest/api/containerregistry/registries/list?tabs=HTTP#registry - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_containerservice_managed_cluster_upgrade_profiles.md b/plugins/source/azure/docs/tables/azure_containerservice_managed_cluster_upgrade_profiles.md deleted file mode 100644 index 9989823d6bf0ec..00000000000000 --- a/plugins/source/azure/docs/tables/azure_containerservice_managed_cluster_upgrade_profiles.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_containerservice_managed_cluster_upgrade_profiles - -This table shows data for Azure Container Service Managed Cluster Upgrade Profiles. - -https://learn.microsoft.com/en-us/rest/api/aks/managed-clusters/get-upgrade-profile?tabs=HTTP#managedclusterupgradeprofile - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_containerservice_managed_clusters](azure_containerservice_managed_clusters.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_containerservice_managed_clusters.md b/plugins/source/azure/docs/tables/azure_containerservice_managed_clusters.md deleted file mode 100644 index 4fc35fdd2a3d46..00000000000000 --- a/plugins/source/azure/docs/tables/azure_containerservice_managed_clusters.md +++ /dev/null @@ -1,30 +0,0 @@ -# Table: azure_containerservice_managed_clusters - -This table shows data for Azure Container Service Managed Clusters. - -https://learn.microsoft.com/en-us/rest/api/aks/managed-clusters/list?tabs=HTTP#managedcluster - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_containerservice_managed_clusters: - - [azure_containerservice_managed_cluster_upgrade_profiles](azure_containerservice_managed_cluster_upgrade_profiles.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|extended_location|`json`| -|identity|`json`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_containerservice_snapshots.md b/plugins/source/azure/docs/tables/azure_containerservice_snapshots.md deleted file mode 100644 index 38bbc8b8826dc5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_containerservice_snapshots.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_containerservice_snapshots - -This table shows data for Azure Container Service Snapshots. - -https://learn.microsoft.com/en-us/rest/api/aks/snapshots/list?tabs=HTTP#snapshot - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_costmanagement_view_queries.md b/plugins/source/azure/docs/tables/azure_costmanagement_view_queries.md deleted file mode 100644 index 117c54e898b29e..00000000000000 --- a/plugins/source/azure/docs/tables/azure_costmanagement_view_queries.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_costmanagement_view_queries - -This table shows data for Azure Cost Management View Queries. - -https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage?tabs=HTTP#queryresult - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_costmanagement_views](azure_costmanagement_views.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|sku|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_costmanagement_views.md b/plugins/source/azure/docs/tables/azure_costmanagement_views.md deleted file mode 100644 index cb61fff8356859..00000000000000 --- a/plugins/source/azure/docs/tables/azure_costmanagement_views.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_costmanagement_views - -This table shows data for Azure Cost Management Views. - -https://learn.microsoft.com/en-us/rest/api/cost-management/views/list?tabs=HTTP#view - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_costmanagement_views: - - [azure_costmanagement_view_queries](azure_costmanagement_view_queries.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_customerinsights_hubs.md b/plugins/source/azure/docs/tables/azure_customerinsights_hubs.md deleted file mode 100644 index 24ba0bfca45857..00000000000000 --- a/plugins/source/azure/docs/tables/azure_customerinsights_hubs.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_customerinsights_hubs - -This table shows data for Azure Customer Insights Hubs. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/armcustomerinsights@v1.0.0#Hub - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_dashboard_grafana.md b/plugins/source/azure/docs/tables/azure_dashboard_grafana.md deleted file mode 100644 index 42bf5c12201b9d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_dashboard_grafana.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_dashboard_grafana - -This table shows data for Azure Dashboard Grafana. - -https://learn.microsoft.com/en-us/rest/api/managed-grafana/grafana/list-by-resource-group?tabs=HTTP#managedgrafana - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_databox_jobs.md b/plugins/source/azure/docs/tables/azure_databox_jobs.md deleted file mode 100644 index 359c1f6ae4ad73..00000000000000 --- a/plugins/source/azure/docs/tables/azure_databox_jobs.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_databox_jobs - -This table shows data for Azure Data Box Jobs. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox@v1.0.0#JobResource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|identity|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_datadog_marketplace_agreements.md b/plugins/source/azure/docs/tables/azure_datadog_marketplace_agreements.md deleted file mode 100644 index 4b1cddfabc7629..00000000000000 --- a/plugins/source/azure/docs/tables/azure_datadog_marketplace_agreements.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_datadog_marketplace_agreements - -This table shows data for Azure Datadog Marketplace Agreements. - -https://learn.microsoft.com/en-us/rest/api/datadog/marketplace-agreements/list?tabs=HTTP#datadogagreementresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_datadog_monitors.md b/plugins/source/azure/docs/tables/azure_datadog_monitors.md deleted file mode 100644 index edf1ee03b2d2f1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_datadog_monitors.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_datadog_monitors - -This table shows data for Azure Datadog Monitors. - -https://learn.microsoft.com/en-us/rest/api/datadog/monitors/list?tabs=HTTP#datadogmonitorresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_datafactory_factories.md b/plugins/source/azure/docs/tables/azure_datafactory_factories.md deleted file mode 100644 index e8d7a9a77a2f5d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_datafactory_factories.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_datafactory_factories - -This table shows data for Azure Data Factory Factories. - -https://learn.microsoft.com/en-us/rest/api/datafactory/factories/list?tabs=HTTP#factory - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|additional_properties|`json`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_datalakeanalytics_accounts.md b/plugins/source/azure/docs/tables/azure_datalakeanalytics_accounts.md deleted file mode 100644 index d468f0cc8402de..00000000000000 --- a/plugins/source/azure/docs/tables/azure_datalakeanalytics_accounts.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_datalakeanalytics_accounts - -This table shows data for Azure Data Lake Analytics Accounts. - -https://learn.microsoft.com/en-us/rest/api/datalakeanalytics/accounts/list?tabs=HTTP#datalakeanalyticsaccountbasic - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|properties|`json`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_datalakestore_accounts.md b/plugins/source/azure/docs/tables/azure_datalakestore_accounts.md deleted file mode 100644 index 00673d133bc7c8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_datalakestore_accounts.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_datalakestore_accounts - -This table shows data for Azure Data Lake Store Accounts. - -https://learn.microsoft.com/en-us/rest/api/datalakestore/accounts/list?tabs=HTTP#datalakestoreaccountbasic - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|properties|`json`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_datamigration_services.md b/plugins/source/azure/docs/tables/azure_datamigration_services.md deleted file mode 100644 index e371cdd6e6b17d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_datamigration_services.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_datamigration_services - -This table shows data for Azure Datamigration Services. - -https://learn.microsoft.com/en-us/rest/api/datamigration/services/list?tabs=HTTP#datamigrationservice - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|kind|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_desktopvirtualization_host_pools.md b/plugins/source/azure/docs/tables/azure_desktopvirtualization_host_pools.md deleted file mode 100644 index 927ec0ae95c356..00000000000000 --- a/plugins/source/azure/docs/tables/azure_desktopvirtualization_host_pools.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_desktopvirtualization_host_pools - -This table shows data for Azure Desktop Virtualization Host Pools. - -https://learn.microsoft.com/en-us/rest/api/desktopvirtualization/host-pools/list?tabs=HTTP#hostpool - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|identity|`json`| -|kind|`utf8`| -|location|`utf8`| -|managed_by|`utf8`| -|plan|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_devhub_workflow.md b/plugins/source/azure/docs/tables/azure_devhub_workflow.md deleted file mode 100644 index 9ac0d2b3b32e0d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_devhub_workflow.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_devhub_workflow - -This table shows data for Azure Devhub Workflow. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub@v0.2.0#Workflow - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_devops_pipeline_template_definitions.md b/plugins/source/azure/docs/tables/azure_devops_pipeline_template_definitions.md deleted file mode 100644 index d1916a1497f39c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_devops_pipeline_template_definitions.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_devops_pipeline_template_definitions - -This table shows data for Azure DevOps Pipeline Template Definitions. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops@v0.5.0#PipelineTemplateDefinition - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|description|`utf8`| -|inputs|`json`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_dns_record_sets.md b/plugins/source/azure/docs/tables/azure_dns_record_sets.md deleted file mode 100644 index 70cdf9256481de..00000000000000 --- a/plugins/source/azure/docs/tables/azure_dns_record_sets.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_dns_record_sets - -This table shows data for Azure DNS Record Sets. - -https://learn.microsoft.com/en-us/rest/api/dns/record-sets/list-by-dns-zone?tabs=HTTP#recordset - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_dns_zones](azure_dns_zones.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_dns_zones.md b/plugins/source/azure/docs/tables/azure_dns_zones.md deleted file mode 100644 index 469f74b13114b6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_dns_zones.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: azure_dns_zones - -This table shows data for Azure DNS Zones. - -https://learn.microsoft.com/en-us/rest/api/dns/zones/list?tabs=HTTP#zone - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_dns_zones: - - [azure_dns_record_sets](azure_dns_record_sets.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_dnsresolver_dns_forwarding_rulesets.md b/plugins/source/azure/docs/tables/azure_dnsresolver_dns_forwarding_rulesets.md deleted file mode 100644 index 149d294d3e013f..00000000000000 --- a/plugins/source/azure/docs/tables/azure_dnsresolver_dns_forwarding_rulesets.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_dnsresolver_dns_forwarding_rulesets - -This table shows data for Azure DNS Resolver DNS Forwarding Rulesets. - -https://learn.microsoft.com/en-us/rest/api/dns/dnsresolver/dns-forwarding-rulesets/list?tabs=HTTP#dnsforwardingruleset - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_dnsresolver_dns_resolvers.md b/plugins/source/azure/docs/tables/azure_dnsresolver_dns_resolvers.md deleted file mode 100644 index 7137228e0daac2..00000000000000 --- a/plugins/source/azure/docs/tables/azure_dnsresolver_dns_resolvers.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_dnsresolver_dns_resolvers - -This table shows data for Azure DNS Resolver DNS Resolvers. - -https://learn.microsoft.com/en-us/rest/api/dns/dnsresolver/dns-resolvers/list?tabs=HTTP#dnsresolver - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_elastic_monitors.md b/plugins/source/azure/docs/tables/azure_elastic_monitors.md deleted file mode 100644 index 5ff77311c6bcb5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_elastic_monitors.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_elastic_monitors - -This table shows data for Azure Elastic Monitors. - -https://learn.microsoft.com/en-us/rest/api/elastic/monitors/list?tabs=HTTP#elasticmonitorresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_engagementfabric_accounts.md b/plugins/source/azure/docs/tables/azure_engagementfabric_accounts.md deleted file mode 100644 index a71714c193be80..00000000000000 --- a/plugins/source/azure/docs/tables/azure_engagementfabric_accounts.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_engagementfabric_accounts - -This table shows data for Azure Engagement Fabric Accounts. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/armengagementfabric@v0.1.0#Account - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_eventgrid_topic_types.md b/plugins/source/azure/docs/tables/azure_eventgrid_topic_types.md deleted file mode 100644 index 9bf542f11d8c61..00000000000000 --- a/plugins/source/azure/docs/tables/azure_eventgrid_topic_types.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_eventgrid_topic_types - -This table shows data for Azure Eventgrid Topic Types. - -https://learn.microsoft.com/en-us/rest/api/eventgrid/controlplane-version2022-06-15/topic-types/list?tabs=HTTP#topictypeinfo - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_eventhub_namespace_network_rule_sets.md b/plugins/source/azure/docs/tables/azure_eventhub_namespace_network_rule_sets.md deleted file mode 100644 index e7c1fcd7dada73..00000000000000 --- a/plugins/source/azure/docs/tables/azure_eventhub_namespace_network_rule_sets.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_eventhub_namespace_network_rule_sets - -This table shows data for Azure Event Hub Namespace Network Rule Sets. - -https://learn.microsoft.com/en-us/rest/api/eventhub/stable/network-rule-sets/list-network-rule-set?tabs=HTTP#networkruleset - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_eventhub_namespaces](azure_eventhub_namespaces.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_eventhub_namespaces.md b/plugins/source/azure/docs/tables/azure_eventhub_namespaces.md deleted file mode 100644 index 220ba071696781..00000000000000 --- a/plugins/source/azure/docs/tables/azure_eventhub_namespaces.md +++ /dev/null @@ -1,29 +0,0 @@ -# Table: azure_eventhub_namespaces - -This table shows data for Azure Event Hub Namespaces. - -https://learn.microsoft.com/en-us/rest/api/eventhub/stable/namespaces/list?tabs=HTTP#ehnamespace - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_eventhub_namespaces: - - [azure_eventhub_namespace_network_rule_sets](azure_eventhub_namespace_network_rule_sets.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_frontdoor_front_doors.md b/plugins/source/azure/docs/tables/azure_frontdoor_front_doors.md deleted file mode 100644 index 4694a39f50ca5a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_frontdoor_front_doors.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_frontdoor_front_doors - -This table shows data for Azure Frontdoor Front Doors. - -https://learn.microsoft.com/en-us/rest/api/frontdoorservice/frontdoor/front-doors/list?tabs=HTTP#frontdoor - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_frontdoor_managed_rule_sets.md b/plugins/source/azure/docs/tables/azure_frontdoor_managed_rule_sets.md deleted file mode 100644 index 7d858b9290aae0..00000000000000 --- a/plugins/source/azure/docs/tables/azure_frontdoor_managed_rule_sets.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_frontdoor_managed_rule_sets - -This table shows data for Azure Frontdoor Managed Rule Sets. - -https://learn.microsoft.com/en-us/rest/api/frontdoor/webapplicationfirewall/managed-rule-sets/list#managedrulesetdefinition - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_frontdoor_network_experiment_profiles.md b/plugins/source/azure/docs/tables/azure_frontdoor_network_experiment_profiles.md deleted file mode 100644 index a7d5cc038d1d74..00000000000000 --- a/plugins/source/azure/docs/tables/azure_frontdoor_network_experiment_profiles.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_frontdoor_network_experiment_profiles - -This table shows data for Azure Frontdoor Network Experiment Profiles. - -https://learn.microsoft.com/en-us/rest/api/internetanalyzer/network-experiment-profiles/list?tabs=HTTP#profile - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_hanaonazure_sap_monitors.md b/plugins/source/azure/docs/tables/azure_hanaonazure_sap_monitors.md deleted file mode 100644 index 0b593495fdee1d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_hanaonazure_sap_monitors.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_hanaonazure_sap_monitors - -This table shows data for Azure HANA on Azure SAP Monitors. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhanaonazure@v0.5.0#SapMonitor - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_hdinsight_clusters.md b/plugins/source/azure/docs/tables/azure_hdinsight_clusters.md deleted file mode 100644 index 2377627e9e5583..00000000000000 --- a/plugins/source/azure/docs/tables/azure_hdinsight_clusters.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_hdinsight_clusters - -This table shows data for Azure HDInsight Clusters. - -https://learn.microsoft.com/en-us/rest/api/hdinsight/2021-06-01/clusters/list?tabs=HTTP#cluster - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|zones|`list`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_healthbot_bots.md b/plugins/source/azure/docs/tables/azure_healthbot_bots.md deleted file mode 100644 index 91aaa913b4a2b9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_healthbot_bots.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_healthbot_bots - -This table shows data for Azure Healthbot Bots. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot@v1.0.0#HealthBot - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_healthcareapis_services.md b/plugins/source/azure/docs/tables/azure_healthcareapis_services.md deleted file mode 100644 index ce8ca71ebeb83a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_healthcareapis_services.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_healthcareapis_services - -This table shows data for Azure Healthcare APIs Services. - -https://learn.microsoft.com/en-us/rest/api/healthcareapis/services/list?tabs=HTTP#servicesdescription - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|kind|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_hybridcompute_private_link_scopes.md b/plugins/source/azure/docs/tables/azure_hybridcompute_private_link_scopes.md deleted file mode 100644 index c6ec3f2f3b234a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_hybridcompute_private_link_scopes.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_hybridcompute_private_link_scopes - -This table shows data for Azure Hybrid Compute Private Link Scopes. - -https://learn.microsoft.com/en-us/rest/api/hybridcompute/private-link-scopes/list?tabs=HTTP#hybridcomputeprivatelinkscope - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_hybriddatamanager_data_managers.md b/plugins/source/azure/docs/tables/azure_hybriddatamanager_data_managers.md deleted file mode 100644 index 12b75a18974633..00000000000000 --- a/plugins/source/azure/docs/tables/azure_hybriddatamanager_data_managers.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_hybriddatamanager_data_managers - -This table shows data for Azure Hybrid Data Manager Data Managers. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager@v1.0.0#DataManager - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_keyvault_keyvault.md b/plugins/source/azure/docs/tables/azure_keyvault_keyvault.md deleted file mode 100644 index 8e3c314836443d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_keyvault_keyvault.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_keyvault_keyvault - -This table shows data for Azure Key Vault Key Vault. - -https://learn.microsoft.com/en-us/rest/api/keyvault/keyvault/vaults/get?tabs=HTTP#vault - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_keyvault_keyvault: - - [azure_keyvault_keyvault_keys](azure_keyvault_keyvault_keys.md) - - [azure_keyvault_keyvault_secrets](azure_keyvault_keyvault_secrets.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|location|`utf8`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_keyvault_keyvault_keys.md b/plugins/source/azure/docs/tables/azure_keyvault_keyvault_keys.md deleted file mode 100644 index 4ca97a740c71d4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_keyvault_keyvault_keys.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_keyvault_keyvault_keys - -This table shows data for Azure Key Vault Key Vault Keys. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault@v1.0.0#Key - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_keyvault_keyvault](azure_keyvault_keyvault.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_keyvault_keyvault_managed_hsms.md b/plugins/source/azure/docs/tables/azure_keyvault_keyvault_managed_hsms.md deleted file mode 100644 index 2890958768dd08..00000000000000 --- a/plugins/source/azure/docs/tables/azure_keyvault_keyvault_managed_hsms.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_keyvault_keyvault_managed_hsms - -This table shows data for Azure Key Vault Key Vault Managed Hsms. - -https://learn.microsoft.com/en-us/rest/api/keyvault/managedhsm/managed-hsms/list-by-subscription?tabs=HTTP#managedhsm - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_keyvault_keyvault_secrets.md b/plugins/source/azure/docs/tables/azure_keyvault_keyvault_secrets.md deleted file mode 100644 index 632c8bdfd2b216..00000000000000 --- a/plugins/source/azure/docs/tables/azure_keyvault_keyvault_secrets.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_keyvault_keyvault_secrets - -This table shows data for Azure Key Vault Key Vault Secrets. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault@v1.0.0#Secret - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_keyvault_keyvault](azure_keyvault_keyvault.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_kusto_clusters.md b/plugins/source/azure/docs/tables/azure_kusto_clusters.md deleted file mode 100644 index eb3fdb20c1464f..00000000000000 --- a/plugins/source/azure/docs/tables/azure_kusto_clusters.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_kusto_clusters - -This table shows data for Azure Kusto Clusters. - -https://learn.microsoft.com/en-us/rest/api/azurerekusto/clusters/list?tabs=HTTP#cluster - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_logic_workflows.md b/plugins/source/azure/docs/tables/azure_logic_workflows.md deleted file mode 100644 index ae05e7168c0ee9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_logic_workflows.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_logic_workflows - -This table shows data for Azure Logic Workflows. - -https://learn.microsoft.com/en-us/rest/api/logic/workflows/list-by-subscription?tabs=HTTP#workflow - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_maintenance_configurations.md b/plugins/source/azure/docs/tables/azure_maintenance_configurations.md deleted file mode 100644 index ce5f6868a1b150..00000000000000 --- a/plugins/source/azure/docs/tables/azure_maintenance_configurations.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_maintenance_configurations - -This table shows data for Azure Maintenance Configurations. - -https://learn.microsoft.com/en-us/rest/api/maintenance/maintenance-configurations/list?tabs=HTTP#maintenanceconfiguration - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_maintenance_public_maintenance_configurations.md b/plugins/source/azure/docs/tables/azure_maintenance_public_maintenance_configurations.md deleted file mode 100644 index b60684bf0a64e8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_maintenance_public_maintenance_configurations.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_maintenance_public_maintenance_configurations - -This table shows data for Azure Maintenance Public Maintenance Configurations. - -https://learn.microsoft.com/en-us/rest/api/maintenance/public-maintenance-configurations/list?tabs=HTTP#maintenanceconfiguration - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_managementgroups_entities.md b/plugins/source/azure/docs/tables/azure_managementgroups_entities.md deleted file mode 100644 index 0107ed95672668..00000000000000 --- a/plugins/source/azure/docs/tables/azure_managementgroups_entities.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_managementgroups_entities - -This table shows data for Azure Managementgroups Entities. - -https://learn.microsoft.com/en-us/rest/api/managementgroups/entities/list?tabs=HTTP - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_managementgroups_management_groups.md b/plugins/source/azure/docs/tables/azure_managementgroups_management_groups.md deleted file mode 100644 index a8edba1dd79215..00000000000000 --- a/plugins/source/azure/docs/tables/azure_managementgroups_management_groups.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_managementgroups_management_groups - -This table shows data for Azure Managementgroups Management Groups. - -https://learn.microsoft.com/en-us/rest/api/managementgroups/management-groups/list?tabs=HTTP#managementgrouplistresult - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_marketplace_private_store.md b/plugins/source/azure/docs/tables/azure_marketplace_private_store.md deleted file mode 100644 index ee64e68ffcfce3..00000000000000 --- a/plugins/source/azure/docs/tables/azure_marketplace_private_store.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_marketplace_private_store - -This table shows data for Azure Marketplace Private Store. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace@v1.0.0#PrivateStore - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_activity_log_alerts.md b/plugins/source/azure/docs/tables/azure_monitor_activity_log_alerts.md deleted file mode 100644 index ee4cac3d5d7187..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_activity_log_alerts.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_monitor_activity_log_alerts - -This table shows data for Azure Monitor Activity Log Alerts. - -https://learn.microsoft.com/en-us/rest/api/monitor/activity-log-alerts/list-by-subscription-id?tabs=HTTP#activitylogalertresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_autoscale_settings.md b/plugins/source/azure/docs/tables/azure_monitor_autoscale_settings.md deleted file mode 100644 index 0bfc0964be8ce4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_autoscale_settings.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_monitor_autoscale_settings - -This table shows data for Azure Monitor Autoscale Settings. - -https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings/list-by-subscription?tabs=HTTP#autoscalesettingresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_diagnostic_settings.md b/plugins/source/azure/docs/tables/azure_monitor_diagnostic_settings.md deleted file mode 100644 index cc2a001507cea8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_diagnostic_settings.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_monitor_diagnostic_settings - -This table shows data for Azure Monitor Diagnostic Settings. - -https://learn.microsoft.com/en-us/rest/api/monitor/diagnostic-settings/list?tabs=HTTP#diagnosticsettingsresource - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_monitor_resources](azure_monitor_resources.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| -|resource_id|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_log_profiles.md b/plugins/source/azure/docs/tables/azure_monitor_log_profiles.md deleted file mode 100644 index 57aa4acbf6e98d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_log_profiles.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_monitor_log_profiles - -This table shows data for Azure Monitor Log Profiles. - -https://learn.microsoft.com/en-us/rest/api/monitor/log-profiles/list?tabs=HTTP#logprofileresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_private_link_scopes.md b/plugins/source/azure/docs/tables/azure_monitor_private_link_scopes.md deleted file mode 100644 index 0d57a52222721c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_private_link_scopes.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_monitor_private_link_scopes - -This table shows data for Azure Monitor Private Link Scopes. - -https://learn.microsoft.com/en-us/rest/api/monitor/privatelinkscopes(preview)/private%20link%20scopes%20(preview)/list?tabs=HTTP#azuremonitorprivatelinkscope - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_resources.md b/plugins/source/azure/docs/tables/azure_monitor_resources.md deleted file mode 100644 index 40c0a8c216ff82..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_resources.md +++ /dev/null @@ -1,34 +0,0 @@ -# Table: azure_monitor_resources - -This table shows data for Azure Monitor Resources. - -https://learn.microsoft.com/en-us/rest/api/resources/resources/list#genericresourceexpanded - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_monitor_resources: - - [azure_monitor_diagnostic_settings](azure_monitor_diagnostic_settings.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|identity|`json`| -|kind|`utf8`| -|location|`utf8`| -|managed_by|`utf8`| -|plan|`json`| -|sku|`json`| -|tags|`json`| -|changed_time|`timestamp[us, tz=UTC]`| -|created_time|`timestamp[us, tz=UTC]`| -|id (PK)|`utf8`| -|name|`utf8`| -|provisioning_state|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_subscription_diagnostic_settings.md b/plugins/source/azure/docs/tables/azure_monitor_subscription_diagnostic_settings.md deleted file mode 100644 index b7abd9205bc55d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_subscription_diagnostic_settings.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_monitor_subscription_diagnostic_settings - -This table shows data for Azure Monitor Subscription Diagnostic Settings. - -https://learn.microsoft.com/en-us/rest/api/monitor/subscription-diagnostic-settings/list?tabs=HTTP#subscriptiondiagnosticsettingsresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_tenant_activity_log_alerts.md b/plugins/source/azure/docs/tables/azure_monitor_tenant_activity_log_alerts.md deleted file mode 100644 index a38f61e8c2cfa7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_tenant_activity_log_alerts.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_monitor_tenant_activity_log_alerts - -This table shows data for Azure Monitor Tenant Activity Log Alerts. - -https://learn.microsoft.com/en-us/rest/api/monitor/activity-log-alerts/list-by-subscription-id?tabs=HTTP#activitylogalertresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_monitor_tenant_activity_logs.md b/plugins/source/azure/docs/tables/azure_monitor_tenant_activity_logs.md deleted file mode 100644 index 21542c23f62470..00000000000000 --- a/plugins/source/azure/docs/tables/azure_monitor_tenant_activity_logs.md +++ /dev/null @@ -1,38 +0,0 @@ -# Table: azure_monitor_tenant_activity_logs - -This table shows data for Azure Monitor Tenant Activity Logs. - -https://learn.microsoft.com/en-us/rest/api/monitor/tenant-activity-logs/list?tabs=HTTP#eventdata - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|authorization|`json`| -|caller|`utf8`| -|category|`json`| -|claims|`json`| -|correlation_id|`utf8`| -|description|`utf8`| -|event_data_id|`utf8`| -|event_name|`json`| -|event_timestamp|`timestamp[us, tz=UTC]`| -|http_request|`json`| -|id (PK)|`utf8`| -|level|`utf8`| -|operation_id|`utf8`| -|operation_name|`json`| -|properties|`json`| -|resource_group_name|`utf8`| -|resource_id|`utf8`| -|resource_provider_name|`json`| -|resource_type|`json`| -|status|`json`| -|sub_status|`json`| -|submission_timestamp|`timestamp[us, tz=UTC]`| -|tenant_id|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_application_gateways.md b/plugins/source/azure/docs/tables/azure_network_application_gateways.md deleted file mode 100644 index 695c0c5acac4f3..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_application_gateways.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_application_gateways - -This table shows data for Azure Network Application Gateways. - -https://learn.microsoft.com/en-us/rest/api/application-gateway/application-gateways/list?tabs=HTTP#applicationgateway - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_application_security_groups.md b/plugins/source/azure/docs/tables/azure_network_application_security_groups.md deleted file mode 100644 index 5426a84a07975f..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_application_security_groups.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_application_security_groups - -This table shows data for Azure Network Application Security Groups. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/application-security-groups/list?tabs=HTTP#applicationsecuritygroup - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_azure_firewall_fqdn_tags.md b/plugins/source/azure/docs/tables/azure_network_azure_firewall_fqdn_tags.md deleted file mode 100644 index fff2fcffe17005..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_azure_firewall_fqdn_tags.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_azure_firewall_fqdn_tags - -This table shows data for Azure Network Azure Firewall FQDN Tags. - -https://learn.microsoft.com/en-us/rest/api/firewall/azure-firewall-fqdn-tags/list-all?tabs=HTTP#azurefirewallfqdntag - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_azure_firewalls.md b/plugins/source/azure/docs/tables/azure_network_azure_firewalls.md deleted file mode 100644 index 28c595d2d1db53..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_azure_firewalls.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_azure_firewalls - -This table shows data for Azure Network Azure Firewalls. - -https://learn.microsoft.com/en-us/rest/api/firewall/azure-firewalls/list?tabs=HTTP#azurefirewall - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_bastion_hosts.md b/plugins/source/azure/docs/tables/azure_network_bastion_hosts.md deleted file mode 100644 index b3184142c53626..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_bastion_hosts.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_bastion_hosts - -This table shows data for Azure Network Bastion Hosts. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/bastion-hosts/list?tabs=HTTP#bastionhost - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_custom_ip_prefixes.md b/plugins/source/azure/docs/tables/azure_network_custom_ip_prefixes.md deleted file mode 100644 index 306755fe5063e5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_custom_ip_prefixes.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_custom_ip_prefixes - -This table shows data for Azure Network Custom IP Prefixes. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/custom-ip-prefixes/list?tabs=HTTP#customipprefix - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_ddos_protection_plans.md b/plugins/source/azure/docs/tables/azure_network_ddos_protection_plans.md deleted file mode 100644 index 32cfa0168942d7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_ddos_protection_plans.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_ddos_protection_plans - -This table shows data for Azure Network Distributed Denial of Service (DDoS) Protection Plans. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/ddos-protection-plans/list?tabs=HTTP#ddosprotectionplan - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_dscp_configuration.md b/plugins/source/azure/docs/tables/azure_network_dscp_configuration.md deleted file mode 100644 index 0a174678462090..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_dscp_configuration.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_dscp_configuration - -This table shows data for Azure Network Differentiated Services Code Point (DSCP) Configuration. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/dscp-configuration/list?tabs=HTTP#dscpconfiguration - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_circuit_authorizations.md b/plugins/source/azure/docs/tables/azure_network_express_route_circuit_authorizations.md deleted file mode 100644 index ba6e558b5bd51a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_circuit_authorizations.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_express_route_circuit_authorizations - -This table shows data for Azure Network Express Route Circuit Authorizations. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-circuit-authorizations/list?tabs=HTTP#expressroutecircuitauthorization - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_network_express_route_circuits](azure_network_express_route_circuits.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|etag|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_circuit_peerings.md b/plugins/source/azure/docs/tables/azure_network_express_route_circuit_peerings.md deleted file mode 100644 index d2bc1058126dd2..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_circuit_peerings.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_express_route_circuit_peerings - -This table shows data for Azure Network Express Route Circuit Peerings. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-circuit-peerings/list?tabs=HTTP#expressroutecircuitpeering - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_network_express_route_circuits](azure_network_express_route_circuits.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|etag|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_circuits.md b/plugins/source/azure/docs/tables/azure_network_express_route_circuits.md deleted file mode 100644 index 146225f5592b80..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_circuits.md +++ /dev/null @@ -1,29 +0,0 @@ -# Table: azure_network_express_route_circuits - -This table shows data for Azure Network Express Route Circuits. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-circuits/list?tabs=HTTP#expressroutecircuit - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_network_express_route_circuits: - - [azure_network_express_route_circuit_authorizations](azure_network_express_route_circuit_authorizations.md) - - [azure_network_express_route_circuit_peerings](azure_network_express_route_circuit_peerings.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_gateways.md b/plugins/source/azure/docs/tables/azure_network_express_route_gateways.md deleted file mode 100644 index 7fc7eba471c8ee..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_gateways.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_express_route_gateways - -This table shows data for Azure Network Express Route Gateways. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-gateways/list-by-subscription?tabs=HTTP#expressroutegateway - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_ports.md b/plugins/source/azure/docs/tables/azure_network_express_route_ports.md deleted file mode 100644 index addd9216d7d786..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_ports.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_express_route_ports - -This table shows data for Azure Network Express Route Ports. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-ports/list?tabs=HTTP#expressrouteport - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_ports_locations.md b/plugins/source/azure/docs/tables/azure_network_express_route_ports_locations.md deleted file mode 100644 index 20805edb1369d5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_ports_locations.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_network_express_route_ports_locations - -This table shows data for Azure Network Express Route Ports Locations. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-ports-locations/list?tabs=HTTP#expressrouteportslocation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_express_route_service_providers.md b/plugins/source/azure/docs/tables/azure_network_express_route_service_providers.md deleted file mode 100644 index 0b2d5054533b01..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_express_route_service_providers.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_network_express_route_service_providers - -This table shows data for Azure Network Express Route Service Providers. - -https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-service-providers/list?tabs=HTTP#expressrouteserviceprovider - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_firewall_policies.md b/plugins/source/azure/docs/tables/azure_network_firewall_policies.md deleted file mode 100644 index 0bd4b2c4d170f0..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_firewall_policies.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_firewall_policies - -This table shows data for Azure Network Firewall Policies. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/firewall-policies/list-all?tabs=HTTP#firewallpolicy - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_interface_ip_configurations.md b/plugins/source/azure/docs/tables/azure_network_interface_ip_configurations.md deleted file mode 100644 index 82d28f046f833b..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_interface_ip_configurations.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_interface_ip_configurations - -This table shows data for Azure Network Interface IP Configurations. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-interface-ip-configurations/list?tabs=HTTP#ipconfiguration - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_network_interfaces](azure_network_interfaces.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| -|etag|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_interfaces.md b/plugins/source/azure/docs/tables/azure_network_interfaces.md deleted file mode 100644 index 9734f6c0837f54..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_interfaces.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_network_interfaces - -This table shows data for Azure Network Interfaces. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-interfaces/list?tabs=HTTP#networkinterface - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_network_interfaces: - - [azure_network_interface_ip_configurations](azure_network_interface_ip_configurations.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_ip_allocations.md b/plugins/source/azure/docs/tables/azure_network_ip_allocations.md deleted file mode 100644 index 8403bdfa4be9dd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_ip_allocations.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_ip_allocations - -This table shows data for Azure Network IP Allocations. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/ip-allocations/list?tabs=HTTP#ipallocation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_ip_groups.md b/plugins/source/azure/docs/tables/azure_network_ip_groups.md deleted file mode 100644 index 86fafd10dbd086..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_ip_groups.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_ip_groups - -This table shows data for Azure Network IP Groups. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/ip-groups/list?tabs=HTTP#ipgroup - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_load_balancers.md b/plugins/source/azure/docs/tables/azure_network_load_balancers.md deleted file mode 100644 index 3358ee69921269..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_load_balancers.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_load_balancers - -This table shows data for Azure Network Load Balancers. - -https://learn.microsoft.com/en-us/rest/api/load-balancer/load-balancers/list?tabs=HTTP#loadbalancer - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_nat_gateways.md b/plugins/source/azure/docs/tables/azure_network_nat_gateways.md deleted file mode 100644 index a629e5d0c689a1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_nat_gateways.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_nat_gateways - -This table shows data for Azure Network Network Address Translation (NAT) Gateways. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/nat-gateways/list?tabs=HTTP#natgateway - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_private_endpoints.md b/plugins/source/azure/docs/tables/azure_network_private_endpoints.md deleted file mode 100644 index 6fceb9004d1e5a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_private_endpoints.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_private_endpoints - -This table shows data for Azure Network Private Endpoints. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-link-services/list-by-subscription?tabs=HTTP#privateendpoint - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_private_link_services.md b/plugins/source/azure/docs/tables/azure_network_private_link_services.md deleted file mode 100644 index 068effc6b7bbc4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_private_link_services.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_private_link_services - -This table shows data for Azure Network Private Link Services. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-link-services/list-by-subscription?tabs=HTTP#privatelinkservice - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_profiles.md b/plugins/source/azure/docs/tables/azure_network_profiles.md deleted file mode 100644 index 2a03c49d0dee78..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_profiles.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_profiles - -This table shows data for Azure Network Profiles. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-profiles/list?tabs=HTTP#networkprofile - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_public_ip_addresses.md b/plugins/source/azure/docs/tables/azure_network_public_ip_addresses.md deleted file mode 100644 index 3046d808a502e4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_public_ip_addresses.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_network_public_ip_addresses - -This table shows data for Azure Network Public IP Addresses. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/public-ip-addresses/list?tabs=HTTP#publicipaddress - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_public_ip_prefixes.md b/plugins/source/azure/docs/tables/azure_network_public_ip_prefixes.md deleted file mode 100644 index 8b8b2899858615..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_public_ip_prefixes.md +++ /dev/null @@ -1,25 +0,0 @@ -# Table: azure_network_public_ip_prefixes - -This table shows data for Azure Network Public IP Prefixes. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/public-ip-prefixes/list?tabs=HTTP#publicipprefix - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|zones|`list`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_route_filters.md b/plugins/source/azure/docs/tables/azure_network_route_filters.md deleted file mode 100644 index 11b0ebaef392a7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_route_filters.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_route_filters - -This table shows data for Azure Network Route Filters. - -https://learn.microsoft.com/en-us/rest/api/expressroute/route-filters/list?tabs=HTTP#routefilter - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_route_tables.md b/plugins/source/azure/docs/tables/azure_network_route_tables.md deleted file mode 100644 index 4063574c0a56be..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_route_tables.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_route_tables - -This table shows data for Azure Network Route Tables. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/route-tables/list?tabs=HTTP#routetable - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_security_groups.md b/plugins/source/azure/docs/tables/azure_network_security_groups.md deleted file mode 100644 index 903008e7d4fca8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_security_groups.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_security_groups - -This table shows data for Azure Network Security Groups. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-security-groups/list?tabs=HTTP#networksecuritygroup - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_security_partner_providers.md b/plugins/source/azure/docs/tables/azure_network_security_partner_providers.md deleted file mode 100644 index e1ebaea58a0880..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_security_partner_providers.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_security_partner_providers - -This table shows data for Azure Network Security Partner Providers. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/security-partner-providers/list?tabs=HTTP#securitypartnerprovider - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_service_endpoint_policies.md b/plugins/source/azure/docs/tables/azure_network_service_endpoint_policies.md deleted file mode 100644 index 08a5bf93ff1da4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_service_endpoint_policies.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_service_endpoint_policies - -This table shows data for Azure Network Service Endpoint Policies. - -https://learn.microsoft.com/en-us/rest/api/expressroute/service-endpoint-policies/list?tabs=HTTP#serviceendpointpolicy - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|kind|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_subscription_network_manager_connections.md b/plugins/source/azure/docs/tables/azure_network_subscription_network_manager_connections.md deleted file mode 100644 index af2f4c12c5228a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_subscription_network_manager_connections.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_network_subscription_network_manager_connections - -This table shows data for Azure Network Subscription Network Manager Connections. - -https://learn.microsoft.com/en-us/rest/api/networkmanager/management-group-network-manager-connections/list?tabs=HTTP#networkmanagerconnection - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_appliances.md b/plugins/source/azure/docs/tables/azure_network_virtual_appliances.md deleted file mode 100644 index 2886857472645e..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_appliances.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_virtual_appliances - -This table shows data for Azure Network Virtual Appliances. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-virtual-appliances/list?tabs=HTTP#networkvirtualappliance - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_hubs.md b/plugins/source/azure/docs/tables/azure_network_virtual_hubs.md deleted file mode 100644 index 0ebc5050e03bcd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_hubs.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_virtual_hubs - -This table shows data for Azure Network Virtual Hubs. - -https://learn.microsoft.com/en-us/rest/api/virtualwan/virtual-hubs/list?tabs=HTTP#virtualhub - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|kind|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_network_gateway_connections.md b/plugins/source/azure/docs/tables/azure_network_virtual_network_gateway_connections.md deleted file mode 100644 index 7ca99c4369e55b..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_network_gateway_connections.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_virtual_network_gateway_connections - -This table shows data for Azure Network Virtual Network Gateway Connections. - -https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-gateway-connections/list?tabs=HTTP#virtualnetworkgatewayconnection - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_network_gateways.md b/plugins/source/azure/docs/tables/azure_network_virtual_network_gateways.md deleted file mode 100644 index 32fd9ceb8fcdcb..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_network_gateways.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_network_virtual_network_gateways - -This table shows data for Azure Network Virtual Network Gateways. - -https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-gateways/list?tabs=HTTP#virtualnetworkgateway - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_network_subnets.md b/plugins/source/azure/docs/tables/azure_network_virtual_network_subnets.md deleted file mode 100644 index 58121c7050705f..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_network_subnets.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_network_virtual_network_subnets - -This table shows data for Azure Network Virtual Network Subnets. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/subnets/list?tabs=HTTP#subnet - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_network_virtual_networks](azure_network_virtual_networks.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| -|etag|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_network_taps.md b/plugins/source/azure/docs/tables/azure_network_virtual_network_taps.md deleted file mode 100644 index 3565f58b46af7e..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_network_taps.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_virtual_network_taps - -This table shows data for Azure Network Virtual Network Taps. - -https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-taps/list-all?tabs=HTTP#virtualnetworktap - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_networks.md b/plugins/source/azure/docs/tables/azure_network_virtual_networks.md deleted file mode 100644 index 119dfb7de51cc8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_networks.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_network_virtual_networks - -This table shows data for Azure Network Virtual Networks. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/virtual-networks/list-all?tabs=HTTP#virtualnetwork - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_network_virtual_networks: - - [azure_network_virtual_network_subnets](azure_network_virtual_network_subnets.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_routers.md b/plugins/source/azure/docs/tables/azure_network_virtual_routers.md deleted file mode 100644 index 5301f4ab792cd9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_routers.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_virtual_routers - -This table shows data for Azure Network Virtual Routers. - -https://learn.microsoft.com/en-us/rest/api/virtualnetwork/virtual-routers/list?tabs=HTTP#virtualrouter - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_virtual_wans.md b/plugins/source/azure/docs/tables/azure_network_virtual_wans.md deleted file mode 100644 index dd15cc44e6b387..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_virtual_wans.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_virtual_wans - -This table shows data for Azure Network Virtual Wide Area Networks (WANs). - -https://learn.microsoft.com/en-us/rest/api/virtualwan/virtual-wans/list?tabs=HTTP#virtualwan - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_vpn_gateways.md b/plugins/source/azure/docs/tables/azure_network_vpn_gateways.md deleted file mode 100644 index ea19f1836782ae..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_vpn_gateways.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_vpn_gateways - -This table shows data for Azure Network Virtual Private Network (VPN) Gateways. - -https://learn.microsoft.com/en-us/rest/api/virtualwan/vpn-gateways/list?tabs=HTTP#vpngateway - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_vpn_server_configurations.md b/plugins/source/azure/docs/tables/azure_network_vpn_server_configurations.md deleted file mode 100644 index 3d436f7fc121a7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_vpn_server_configurations.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_vpn_server_configurations - -This table shows data for Azure Network Virtual Private Network (VPN) Server Configurations. - -https://learn.microsoft.com/en-us/rest/api/virtualwan/vpn-server-configurations/list?tabs=HTTP#vpnserverconfiguration - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_vpn_sites.md b/plugins/source/azure/docs/tables/azure_network_vpn_sites.md deleted file mode 100644 index 97c93d04274d6e..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_vpn_sites.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_vpn_sites - -This table shows data for Azure Network Virtual Private Network (VPN) Sites. - -https://learn.microsoft.com/en-us/rest/api/virtualwan/vpn-sites/list?tabs=HTTP#vpnsite - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_watcher_flow_logs.md b/plugins/source/azure/docs/tables/azure_network_watcher_flow_logs.md deleted file mode 100644 index e36c7493efbc26..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_watcher_flow_logs.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_network_watcher_flow_logs - -This table shows data for Azure Network Watcher Flow Logs. - -https://learn.microsoft.com/en-us/rest/api/network-watcher/flow-logs/list?tabs=HTTP#definitions - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_network_watchers](azure_network_watchers.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_watchers.md b/plugins/source/azure/docs/tables/azure_network_watchers.md deleted file mode 100644 index b328f94bfa5089..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_watchers.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: azure_network_watchers - -This table shows data for Azure Network Watchers. - -https://learn.microsoft.com/en-us/rest/api/network-watcher/network-watchers/list-all?tabs=HTTP#networkwatcher - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_network_watchers: - - [azure_network_watcher_flow_logs](azure_network_watcher_flow_logs.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_network_web_application_firewall_policies.md b/plugins/source/azure/docs/tables/azure_network_web_application_firewall_policies.md deleted file mode 100644 index 8112aabd494601..00000000000000 --- a/plugins/source/azure/docs/tables/azure_network_web_application_firewall_policies.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_network_web_application_firewall_policies - -This table shows data for Azure Network Web Application Firewall Policies. - -https://learn.microsoft.com/en-us/rest/api/application-gateway/web-application-firewall-policies/list?tabs=HTTP#webapplicationfirewallpolicy - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_networkfunction_azure_traffic_collectors_by_subscription.md b/plugins/source/azure/docs/tables/azure_networkfunction_azure_traffic_collectors_by_subscription.md deleted file mode 100644 index 5d56135c530aea..00000000000000 --- a/plugins/source/azure/docs/tables/azure_networkfunction_azure_traffic_collectors_by_subscription.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_networkfunction_azure_traffic_collectors_by_subscription - -This table shows data for Azure Network Function Azure Traffic Collectors By Subscription. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction@v1.0.0#AzureTrafficCollector - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|etag|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_nginx_deployments.md b/plugins/source/azure/docs/tables/azure_nginx_deployments.md deleted file mode 100644 index 145bb30a0ae5a0..00000000000000 --- a/plugins/source/azure/docs/tables/azure_nginx_deployments.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_nginx_deployments - -This table shows data for Azure Nginx Deployments. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/nginx/armnginx/v2@v2.0.0#Deployment - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_notificationhubs_namespaces.md b/plugins/source/azure/docs/tables/azure_notificationhubs_namespaces.md deleted file mode 100644 index d7cd42fc51fecf..00000000000000 --- a/plugins/source/azure/docs/tables/azure_notificationhubs_namespaces.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_notificationhubs_namespaces - -This table shows data for Azure Notificationhubs Namespaces. - -https://learn.microsoft.com/en-us/rest/api/notificationhubs/namespaces/list?tabs=HTTP#namespaceresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_operationalinsights_clusters.md b/plugins/source/azure/docs/tables/azure_operationalinsights_clusters.md deleted file mode 100644 index f3aa337ff616e6..00000000000000 --- a/plugins/source/azure/docs/tables/azure_operationalinsights_clusters.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_operationalinsights_clusters - -This table shows data for Azure Operational Insights Clusters. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights@v1.0.0#Cluster - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_operationalinsights_workspaces.md b/plugins/source/azure/docs/tables/azure_operationalinsights_workspaces.md deleted file mode 100644 index 786ca8b1e99614..00000000000000 --- a/plugins/source/azure/docs/tables/azure_operationalinsights_workspaces.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_operationalinsights_workspaces - -This table shows data for Azure Operational Insights Workspaces. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights@v1.0.0#Workspace - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|etag|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_peering_service_countries.md b/plugins/source/azure/docs/tables/azure_peering_service_countries.md deleted file mode 100644 index 17f88cdbcc5740..00000000000000 --- a/plugins/source/azure/docs/tables/azure_peering_service_countries.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_peering_service_countries - -This table shows data for Azure Peering Service Countries. - -https://learn.microsoft.com/en-us/rest/api/peering/peering-service-countries/list?tabs=HTTP#peeringservicecountry - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_peering_service_providers.md b/plugins/source/azure/docs/tables/azure_peering_service_providers.md deleted file mode 100644 index 68ee305ace3fab..00000000000000 --- a/plugins/source/azure/docs/tables/azure_peering_service_providers.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_peering_service_providers - -This table shows data for Azure Peering Service Providers. - -https://learn.microsoft.com/en-us/rest/api/peering/peering-service-providers/list?tabs=HTTP#peeringserviceprovider - -The composite primary key for this table is (**subscription_id**, **name**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|properties|`json`| -|id|`utf8`| -|name (PK)|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_policy_assignments.md b/plugins/source/azure/docs/tables/azure_policy_assignments.md deleted file mode 100644 index 3eccede6023181..00000000000000 --- a/plugins/source/azure/docs/tables/azure_policy_assignments.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_policy_assignments - -This table shows data for Azure Policy Assignments. - -https://learn.microsoft.com/en-us/rest/api/policy/policy-assignments/list?tabs=HTTP#policyassignment - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_policy_data_policy_manifests.md b/plugins/source/azure/docs/tables/azure_policy_data_policy_manifests.md deleted file mode 100644 index 6ac80531f82172..00000000000000 --- a/plugins/source/azure/docs/tables/azure_policy_data_policy_manifests.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_policy_data_policy_manifests - -This table shows data for Azure Policy Data Policy Manifests. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy@v0.6.0#DataPolicyManifest - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_policy_exemptions.md b/plugins/source/azure/docs/tables/azure_policy_exemptions.md deleted file mode 100644 index 6a9a27ab4d7dfd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_policy_exemptions.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_policy_exemptions - -This table shows data for Azure Policy Exemptions. - -https://learn.microsoft.com/en-us/rest/api/policy/policy-exemptions/list?tabs=HTTP#policyexemption - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_policy_set_definitions.md b/plugins/source/azure/docs/tables/azure_policy_set_definitions.md deleted file mode 100644 index 58ea5e87044dd7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_policy_set_definitions.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_policy_set_definitions - -This table shows data for Azure Policy Set Definitions. - -https://learn.microsoft.com/en-us/rest/api/policy/policy-set-definitions/list?tabs=HTTP#policysetdefinition - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_portal_list_tenant_configuration_violations.md b/plugins/source/azure/docs/tables/azure_portal_list_tenant_configuration_violations.md deleted file mode 100644 index 55db9ac9bfa604..00000000000000 --- a/plugins/source/azure/docs/tables/azure_portal_list_tenant_configuration_violations.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_portal_list_tenant_configuration_violations - -This table shows data for Azure Portal List Tenant Configuration Violations. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal@v0.5.0#Violation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|error_message|`utf8`| -|id (PK)|`utf8`| -|user_id|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_portal_tenant_configurations.md b/plugins/source/azure/docs/tables/azure_portal_tenant_configurations.md deleted file mode 100644 index 744515d1fd2117..00000000000000 --- a/plugins/source/azure/docs/tables/azure_portal_tenant_configurations.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_portal_tenant_configurations - -This table shows data for Azure Portal Tenant Configurations. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal@v0.5.0#Configuration - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_powerbidedicated_capacities.md b/plugins/source/azure/docs/tables/azure_powerbidedicated_capacities.md deleted file mode 100644 index 3fdfd0336b9281..00000000000000 --- a/plugins/source/azure/docs/tables/azure_powerbidedicated_capacities.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_powerbidedicated_capacities - -This table shows data for Azure Power BI Dedicated Capacities. - -https://learn.microsoft.com/en-us/rest/api/power-bi-embedded/capacities/list?tabs=HTTP#dedicatedcapacity - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|sku|`json`| -|properties|`json`| -|system_data|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_privatedns_private_zone_record_sets.md b/plugins/source/azure/docs/tables/azure_privatedns_private_zone_record_sets.md deleted file mode 100644 index d99767b083401a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_privatedns_private_zone_record_sets.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_privatedns_private_zone_record_sets - -This table shows data for Azure Privatedns Private Zone Record Sets. - -https://learn.microsoft.com/en-us/rest/api/dns/privatedns/record-sets/list?tabs=HTTP#recordset - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_privatedns_private_zones](azure_privatedns_private_zones.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_privatedns_private_zone_virtual_network_links.md b/plugins/source/azure/docs/tables/azure_privatedns_private_zone_virtual_network_links.md deleted file mode 100644 index 405043bc364f47..00000000000000 --- a/plugins/source/azure/docs/tables/azure_privatedns_private_zone_virtual_network_links.md +++ /dev/null @@ -1,26 +0,0 @@ -# Table: azure_privatedns_private_zone_virtual_network_links - -This table shows data for Azure Privatedns Private Zone Virtual Network Links. - -https://learn.microsoft.com/en-us/rest/api/dns/privatedns/virtual-network-links/list?tabs=HTTP#virtualnetworklink - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_privatedns_private_zones](azure_privatedns_private_zones.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_privatedns_private_zones.md b/plugins/source/azure/docs/tables/azure_privatedns_private_zones.md deleted file mode 100644 index 70cd9c163aab2c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_privatedns_private_zones.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_privatedns_private_zones - -This table shows data for Azure Privatedns Private Zones. - -https://learn.microsoft.com/en-us/rest/api/dns/privatedns/private-zones/list?tabs=HTTP#privatezone - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_privatedns_private_zones: - - [azure_privatedns_private_zone_record_sets](azure_privatedns_private_zone_record_sets.md) - - [azure_privatedns_private_zone_virtual_network_links](azure_privatedns_private_zone_virtual_network_links.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_providerhub_provider_registrations.md b/plugins/source/azure/docs/tables/azure_providerhub_provider_registrations.md deleted file mode 100644 index 094ac40a97d4f5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_providerhub_provider_registrations.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_providerhub_provider_registrations - -This table shows data for Azure Providerhub Provider Registrations. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub@v1.0.0#ProviderRegistration - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_redhatopenshift_open_shift_clusters.md b/plugins/source/azure/docs/tables/azure_redhatopenshift_open_shift_clusters.md deleted file mode 100644 index 0d3bcbbb9f8b49..00000000000000 --- a/plugins/source/azure/docs/tables/azure_redhatopenshift_open_shift_clusters.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_redhatopenshift_open_shift_clusters - -This table shows data for Azure Redhatopenshift Open Shift Clusters. - -https://learn.microsoft.com/en-us/rest/api/openshift/open-shift-clusters/list?tabs=HTTP#openshiftcluster - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_redis_caches.md b/plugins/source/azure/docs/tables/azure_redis_caches.md deleted file mode 100644 index 4c7f8779430509..00000000000000 --- a/plugins/source/azure/docs/tables/azure_redis_caches.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_redis_caches - -This table shows data for Azure Redis Caches. - -https://learn.microsoft.com/en-us/rest/api/redis/redis/list-by-subscription?tabs=HTTP#redisresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|identity|`json`| -|tags|`json`| -|zones|`list`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_relay_namespaces.md b/plugins/source/azure/docs/tables/azure_relay_namespaces.md deleted file mode 100644 index 5df16e0b70a675..00000000000000 --- a/plugins/source/azure/docs/tables/azure_relay_namespaces.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_relay_namespaces - -This table shows data for Azure Relay Namespaces. - -https://learn.microsoft.com/en-us/rest/api/relay/namespaces/list?tabs=HTTP#relaynamespace - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_reservations_reservation.md b/plugins/source/azure/docs/tables/azure_reservations_reservation.md deleted file mode 100644 index 659f43a9f134d5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_reservations_reservation.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_reservations_reservation - -This table shows data for Azure Reservations Reservation. - -https://learn.microsoft.com/en-us/rest/api/reserved-vm-instances/reservation/list-all?tabs=HTTP#reservationresponse - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|etag|`int64`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|sku|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_reservations_reservation_order.md b/plugins/source/azure/docs/tables/azure_reservations_reservation_order.md deleted file mode 100644 index 9c4af8397f9991..00000000000000 --- a/plugins/source/azure/docs/tables/azure_reservations_reservation_order.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_reservations_reservation_order - -This table shows data for Azure Reservations Reservation Order. - -https://learn.microsoft.com/en-us/rest/api/reserved-vm-instances/reservation-order/get?tabs=HTTP#reservationorderresponse - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`int64`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_resources_links.md b/plugins/source/azure/docs/tables/azure_resources_links.md deleted file mode 100644 index 4957866fd82d94..00000000000000 --- a/plugins/source/azure/docs/tables/azure_resources_links.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_resources_links - -This table shows data for Azure Resources Links. - -https://learn.microsoft.com/en-us/rest/api/resources/resource-links/list-at-subscription#resourcelink - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_resources_providers.md b/plugins/source/azure/docs/tables/azure_resources_providers.md deleted file mode 100644 index 0ac3b0d173086a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_resources_providers.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_resources_providers - -This table shows data for Azure Resources Providers. - -https://docs.microsoft.com/en-us/rest/api/resources/providers/list - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|namespace|`utf8`| -|provider_authorization_consent_state|`utf8`| -|id (PK)|`utf8`| -|registration_policy|`utf8`| -|registration_state|`utf8`| -|resource_types|`json`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_resources_resource_groups.md b/plugins/source/azure/docs/tables/azure_resources_resource_groups.md deleted file mode 100644 index ed1c007f06ea14..00000000000000 --- a/plugins/source/azure/docs/tables/azure_resources_resource_groups.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_resources_resource_groups - -This table shows data for Azure Resources Resource Groups. - -https://learn.microsoft.com/en-us/rest/api/resources/resource-groups/list#resourcegroup - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|managed_by|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_resources_resources.md b/plugins/source/azure/docs/tables/azure_resources_resources.md deleted file mode 100644 index 66a579e06dd9c9..00000000000000 --- a/plugins/source/azure/docs/tables/azure_resources_resources.md +++ /dev/null @@ -1,29 +0,0 @@ -# Table: azure_resources_resources - -This table shows data for Azure Resources Resources. - -https://learn.microsoft.com/en-us/rest/api/resources/resources/list#genericresourceexpanded - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|extended_location|`json`| -|identity|`json`| -|kind|`utf8`| -|location|`utf8`| -|managed_by|`utf8`| -|plan|`json`| -|sku|`json`| -|tags|`json`| -|changed_time|`timestamp[us, tz=UTC]`| -|created_time|`timestamp[us, tz=UTC]`| -|id (PK)|`utf8`| -|name|`utf8`| -|provisioning_state|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_role_management_policy_assignments.md b/plugins/source/azure/docs/tables/azure_role_management_policy_assignments.md deleted file mode 100644 index 0f07fb8a96c8de..00000000000000 --- a/plugins/source/azure/docs/tables/azure_role_management_policy_assignments.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_role_management_policy_assignments - -This table shows data for Azure Role Management Policy Assignments. - -https://learn.microsoft.com/en-us/rest/api/authorization/role-management-policy-assignments/list-for-scope?tabs=HTTP#rolemanagementpolicyassignment - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_saas_resources.md b/plugins/source/azure/docs/tables/azure_saas_resources.md deleted file mode 100644 index a9f70b9391ff47..00000000000000 --- a/plugins/source/azure/docs/tables/azure_saas_resources.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_saas_resources - -This table shows data for Azure Software as a Service (SaaS) Resources. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas@v0.5.0#Resource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_search_services.md b/plugins/source/azure/docs/tables/azure_search_services.md deleted file mode 100644 index 31aa2f13d1022a..00000000000000 --- a/plugins/source/azure/docs/tables/azure_search_services.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_search_services - -This table shows data for Azure Search Services. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch@v1.0.0#Service - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_adaptive_application_controls.md b/plugins/source/azure/docs/tables/azure_security_adaptive_application_controls.md deleted file mode 100644 index 0099372ea734e1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_adaptive_application_controls.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_security_adaptive_application_controls - -This table shows data for Azure Security Adaptive Application Controls. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/adaptive-application-controls/list?view=rest-defenderforcloud-2020-01-01&tabs=HTTP - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_alerts.md b/plugins/source/azure/docs/tables/azure_security_alerts.md deleted file mode 100644 index 1da2ad21b0d0d2..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_alerts.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_alerts - -This table shows data for Azure Security Alerts. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/alerts/list?tabs=HTTP#alert - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_alerts_suppression_rules.md b/plugins/source/azure/docs/tables/azure_security_alerts_suppression_rules.md deleted file mode 100644 index 99f6279fb890c2..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_alerts_suppression_rules.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_alerts_suppression_rules - -This table shows data for Azure Security Alerts Suppression Rules. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/alerts-suppression-rules/list?tabs=HTTP#alertssuppressionrule - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_allowed_connections.md b/plugins/source/azure/docs/tables/azure_security_allowed_connections.md deleted file mode 100644 index 778e6a394cfafd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_allowed_connections.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_security_allowed_connections - -This table shows data for Azure Security Allowed Connections. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/allowed-connections/list?tabs=HTTP#allowedconnectionsresource - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_applications.md b/plugins/source/azure/docs/tables/azure_security_applications.md deleted file mode 100644 index 281103d81c133d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_applications.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_applications - -This table shows data for Azure Security Applications. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#Application - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_assessments.md b/plugins/source/azure/docs/tables/azure_security_assessments.md deleted file mode 100644 index 0e9a2c528bc079..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_assessments.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_assessments - -This table shows data for Azure Security Assessments. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/assessments/list?tabs=HTTP#securityassessment - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_auto_provisioning_settings.md b/plugins/source/azure/docs/tables/azure_security_auto_provisioning_settings.md deleted file mode 100644 index 12c7e2c44544fd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_auto_provisioning_settings.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_auto_provisioning_settings - -This table shows data for Azure Security Auto Provisioning Settings. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/auto-provisioning-settings/list?tabs=HTTP#autoprovisioningsetting - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_automations.md b/plugins/source/azure/docs/tables/azure_security_automations.md deleted file mode 100644 index eabd383d876e18..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_automations.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_security_automations - -This table shows data for Azure Security Automations. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/automations/list?tabs=HTTP#automation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_connectors.md b/plugins/source/azure/docs/tables/azure_security_connectors.md deleted file mode 100644 index 214229988b1501..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_connectors.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_security_connectors - -This table shows data for Azure Security Connectors. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#ConnectorSetting - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|kind|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_contacts.md b/plugins/source/azure/docs/tables/azure_security_contacts.md deleted file mode 100644 index d77ef247c8be10..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_contacts.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_contacts - -This table shows data for Azure Security Contacts. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#Contact - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_discovered_security_solutions.md b/plugins/source/azure/docs/tables/azure_security_discovered_security_solutions.md deleted file mode 100644 index 5173f27fa5a961..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_discovered_security_solutions.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_security_discovered_security_solutions - -This table shows data for Azure Security Discovered Security Solutions. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/discovered-security-solutions/list?tabs=HTTP#discoveredsecuritysolution - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_external_security_solutions.md b/plugins/source/azure/docs/tables/azure_security_external_security_solutions.md deleted file mode 100644 index 3a61a82d360f23..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_external_security_solutions.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_security_external_security_solutions - -This table shows data for Azure Security External Security Solutions. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/external-security-solutions/list?tabs=HTTP#externalsecuritysolutionlist - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|kind|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_governance_rule.md b/plugins/source/azure/docs/tables/azure_security_governance_rule.md deleted file mode 100644 index d37446ec9682e8..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_governance_rule.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_governance_rule - -This table shows data for Azure Security Governance Rule. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#GovernanceRule - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_jit_network_access_policies.md b/plugins/source/azure/docs/tables/azure_security_jit_network_access_policies.md deleted file mode 100644 index f1b4c560ffa499..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_jit_network_access_policies.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_security_jit_network_access_policies - -This table shows data for Azure Security Jit Network Access Policies. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/jit-network-access-policies/list?tabs=HTTP#jitnetworkaccesspolicy - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|kind|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_locations.md b/plugins/source/azure/docs/tables/azure_security_locations.md deleted file mode 100644 index 0e38c6e7eb9367..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_locations.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_security_locations - -This table shows data for Azure Security Locations. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/locations/get?tabs=HTTP#asclocation - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_pricings.md b/plugins/source/azure/docs/tables/azure_security_pricings.md deleted file mode 100644 index 27e48089565d8e..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_pricings.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_pricings - -This table shows data for Azure Security Pricings. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/pricings/list?tabs=HTTP#pricing - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_regulatory_compliance_standards.md b/plugins/source/azure/docs/tables/azure_security_regulatory_compliance_standards.md deleted file mode 100644 index c2d9a64dad0aa7..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_regulatory_compliance_standards.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_regulatory_compliance_standards - -This table shows data for Azure Security Regulatory Compliance Standards. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/regulatory-compliance-standards/list?tabs=HTTP#regulatorycompliancestandard - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_secure_score_control_definitions.md b/plugins/source/azure/docs/tables/azure_security_secure_score_control_definitions.md deleted file mode 100644 index e4d4b0aae0cad1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_secure_score_control_definitions.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_secure_score_control_definitions - -This table shows data for Azure Security Secure Score Control Definitions. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/secure-score-control-definitions/list?tabs=HTTP#securescorecontroldefinitionitem - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_secure_score_controls.md b/plugins/source/azure/docs/tables/azure_security_secure_score_controls.md deleted file mode 100644 index 7f1b31706d72c4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_secure_score_controls.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_secure_score_controls - -This table shows data for Azure Security Secure Score Controls. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/secure-score-controls/list?tabs=HTTP#securescorecontroldetails - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_secure_scores.md b/plugins/source/azure/docs/tables/azure_security_secure_scores.md deleted file mode 100644 index fa33370953b914..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_secure_scores.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_secure_scores - -This table shows data for Azure Security Secure Scores. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/secure-scores/list?tabs=HTTP#securescoreitem - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_settings.md b/plugins/source/azure/docs/tables/azure_security_settings.md deleted file mode 100644 index 94914c3990b663..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_settings.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_settings - -This table shows data for Azure Security Settings. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/settings/list?tabs=HTTP#settingslist - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|kind|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_solutions.md b/plugins/source/azure/docs/tables/azure_security_solutions.md deleted file mode 100644 index a688d0dc86ce57..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_solutions.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_security_solutions - -This table shows data for Azure Security Solutions. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#Solution - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_sub_assessments.md b/plugins/source/azure/docs/tables/azure_security_sub_assessments.md deleted file mode 100644 index 8c8ed359cf32ef..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_sub_assessments.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_sub_assessments - -This table shows data for Azure Security Sub Assessments. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/sub-assessments/list-all?tabs=HTTP#securitysubassessment - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_tasks.md b/plugins/source/azure/docs/tables/azure_security_tasks.md deleted file mode 100644 index c550e9cc36669c..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_tasks.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_tasks - -This table shows data for Azure Security Tasks. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/tasks/list?tabs=HTTP#securitytask - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_topology.md b/plugins/source/azure/docs/tables/azure_security_topology.md deleted file mode 100644 index 830a7bffe852b4..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_topology.md +++ /dev/null @@ -1,20 +0,0 @@ -# Table: azure_security_topology - -This table shows data for Azure Security Topology. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/topology/list?tabs=HTTP#topologyresource - -The composite primary key for this table is (**subscription_id**, **id**). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id (PK)|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|properties|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_security_workspace_settings.md b/plugins/source/azure/docs/tables/azure_security_workspace_settings.md deleted file mode 100644 index 147e1629c5ab83..00000000000000 --- a/plugins/source/azure/docs/tables/azure_security_workspace_settings.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_security_workspace_settings - -This table shows data for Azure Security Workspace Settings. - -https://learn.microsoft.com/en-us/rest/api/defenderforcloud/workspace-settings/list?tabs=HTTP#workspacesetting - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_servicebus_namespace_topic_authorization_rules.md b/plugins/source/azure/docs/tables/azure_servicebus_namespace_topic_authorization_rules.md deleted file mode 100644 index 1e14ed02a36209..00000000000000 --- a/plugins/source/azure/docs/tables/azure_servicebus_namespace_topic_authorization_rules.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_servicebus_namespace_topic_authorization_rules - -This table shows data for Azure Service Bus Namespace Topic Authorization Rules. - -https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics%20%E2%80%93%20authorization%20rules/list-authorization-rules?tabs=HTTP#sbauthorizationrule - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_servicebus_namespace_topics](azure_servicebus_namespace_topics.md). - -The following tables depend on azure_servicebus_namespace_topic_authorization_rules: - - [azure_servicebus_namespace_topic_rule_access_keys](azure_servicebus_namespace_topic_rule_access_keys.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_servicebus_namespace_topic_rule_access_keys.md b/plugins/source/azure/docs/tables/azure_servicebus_namespace_topic_rule_access_keys.md deleted file mode 100644 index 40ab2b7b086734..00000000000000 --- a/plugins/source/azure/docs/tables/azure_servicebus_namespace_topic_rule_access_keys.md +++ /dev/null @@ -1,27 +0,0 @@ -# Table: azure_servicebus_namespace_topic_rule_access_keys - -This table shows data for Azure Service Bus Namespace Topic Rule Access Keys. - -https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics%20%E2%80%93%20authorization%20rules/list-keys?tabs=HTTP#accesskeys - -The composite primary key for this table is (**rule_id**, **key_name**). - -## Relations - -This table depends on [azure_servicebus_namespace_topic_authorization_rules](azure_servicebus_namespace_topic_authorization_rules.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|rule_id (PK)|`utf8`| -|alias_primary_connection_string|`utf8`| -|alias_secondary_connection_string|`utf8`| -|key_name (PK)|`utf8`| -|primary_connection_string|`utf8`| -|primary_key|`utf8`| -|secondary_connection_string|`utf8`| -|secondary_key|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_servicebus_namespace_topics.md b/plugins/source/azure/docs/tables/azure_servicebus_namespace_topics.md deleted file mode 100644 index 219315939eb562..00000000000000 --- a/plugins/source/azure/docs/tables/azure_servicebus_namespace_topics.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_servicebus_namespace_topics - -This table shows data for Azure Service Bus Namespace Topics. - -https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics/list-by-namespace?tabs=HTTP#sbtopic - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_servicebus_namespaces](azure_servicebus_namespaces.md). - -The following tables depend on azure_servicebus_namespace_topics: - - [azure_servicebus_namespace_topic_authorization_rules](azure_servicebus_namespace_topic_authorization_rules.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_servicebus_namespaces.md b/plugins/source/azure/docs/tables/azure_servicebus_namespaces.md deleted file mode 100644 index 8808f13572d25e..00000000000000 --- a/plugins/source/azure/docs/tables/azure_servicebus_namespaces.md +++ /dev/null @@ -1,29 +0,0 @@ -# Table: azure_servicebus_namespaces - -This table shows data for Azure Service Bus Namespaces. - -https://learn.microsoft.com/en-us/rest/api/servicebus/stable/namespaces/list?tabs=HTTP#sbnamespace - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_servicebus_namespaces: - - [azure_servicebus_namespace_topics](azure_servicebus_namespace_topics.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|sku|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_streamanalytics_streaming_jobs.md b/plugins/source/azure/docs/tables/azure_streamanalytics_streaming_jobs.md deleted file mode 100644 index f9e9cc53ec4033..00000000000000 --- a/plugins/source/azure/docs/tables/azure_streamanalytics_streaming_jobs.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_streamanalytics_streaming_jobs - -This table shows data for Azure Stream Analytics Streaming Jobs. - -https://learn.microsoft.com/en-us/rest/api/streamanalytics/2020-03-01/streaming-jobs/list?tabs=HTTP#streamingjob - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|identity|`json`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_subscription_subscription_locations.md b/plugins/source/azure/docs/tables/azure_subscription_subscription_locations.md deleted file mode 100644 index fe440e17fc22b1..00000000000000 --- a/plugins/source/azure/docs/tables/azure_subscription_subscription_locations.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_subscription_subscription_locations - -This table shows data for Azure Subscription Subscription Locations. - -https://learn.microsoft.com/en-us/rest/api/resources/subscriptions/list-locations?tabs=HTTP#location - -The primary key for this table is **id**. - -## Relations - -This table depends on [azure_subscription_subscriptions](azure_subscription_subscriptions.md). - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|latitude|`utf8`| -|longitude|`utf8`| -|availability_zone_mappings|`json`| -|metadata|`json`| -|display_name|`utf8`| -|id (PK)|`utf8`| -|name|`utf8`| -|regional_display_name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_subscription_subscriptions.md b/plugins/source/azure/docs/tables/azure_subscription_subscriptions.md deleted file mode 100644 index 803354a832add5..00000000000000 --- a/plugins/source/azure/docs/tables/azure_subscription_subscriptions.md +++ /dev/null @@ -1,28 +0,0 @@ -# Table: azure_subscription_subscriptions - -This table shows data for Azure Subscription Subscriptions. - -https://learn.microsoft.com/en-us/rest/api/resources/subscriptions/list?tabs=HTTP#subscription - -The primary key for this table is **id**. - -## Relations - -The following tables depend on azure_subscription_subscriptions: - - [azure_subscription_subscription_locations](azure_subscription_subscription_locations.md) - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|authorization_source|`utf8`| -|managed_by_tenants|`json`| -|subscription_policies|`json`| -|tags|`json`| -|display_name|`utf8`| -|id (PK)|`utf8`| -|state|`utf8`| -|subscription_id|`utf8`| -|tenant_id|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_subscription_tenants.md b/plugins/source/azure/docs/tables/azure_subscription_tenants.md deleted file mode 100644 index 08e05d12477b40..00000000000000 --- a/plugins/source/azure/docs/tables/azure_subscription_tenants.md +++ /dev/null @@ -1,24 +0,0 @@ -# Table: azure_subscription_tenants - -This table shows data for Azure Subscription Tenants. - -https://learn.microsoft.com/en-us/rest/api/resources/tenants/list?tabs=HTTP#tenantiddescription - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|country|`utf8`| -|country_code|`utf8`| -|default_domain|`utf8`| -|display_name|`utf8`| -|domains|`list`| -|id (PK)|`utf8`| -|tenant_branding_logo_url|`utf8`| -|tenant_category|`utf8`| -|tenant_id|`utf8`| -|tenant_type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_support_services.md b/plugins/source/azure/docs/tables/azure_support_services.md deleted file mode 100644 index ad947b33ae06dc..00000000000000 --- a/plugins/source/azure/docs/tables/azure_support_services.md +++ /dev/null @@ -1,18 +0,0 @@ -# Table: azure_support_services - -This table shows data for Azure Support Services. - -https://learn.microsoft.com/en-us/rest/api/support/services/list?tabs=HTTP#service - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_support_tickets.md b/plugins/source/azure/docs/tables/azure_support_tickets.md deleted file mode 100644 index d50aaeff4da175..00000000000000 --- a/plugins/source/azure/docs/tables/azure_support_tickets.md +++ /dev/null @@ -1,19 +0,0 @@ -# Table: azure_support_tickets - -This table shows data for Azure Support Tickets. - -https://learn.microsoft.com/en-us/rest/api/support/support-tickets/list?tabs=HTTP#supportticketdetails - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|properties|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_synapse_private_link_hubs.md b/plugins/source/azure/docs/tables/azure_synapse_private_link_hubs.md deleted file mode 100644 index 0268a91009702d..00000000000000 --- a/plugins/source/azure/docs/tables/azure_synapse_private_link_hubs.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_synapse_private_link_hubs - -This table shows data for Azure Synapse Private Link Hubs. - -https://learn.microsoft.com/en-us/rest/api/synapse/private-link-hubs/list?tabs=HTTP#privatelinkhub - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_synapse_workspaces.md b/plugins/source/azure/docs/tables/azure_synapse_workspaces.md deleted file mode 100644 index c03e8acda411cd..00000000000000 --- a/plugins/source/azure/docs/tables/azure_synapse_workspaces.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_synapse_workspaces - -This table shows data for Azure Synapse Workspaces. - -https://learn.microsoft.com/en-us/rest/api/synapse/workspaces/list?tabs=HTTP#workspace - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_trafficmanager_profiles.md b/plugins/source/azure/docs/tables/azure_trafficmanager_profiles.md deleted file mode 100644 index 302dca9f323809..00000000000000 --- a/plugins/source/azure/docs/tables/azure_trafficmanager_profiles.md +++ /dev/null @@ -1,21 +0,0 @@ -# Table: azure_trafficmanager_profiles - -This table shows data for Azure Trafficmanager Profiles. - -https://learn.microsoft.com/en-us/rest/api/trafficmanager/profiles/list-by-subscription?tabs=HTTP#profile - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|id (PK)|`utf8`| -|location|`utf8`| -|name|`utf8`| -|properties|`json`| -|tags|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_windowsiot_services.md b/plugins/source/azure/docs/tables/azure_windowsiot_services.md deleted file mode 100644 index 07f49cbbfb7a99..00000000000000 --- a/plugins/source/azure/docs/tables/azure_windowsiot_services.md +++ /dev/null @@ -1,22 +0,0 @@ -# Table: azure_windowsiot_services - -This table shows data for Azure Windows IoT Services. - -https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindowsiot@v1.0.0#DeviceService - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|etag|`utf8`| -|location|`utf8`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/docs/tables/azure_workloads_monitors.md b/plugins/source/azure/docs/tables/azure_workloads_monitors.md deleted file mode 100644 index 81963c03d44316..00000000000000 --- a/plugins/source/azure/docs/tables/azure_workloads_monitors.md +++ /dev/null @@ -1,23 +0,0 @@ -# Table: azure_workloads_monitors - -This table shows data for Azure Workloads Monitors. - -https://learn.microsoft.com/en-us/rest/api/workloads/sap-monitor/list?tabs=HTTP#monitor - -The primary key for this table is **id**. - -## Columns - -| Name | Type | -| ------------- | ------------- | -|_cq_id|`uuid`| -|_cq_parent_id|`uuid`| -|subscription_id|`utf8`| -|location|`utf8`| -|identity|`json`| -|properties|`json`| -|tags|`json`| -|id (PK)|`utf8`| -|name|`utf8`| -|system_data|`json`| -|type|`utf8`| \ No newline at end of file diff --git a/plugins/source/azure/resources/plugin/tables.go b/plugins/source/azure/resources/plugin/tables.go index 848444cc11a12b..bcc9f876b22e57 100644 --- a/plugins/source/azure/resources/plugin/tables.go +++ b/plugins/source/azure/resources/plugin/tables.go @@ -1,113 +1,30 @@ package plugin import ( - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/advisor" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/analysisservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/apimanagement" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/appcomplianceautomation" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/appconfiguration" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/applicationinsights" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/appservice" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/authorization" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/automation" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/azurearcdata" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/batch" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/billing" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/botservice" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/cdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/cognitiveservices" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/compute" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/confluent" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/connectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/consumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/containerinstance" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/containerregistry" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/containerservice" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/cosmos" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/costmanagement" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/customerinsights" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/dashboard" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/databox" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/datadog" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/datafactory" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/datalakeanalytics" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/datalakestore" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/datamigration" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/desktopvirtualization" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/devhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/devops" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/dns" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/dnsresolver" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/elastic" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/engagementfabric" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/eventgrid" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/eventhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/frontdoor" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/hanaonazure" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/hdinsight" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/healthbot" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/healthcareapis" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/hybridcompute" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/hybriddatamanager" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/keyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/kusto" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/logic" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/maintenance" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/managementgroups" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/mariadb" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/marketplace" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/monitor" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/mysql" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/mysqlflexibleservers" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/network" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/networkfunction" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/nginx" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/notificationhubs" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/operationalinsights" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/peering" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/policy" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/portal" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/postgresql" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/postgresqlflexibleservers" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/postgresqlhsc" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/powerbidedicated" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/privatedns" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/providerhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/redhatopenshift" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/redis" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/relay" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/reservations" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/resources" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/saas" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/search" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/security" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/servicebus" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/sql" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/sqlvirtualmachine" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/storage" "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/storagecache" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/streamanalytics" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/subscription" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/support" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/synapse" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/trafficmanager" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/windowsiot" - "github.com/cloudquery/cloudquery/plugins/source/azure/resources/services/workloads" "github.com/cloudquery/plugin-sdk/v4/schema" "github.com/cloudquery/plugin-sdk/v4/transformers" ) func getTables() schema.Tables { list := []*schema.Table{ - advisor.RecommendationMetadata(), - advisor.Recommendations(), - advisor.Suppressions(), - analysisservices.Servers(), - apimanagement.Service(), - appcomplianceautomation.Reports(), - appconfiguration.ConfigurationStores(), - applicationinsights.Components(), - applicationinsights.WebTests(), appservice.CertificateOrders(), appservice.Certificates(), appservice.DeletedWebApps(), @@ -119,27 +36,8 @@ func getTables() schema.Tables { appservice.StaticSites(), appservice.TopLevelDomains(), appservice.WebApps(), - authorization.ClassicAdministrators(), authorization.ProviderOperationsMetadata(), - authorization.RoleAssignments(), authorization.RoleDefinitions(), - authorization.RoleManagementPolicyAssignments(), - automation.Account(), - azurearcdata.PostgresInstances(), - azurearcdata.SqlManagedInstances(), - azurearcdata.SqlServerInstances(), - batch.Account(), - billing.Accounts(), - billing.EnrollmentAccounts(), - billing.Periods(), - botservice.Bots(), - cdn.EdgeNodes(), - cdn.ManagedRuleSets(), - cdn.Profiles(), - cognitiveservices.Accounts(), - cognitiveservices.DeletedAccounts(), - cognitiveservices.CommitmentPlans(), - cognitiveservices.ResourceSKUs(), compute.AvailabilitySets(), compute.CapacityReservationGroups(), compute.CloudServices(), @@ -155,194 +53,18 @@ func getTables() schema.Tables { compute.VirtualMachineScaleSets(), compute.VirtualMachines(), cosmos.DatabaseAccounts(), - costmanagement.Views(), - confluent.MarketplaceAgreements(), - connectedvmware.Clusters(), - connectedvmware.Datastores(), - connectedvmware.Hosts(), - connectedvmware.ResourcePools(), - connectedvmware.VCenters(), - connectedvmware.VirtualMachineTemplates(), - connectedvmware.VirtualMachines(), - connectedvmware.VirtualNetworks(), - containerinstance.ContainerGroups(), - containerregistry.Registries(), - containerservice.ManagedClusters(), - containerservice.Snapshots(), cosmos.Locations(), cosmos.RestorableDatabaseAccounts(), - consumption.BillingAccountBalances(), - consumption.BillingAccountBudgets(), - consumption.BillingAccountCharges(), - consumption.BillingAccountEvents(), - consumption.BillingAccountReservationRecommendations(), - consumption.BillingAccountLots(), - consumption.BillingAccountMarketplaces(), - consumption.BillingProfileReservationDetails(), - consumption.BillingProfileReservationRecommendations(), - consumption.BillingProfileReservationSummaries(), - consumption.BillingProfileReservationTransactions(), - consumption.BillingAccountLegacyUsageDetails(), - consumption.BillingAccountModernUsageDetails(), - consumption.BillingAccountTags(), - consumption.SubscriptionBudgets(), - consumption.SubscriptionMarketplaces(), - consumption.SubscriptionPriceSheets(), - consumption.SubscriptionReservationRecommendations(), - consumption.SubscriptionLegacyUsageDetails(), - consumption.SubscriptionTags(), - customerinsights.Hubs(), - dashboard.Grafana(), - databox.Jobs(), - datadog.MarketplaceAgreements(), - datadog.Monitors(), - datafactory.Factories(), - datalakeanalytics.Accounts(), - datalakestore.Accounts(), - datamigration.Services(), - desktopvirtualization.HostPools(), - devhub.Workflow(), - devops.PipelineTemplateDefinitions(), - dns.Zones(), - dnsresolver.DnsForwardingRulesets(), - dnsresolver.DnsResolvers(), - elastic.Monitors(), - engagementfabric.Accounts(), - eventgrid.TopicTypes(), - eventhub.Namespaces(), - frontdoor.FrontDoors(), - frontdoor.ManagedRuleSets(), - frontdoor.NetworkExperimentProfiles(), - hanaonazure.SapMonitors(), - hdinsight.Clusters(), - healthbot.Bots(), - healthcareapis.Services(), - hybridcompute.PrivateLinkScopes(), - hybriddatamanager.DataManagers(), - keyvault.Keyvault(), - keyvault.KeyvaultManagedHsms(), - kusto.Clusters(), - logic.Workflows(), - maintenance.Configurations(), - maintenance.PublicMaintenanceConfigurations(), - managementgroups.ManagementGroups(), - managementgroups.Entities(), mariadb.Servers(), - marketplace.PrivateStore(), - monitor.LogProfiles(), - monitor.PrivateLinkScopes(), - monitor.TenantActivityLogAlerts(), - monitor.TenantActivityLogs(), - monitor.Resources(), - monitor.ActivityLogAlerts(), - monitor.SubscriptionDiagnosticSettings(), - monitor.AutoscaleSettings(), mysql.Servers(), mysqlflexibleservers.Servers(), - network.ApplicationGateways(), - network.ApplicationSecurityGroups(), - network.AzureFirewallFqdnTags(), - network.AzureFirewalls(), - network.BastionHosts(), network.BgpServiceCommunities(), - network.CustomIpPrefixes(), - network.DdosProtectionPlans(), - network.DscpConfiguration(), - network.ExpressRouteCircuits(), - network.ExpressRouteGateways(), - network.ExpressRoutePorts(), - network.ExpressRoutePortsLocations(), - network.ExpressRouteServiceProviders(), - network.FirewallPolicies(), - network.IpAllocations(), - network.IpGroups(), - network.Interfaces(), - network.LoadBalancers(), - network.NatGateways(), - network.PrivateLinkServices(), - network.PrivateEndpoints(), - network.Profiles(), - network.PublicIpAddresses(), - network.PublicIpPrefixes(), - network.RouteFilters(), - network.RouteTables(), - network.SecurityGroups(), - network.SecurityPartnerProviders(), - network.ServiceEndpointPolicies(), - network.SubscriptionNetworkManagerConnections(), - network.VpnGateways(), - network.VpnServerConfigurations(), - network.VpnSites(), - network.VirtualAppliances(), - network.VirtualHubs(), - network.VirtualNetworkTaps(), - network.VirtualNetworks(), - network.VirtualNetworkGateways(), - network.VirtualNetworkGatewayConnections(), - network.VirtualRouters(), - network.VirtualWans(), - network.Watchers(), - network.WebApplicationFirewallPolicies(), - networkfunction.AzureTrafficCollectorsBySubscription(), - nginx.Deployments(), - notificationhubs.Namespaces(), - operationalinsights.Clusters(), - operationalinsights.Workspaces(), - peering.ServiceCountries(), peering.ServiceLocations(), - peering.ServiceProviders(), - portal.ListTenantConfigurationViolations(), - portal.TenantConfigurations(), postgresql.Servers(), postgresqlflexibleservers.Servers(), postgresqlhsc.ServerGroups(), - powerbidedicated.Capacities(), - privatedns.PrivateZones(), - providerhub.ProviderRegistrations(), - redhatopenshift.OpenShiftClusters(), - redis.Caches(), - relay.Namespaces(), - reservations.Reservation(), - reservations.ReservationOrder(), - resources.Resources(), - resources.ResourceGroups(), - resources.Links(), - resources.Providers(), - policy.Assignments(), - policy.DataPolicyManifests(), policy.Definitions(), - policy.Exemptions(), - policy.SetDefinitions(), - saas.Resources(), - search.Services(), - security.AdaptiveApplicationControls(), - security.Alerts(), - security.AlertsSuppressionRules(), - security.AllowedConnections(), - security.Applications(), - security.Assessments(), - security.SubAssessments(), security.AssessmentsMetadata(), - security.AutoProvisioningSettings(), - security.Automations(), - security.Connectors(), - security.Contacts(), - security.DiscoveredSecuritySolutions(), - security.ExternalSecuritySolutions(), - security.GovernanceRule(), - security.JitNetworkAccessPolicies(), - security.Locations(), - security.Pricings(), - security.RegulatoryComplianceStandards(), - security.SecureScoreControlDefinitions(), - security.SecureScoreControls(), - security.SecureScores(), - security.Settings(), - security.Solutions(), - security.Tasks(), - security.Topology(), - security.WorkspaceSettings(), - servicebus.Namespaces(), sql.Servers(), sql.InstancePools(), sql.ManagedInstances(), @@ -351,16 +73,6 @@ func getTables() schema.Tables { sqlvirtualmachine.SqlVirtualMachines(), storage.Accounts(), storagecache.Caches(), - streamanalytics.StreamingJobs(), - subscription.Subscriptions(), - subscription.Tenants(), - support.Services(), - support.Tickets(), - synapse.PrivateLinkHubs(), - synapse.Workspaces(), - trafficmanager.Profiles(), - windowsiot.Services(), - workloads.Monitors(), } for i := range list { if list[i].PostResourceResolver == nil { diff --git a/plugins/source/azure/resources/services/advisor/recommendation_metadata.go b/plugins/source/azure/resources/services/advisor/recommendation_metadata.go deleted file mode 100644 index cdb84f93c036c5..00000000000000 --- a/plugins/source/azure/resources/services/advisor/recommendation_metadata.go +++ /dev/null @@ -1,37 +0,0 @@ -package advisor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func RecommendationMetadata() *schema.Table { - return &schema.Table{ - Name: "azure_advisor_recommendation_metadata", - Resolver: fetchRecommendationMetadata, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/advisor/recommendation-metadata/list?tabs=HTTP#metadataentity", - Transform: transformers.TransformWithStruct(&armadvisor.MetadataEntity{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchRecommendationMetadata(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armadvisor.NewRecommendationMetadataClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/advisor/recommendation_metadata_mock_test.go b/plugins/source/azure/resources/services/advisor/recommendation_metadata_mock_test.go deleted file mode 100644 index bb7cd2b7af4389..00000000000000 --- a/plugins/source/azure/resources/services/advisor/recommendation_metadata_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package advisor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRecommendationMetadata(router *mux.Router) error { - var item armadvisor.RecommendationMetadataClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Advisor/metadata", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRecommendationMetadata(t *testing.T) { - client.MockTestHelper(t, RecommendationMetadata(), createRecommendationMetadata) -} diff --git a/plugins/source/azure/resources/services/advisor/recommendations.go b/plugins/source/azure/resources/services/advisor/recommendations.go deleted file mode 100644 index 25ec7580b806a9..00000000000000 --- a/plugins/source/azure/resources/services/advisor/recommendations.go +++ /dev/null @@ -1,39 +0,0 @@ -package advisor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Recommendations() *schema.Table { - return &schema.Table{ - Name: "azure_advisor_recommendations", - Description: "https://learn.microsoft.com/en-us/rest/api/advisor/recommendations/list?tabs=HTTP#resourcerecommendationbase", - Resolver: fetchRecommendations, - PostResourceResolver: client.LowercaseIDResolver, - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_advisor_recommendations", client.Namespacemicrosoft_advisor), - Transform: transformers.TransformWithStruct(&armadvisor.ResourceRecommendationBase{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRecommendations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armadvisor.NewRecommendationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/advisor/recommendations_mock_test.go b/plugins/source/azure/resources/services/advisor/recommendations_mock_test.go deleted file mode 100644 index d895dbb1c5b97e..00000000000000 --- a/plugins/source/azure/resources/services/advisor/recommendations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package advisor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRecommendations(router *mux.Router) error { - var item armadvisor.RecommendationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/recommendations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRecommendations(t *testing.T) { - client.MockTestHelper(t, Recommendations(), createRecommendations) -} diff --git a/plugins/source/azure/resources/services/advisor/suppressions.go b/plugins/source/azure/resources/services/advisor/suppressions.go deleted file mode 100644 index c780c879f2daf5..00000000000000 --- a/plugins/source/azure/resources/services/advisor/suppressions.go +++ /dev/null @@ -1,39 +0,0 @@ -package advisor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Suppressions() *schema.Table { - return &schema.Table{ - Name: "azure_advisor_suppressions", - Description: "https://learn.microsoft.com/en-us/rest/api/advisor/suppressions/list?tabs=HTTP#suppressioncontractlistresult", - Resolver: fetchSuppressions, - PostResourceResolver: client.LowercaseIDResolver, - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_advisor_suppressions", client.Namespacemicrosoft_advisor), - Transform: transformers.TransformWithStruct(&armadvisor.SuppressionContract{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSuppressions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armadvisor.NewSuppressionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/advisor/suppressions_mock_test.go b/plugins/source/azure/resources/services/advisor/suppressions_mock_test.go deleted file mode 100644 index 8101d7ce2016fe..00000000000000 --- a/plugins/source/azure/resources/services/advisor/suppressions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package advisor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSuppressions(router *mux.Router) error { - var item armadvisor.SuppressionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Advisor/suppressions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSuppressions(t *testing.T) { - client.MockTestHelper(t, Suppressions(), createSuppressions) -} diff --git a/plugins/source/azure/resources/services/analysisservices/servers.go b/plugins/source/azure/resources/services/analysisservices/servers.go deleted file mode 100644 index 6017b67ed121f5..00000000000000 --- a/plugins/source/azure/resources/services/analysisservices/servers.go +++ /dev/null @@ -1,39 +0,0 @@ -package analysisservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/armanalysisservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Servers() *schema.Table { - return &schema.Table{ - Name: "azure_analysisservices_servers", - Resolver: fetchServers, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/analysisservices/servers/list?tabs=HTTP#analysisservicesserver", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_analysisservices_servers", client.Namespacemicrosoft_analysisservices), - Transform: transformers.TransformWithStruct(&armanalysisservices.Server{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchServers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armanalysisservices.NewServersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/analysisservices/servers_mock_test.go b/plugins/source/azure/resources/services/analysisservices/servers_mock_test.go deleted file mode 100644 index 03caaff20f7753..00000000000000 --- a/plugins/source/azure/resources/services/analysisservices/servers_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package analysisservices - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/armanalysisservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServers(router *mux.Router) error { - var item armanalysisservices.ServersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/servers", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServers(t *testing.T) { - client.MockTestHelper(t, Servers(), createServers) -} diff --git a/plugins/source/azure/resources/services/apimanagement/service.go b/plugins/source/azure/resources/services/apimanagement/service.go deleted file mode 100644 index abc09f1ab18d36..00000000000000 --- a/plugins/source/azure/resources/services/apimanagement/service.go +++ /dev/null @@ -1,39 +0,0 @@ -package apimanagement - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Service() *schema.Table { - return &schema.Table{ - Name: "azure_apimanagement_service", - Resolver: fetchService, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement#ServiceResource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_apimanagement_service", client.Namespacemicrosoft_apimanagement), - Transform: transformers.TransformWithStruct(&armapimanagement.ServiceResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchService(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armapimanagement.NewServiceClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/apimanagement/service_mock_test.go b/plugins/source/azure/resources/services/apimanagement/service_mock_test.go deleted file mode 100644 index 2dcf63c629f7f9..00000000000000 --- a/plugins/source/azure/resources/services/apimanagement/service_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package apimanagement - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createService(router *mux.Router) error { - var item armapimanagement.ServiceClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestService(t *testing.T) { - client.MockTestHelper(t, Service(), createService) -} diff --git a/plugins/source/azure/resources/services/appcomplianceautomation/reports.go b/plugins/source/azure/resources/services/appcomplianceautomation/reports.go deleted file mode 100644 index bf7a7b5f573258..00000000000000 --- a/plugins/source/azure/resources/services/appcomplianceautomation/reports.go +++ /dev/null @@ -1,39 +0,0 @@ -package appcomplianceautomation - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Reports() *schema.Table { - return &schema.Table{ - Name: "azure_appcomplianceautomation_reports", - Resolver: fetchReports, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/appcompliance/reports/list?tabs=HTTP#reportresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_appcomplianceautomation_reports", client.Namespacemicrosoft_appcomplianceautomation), - Transform: transformers.TransformWithStruct(&armappcomplianceautomation.ReportResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchReports(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armappcomplianceautomation.NewReportsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/appcomplianceautomation/reports_mock_test.go b/plugins/source/azure/resources/services/appcomplianceautomation/reports_mock_test.go deleted file mode 100644 index 849a341775c1e4..00000000000000 --- a/plugins/source/azure/resources/services/appcomplianceautomation/reports_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package appcomplianceautomation - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createReports(router *mux.Router) error { - var item armappcomplianceautomation.ReportsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.AppComplianceAutomation/reports", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestReports(t *testing.T) { - client.MockTestHelper(t, Reports(), createReports) -} diff --git a/plugins/source/azure/resources/services/appconfiguration/configuration_stores.go b/plugins/source/azure/resources/services/appconfiguration/configuration_stores.go deleted file mode 100644 index 4e5361be90e0c5..00000000000000 --- a/plugins/source/azure/resources/services/appconfiguration/configuration_stores.go +++ /dev/null @@ -1,39 +0,0 @@ -package appconfiguration - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ConfigurationStores() *schema.Table { - return &schema.Table{ - Name: "azure_appconfiguration_configuration_stores", - Resolver: fetchConfigurationStores, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/appconfiguration/stable/configuration-stores/list?tabs=HTTP#configurationstore", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_appconfiguration_configuration_stores", client.Namespacemicrosoft_appconfiguration), - Transform: transformers.TransformWithStruct(&armappconfiguration.ConfigurationStore{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchConfigurationStores(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armappconfiguration.NewConfigurationStoresClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/appconfiguration/configuration_stores_mock_test.go b/plugins/source/azure/resources/services/appconfiguration/configuration_stores_mock_test.go deleted file mode 100644 index 89d0393222b332..00000000000000 --- a/plugins/source/azure/resources/services/appconfiguration/configuration_stores_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package appconfiguration - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appconfiguration/armappconfiguration" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createConfigurationStores(router *mux.Router) error { - var item armappconfiguration.ConfigurationStoresClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestConfigurationStores(t *testing.T) { - client.MockTestHelper(t, ConfigurationStores(), createConfigurationStores) -} diff --git a/plugins/source/azure/resources/services/applicationinsights/components.go b/plugins/source/azure/resources/services/applicationinsights/components.go deleted file mode 100644 index 7251615dae7572..00000000000000 --- a/plugins/source/azure/resources/services/applicationinsights/components.go +++ /dev/null @@ -1,39 +0,0 @@ -package applicationinsights - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Components() *schema.Table { - return &schema.Table{ - Name: "azure_applicationinsights_components", - Resolver: fetchComponents, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/application-insights/components/list?tabs=HTTP#applicationinsightscomponent", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_applicationinsights_components", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armapplicationinsights.Component{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchComponents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armapplicationinsights.NewComponentsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/applicationinsights/components_mock_test.go b/plugins/source/azure/resources/services/applicationinsights/components_mock_test.go deleted file mode 100644 index 6451c033a3f7f1..00000000000000 --- a/plugins/source/azure/resources/services/applicationinsights/components_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package applicationinsights - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createComponents(router *mux.Router) error { - var item armapplicationinsights.ComponentsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestComponents(t *testing.T) { - client.MockTestHelper(t, Components(), createComponents) -} diff --git a/plugins/source/azure/resources/services/applicationinsights/web_tests.go b/plugins/source/azure/resources/services/applicationinsights/web_tests.go deleted file mode 100644 index a313c7ff0f114c..00000000000000 --- a/plugins/source/azure/resources/services/applicationinsights/web_tests.go +++ /dev/null @@ -1,39 +0,0 @@ -package applicationinsights - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func WebTests() *schema.Table { - return &schema.Table{ - Name: "azure_applicationinsights_web_tests", - Resolver: fetchWebTests, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/application-insights/web-tests/list?tabs=HTTP#webtest", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_applicationinsights_web_tests", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armapplicationinsights.WebTest{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWebTests(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armapplicationinsights.NewWebTestsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/applicationinsights/web_tests_mock_test.go b/plugins/source/azure/resources/services/applicationinsights/web_tests_mock_test.go deleted file mode 100644 index 36c0311a6cdc94..00000000000000 --- a/plugins/source/azure/resources/services/applicationinsights/web_tests_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package applicationinsights - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWebTests(router *mux.Router) error { - var item armapplicationinsights.WebTestsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestWebTests(t *testing.T) { - client.MockTestHelper(t, WebTests(), createWebTests) -} diff --git a/plugins/source/azure/resources/services/authorization/classic_administrators.go b/plugins/source/azure/resources/services/authorization/classic_administrators.go deleted file mode 100644 index 34deac8b06998e..00000000000000 --- a/plugins/source/azure/resources/services/authorization/classic_administrators.go +++ /dev/null @@ -1,39 +0,0 @@ -package authorization - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ClassicAdministrators() *schema.Table { - return &schema.Table{ - Name: "azure_authorization_classic_administrators", - Resolver: fetchClassicAdministrators, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/authorization/classic-administrators/list?tabs=HTTP#classicadministrator", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_authorization_classic_administrators", client.Namespacemicrosoft_authorization), - Transform: transformers.TransformWithStruct(&armauthorization.ClassicAdministrator{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchClassicAdministrators(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armauthorization.NewClassicAdministratorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/authorization/classic_administrators_mock_test.go b/plugins/source/azure/resources/services/authorization/classic_administrators_mock_test.go deleted file mode 100644 index 393a2e8a2f88ad..00000000000000 --- a/plugins/source/azure/resources/services/authorization/classic_administrators_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package authorization - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createClassicAdministrators(router *mux.Router) error { - var item armauthorization.ClassicAdministratorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/classicAdministrators", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestClassicAdministrators(t *testing.T) { - client.MockTestHelper(t, ClassicAdministrators(), createClassicAdministrators) -} diff --git a/plugins/source/azure/resources/services/authorization/role_assignments.go b/plugins/source/azure/resources/services/authorization/role_assignments.go deleted file mode 100644 index b1105dd1692e4f..00000000000000 --- a/plugins/source/azure/resources/services/authorization/role_assignments.go +++ /dev/null @@ -1,39 +0,0 @@ -package authorization - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func RoleAssignments() *schema.Table { - return &schema.Table{ - Name: "azure_authorization_role_assignments", - Resolver: fetchRoleAssignments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/authorization/role-assignments/get?tabs=HTTP#roleassignment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_authorization_role_assignments", client.Namespacemicrosoft_authorization), - Transform: transformers.TransformWithStruct(&armauthorization.RoleAssignment{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchRoleAssignments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armauthorization.NewRoleAssignmentsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListForSubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/authorization/role_assignments_mock_test.go b/plugins/source/azure/resources/services/authorization/role_assignments_mock_test.go deleted file mode 100644 index 34508b6d6e214c..00000000000000 --- a/plugins/source/azure/resources/services/authorization/role_assignments_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package authorization - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRoleAssignments(router *mux.Router) error { - var item armauthorization.RoleAssignmentListResult - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRoleAssignments(t *testing.T) { - client.MockTestHelper(t, RoleAssignments(), createRoleAssignments) -} diff --git a/plugins/source/azure/resources/services/authorization/role_management_policy_assignments.go b/plugins/source/azure/resources/services/authorization/role_management_policy_assignments.go deleted file mode 100644 index 5b2514f1d5a2d6..00000000000000 --- a/plugins/source/azure/resources/services/authorization/role_management_policy_assignments.go +++ /dev/null @@ -1,40 +0,0 @@ -package authorization - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func RoleManagementPolicyAssignments() *schema.Table { - return &schema.Table{ - Name: "azure_role_management_policy_assignments", - Resolver: fetchRoleManagementPolicyAssignments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/authorization/role-management-policy-assignments/list-for-scope?tabs=HTTP#rolemanagementpolicyassignment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_role_management_policy_assignments", client.Namespacemicrosoft_authorization), - Transform: transformers.TransformWithStruct(&armauthorization.RoleManagementPolicyAssignment{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRoleManagementPolicyAssignments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armauthorization.NewRoleManagementPolicyAssignmentsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - scope := "/subscriptions/" + cl.SubscriptionId - pager := svc.NewListForScopePager(scope, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/authorization/role_management_policy_assignments_test.go b/plugins/source/azure/resources/services/authorization/role_management_policy_assignments_test.go deleted file mode 100644 index 1e0255bf87376f..00000000000000 --- a/plugins/source/azure/resources/services/authorization/role_management_policy_assignments_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package authorization - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRoleManagementPolicyAssignments(router *mux.Router) error { - var item armauthorization.RoleManagementPolicyAssignmentsClientListForScopeResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - router.HandleFunc("/subscriptions/"+client.TestSubscription+"/providers/Microsoft.Authorization/roleManagementPolicyAssignments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestRoleManagementPolicyAssignments(t *testing.T) { - client.MockTestHelper(t, RoleManagementPolicyAssignments(), createRoleManagementPolicyAssignments) -} diff --git a/plugins/source/azure/resources/services/automation/account.go b/plugins/source/azure/resources/services/automation/account.go deleted file mode 100644 index 31ed6df143a67c..00000000000000 --- a/plugins/source/azure/resources/services/automation/account.go +++ /dev/null @@ -1,39 +0,0 @@ -package automation - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Account() *schema.Table { - return &schema.Table{ - Name: "azure_automation_account", - Resolver: fetchAccount, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/automation/automation-account/list?tabs=HTTP#automationaccount", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_automation_account", client.Namespacemicrosoft_automation), - Transform: transformers.TransformWithStruct(&armautomation.Account{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccount(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armautomation.NewAccountClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/automation/account_mock_test.go b/plugins/source/azure/resources/services/automation/account_mock_test.go deleted file mode 100644 index d10fbf5e850614..00000000000000 --- a/plugins/source/azure/resources/services/automation/account_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package automation - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccount(router *mux.Router) error { - var item armautomation.AccountClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAccount(t *testing.T) { - client.MockTestHelper(t, Account(), createAccount) -} diff --git a/plugins/source/azure/resources/services/azurearcdata/postgres_instances.go b/plugins/source/azure/resources/services/azurearcdata/postgres_instances.go deleted file mode 100644 index ec8ac3e9cd4e24..00000000000000 --- a/plugins/source/azure/resources/services/azurearcdata/postgres_instances.go +++ /dev/null @@ -1,39 +0,0 @@ -package azurearcdata - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PostgresInstances() *schema.Table { - return &schema.Table{ - Name: "azure_azurearcdata_postgres_instances", - Resolver: fetchPostgresInstances, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata@v0.5.0#PostgresInstance", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_azurearcdata_postgres_instances", client.Namespacemicrosoft_azurearcdata), - Transform: transformers.TransformWithStruct(&armazurearcdata.PostgresInstance{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPostgresInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armazurearcdata.NewPostgresInstancesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/azurearcdata/postgres_instances_mock_test.go b/plugins/source/azure/resources/services/azurearcdata/postgres_instances_mock_test.go deleted file mode 100644 index cd8fa6a9191c7e..00000000000000 --- a/plugins/source/azure/resources/services/azurearcdata/postgres_instances_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package azurearcdata - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPostgresInstances(router *mux.Router) error { - var item armazurearcdata.PostgresInstancesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.AzureArcData/postgresInstances", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPostgresInstances(t *testing.T) { - client.MockTestHelper(t, PostgresInstances(), createPostgresInstances) -} diff --git a/plugins/source/azure/resources/services/azurearcdata/sql_managed_instances.go b/plugins/source/azure/resources/services/azurearcdata/sql_managed_instances.go deleted file mode 100644 index cf0eb2e49bf055..00000000000000 --- a/plugins/source/azure/resources/services/azurearcdata/sql_managed_instances.go +++ /dev/null @@ -1,39 +0,0 @@ -package azurearcdata - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SqlManagedInstances() *schema.Table { - return &schema.Table{ - Name: "azure_azurearcdata_sql_managed_instances", - Resolver: fetchSqlManagedInstances, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata@v0.5.0#SQLManagedInstance", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_azurearcdata_sql_managed_instances", client.Namespacemicrosoft_azurearcdata), - Transform: transformers.TransformWithStruct(&armazurearcdata.SQLManagedInstance{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSqlManagedInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armazurearcdata.NewSQLManagedInstancesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/azurearcdata/sql_managed_instances_mock_test.go b/plugins/source/azure/resources/services/azurearcdata/sql_managed_instances_mock_test.go deleted file mode 100644 index 22230e2d55c31d..00000000000000 --- a/plugins/source/azure/resources/services/azurearcdata/sql_managed_instances_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package azurearcdata - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSqlManagedInstances(router *mux.Router) error { - var item armazurearcdata.SQLManagedInstancesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.AzureArcData/sqlManagedInstances", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSqlManagedInstances(t *testing.T) { - client.MockTestHelper(t, SqlManagedInstances(), createSqlManagedInstances) -} diff --git a/plugins/source/azure/resources/services/azurearcdata/sql_server_instances.go b/plugins/source/azure/resources/services/azurearcdata/sql_server_instances.go deleted file mode 100644 index da3300f9ba248c..00000000000000 --- a/plugins/source/azure/resources/services/azurearcdata/sql_server_instances.go +++ /dev/null @@ -1,39 +0,0 @@ -package azurearcdata - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SqlServerInstances() *schema.Table { - return &schema.Table{ - Name: "azure_azurearcdata_sql_server_instances", - Resolver: fetchSqlServerInstances, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata@v0.5.0#SQLServerInstance", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_azurearcdata_sql_server_instances", client.Namespacemicrosoft_azurearcdata), - Transform: transformers.TransformWithStruct(&armazurearcdata.SQLServerInstance{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSqlServerInstances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armazurearcdata.NewSQLServerInstancesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/azurearcdata/sql_server_instances_mock_test.go b/plugins/source/azure/resources/services/azurearcdata/sql_server_instances_mock_test.go deleted file mode 100644 index 07189ed377fe72..00000000000000 --- a/plugins/source/azure/resources/services/azurearcdata/sql_server_instances_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package azurearcdata - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSqlServerInstances(router *mux.Router) error { - var item armazurearcdata.SQLServerInstancesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.AzureArcData/sqlServerInstances", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSqlServerInstances(t *testing.T) { - client.MockTestHelper(t, SqlServerInstances(), createSqlServerInstances) -} diff --git a/plugins/source/azure/resources/services/batch/account.go b/plugins/source/azure/resources/services/batch/account.go deleted file mode 100644 index ada286dd8b73c5..00000000000000 --- a/plugins/source/azure/resources/services/batch/account.go +++ /dev/null @@ -1,39 +0,0 @@ -package batch - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Account() *schema.Table { - return &schema.Table{ - Name: "azure_batch_account", - Resolver: fetchAccount, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/batchmanagement/batch-account/list?tabs=HTTP#batchaccount", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_batch_account", client.Namespacemicrosoft_batch), - Transform: transformers.TransformWithStruct(&armbatch.Account{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccount(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armbatch.NewAccountClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/batch/account_mock_test.go b/plugins/source/azure/resources/services/batch/account_mock_test.go deleted file mode 100644 index 2e6f2ee88afefe..00000000000000 --- a/plugins/source/azure/resources/services/batch/account_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package batch - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/batch/armbatch" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccount(router *mux.Router) error { - var item armbatch.AccountClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAccount(t *testing.T) { - client.MockTestHelper(t, Account(), createAccount) -} diff --git a/plugins/source/azure/resources/services/billing/accounts.go b/plugins/source/azure/resources/services/billing/accounts.go deleted file mode 100644 index 90ad69d0a45570..00000000000000 --- a/plugins/source/azure/resources/services/billing/accounts.go +++ /dev/null @@ -1,26 +0,0 @@ -package billing - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Accounts() *schema.Table { - return &schema.Table{ - Name: "azure_billing_accounts", - Resolver: fetchAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/billing/2020-05-01/billing-accounts/list?tabs=HTTP#billingaccount", - Transform: transformers.TransformWithStruct(&armbilling.Account{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - // we already fetch all accounts during initialization, so no need to fetch them again - res <- meta.(*client.Client).BillingAccounts - return nil -} diff --git a/plugins/source/azure/resources/services/billing/accounts_mock_test.go b/plugins/source/azure/resources/services/billing/accounts_mock_test.go deleted file mode 100644 index ec269f79749c0d..00000000000000 --- a/plugins/source/azure/resources/services/billing/accounts_mock_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package billing - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/gorilla/mux" -) - -func createAccounts(router *mux.Router) error { - // BillingAccounts are mocked in `MockTestHelper` since those are fetched during initialization - return nil -} - -func TestAccounts(t *testing.T) { - client.MockTestHelper(t, Accounts(), createAccounts) -} diff --git a/plugins/source/azure/resources/services/billing/enrollment_accounts.go b/plugins/source/azure/resources/services/billing/enrollment_accounts.go deleted file mode 100644 index 09a386dc96219d..00000000000000 --- a/plugins/source/azure/resources/services/billing/enrollment_accounts.go +++ /dev/null @@ -1,37 +0,0 @@ -package billing - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func EnrollmentAccounts() *schema.Table { - return &schema.Table{ - Name: "azure_billing_enrollment_accounts", - Resolver: fetchEnrollmentAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling@v0.5.0#EnrollmentAccountSummary", - Transform: transformers.TransformWithStruct(&armbilling.EnrollmentAccountSummary{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchEnrollmentAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armbilling.NewEnrollmentAccountsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/billing/enrollment_accounts_mock_test.go b/plugins/source/azure/resources/services/billing/enrollment_accounts_mock_test.go deleted file mode 100644 index 9dc4e610b0cf81..00000000000000 --- a/plugins/source/azure/resources/services/billing/enrollment_accounts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package billing - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createEnrollmentAccounts(router *mux.Router) error { - var item armbilling.EnrollmentAccountsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Billing/enrollmentAccounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestEnrollmentAccounts(t *testing.T) { - client.MockTestHelper(t, EnrollmentAccounts(), createEnrollmentAccounts) -} diff --git a/plugins/source/azure/resources/services/billing/periods.go b/plugins/source/azure/resources/services/billing/periods.go deleted file mode 100644 index 7c42de13e95333..00000000000000 --- a/plugins/source/azure/resources/services/billing/periods.go +++ /dev/null @@ -1,29 +0,0 @@ -package billing - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Periods() *schema.Table { - return &schema.Table{ - Name: "azure_billing_periods", - Resolver: fetchPeriods, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling@v0.5.0#Period", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_billing_periods", client.Namespacemicrosoft_billing), - Transform: transformers.TransformWithStruct(&armbilling.Period{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPeriods(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - // we already fetch all billing periods during initialization, so no need to fetch them again - cl := meta.(*client.Client) - res <- cl.BillingPeriods[cl.SubscriptionId] - return nil -} diff --git a/plugins/source/azure/resources/services/billing/periods_mock_test.go b/plugins/source/azure/resources/services/billing/periods_mock_test.go deleted file mode 100644 index bdcbbc47eb6d6e..00000000000000 --- a/plugins/source/azure/resources/services/billing/periods_mock_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package billing - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/gorilla/mux" -) - -func createPeriods(router *mux.Router) error { - // BillingPeriods are mocked in `MockTestHelper` since those are fetched during initialization - return nil -} - -func TestPeriods(t *testing.T) { - client.MockTestHelper(t, Periods(), createPeriods) -} diff --git a/plugins/source/azure/resources/services/botservice/bots.go b/plugins/source/azure/resources/services/botservice/bots.go deleted file mode 100644 index bd4a85a6adc8da..00000000000000 --- a/plugins/source/azure/resources/services/botservice/bots.go +++ /dev/null @@ -1,39 +0,0 @@ -package botservice - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Bots() *schema.Table { - return &schema.Table{ - Name: "azure_botservice_bots", - Resolver: fetchBots, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice@v0.5.0#Bot", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_botservice_bots", client.Namespacemicrosoft_botservice), - Transform: transformers.TransformWithStruct(&armbotservice.Bot{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchBots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armbotservice.NewBotsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/botservice/bots_mock_test.go b/plugins/source/azure/resources/services/botservice/bots_mock_test.go deleted file mode 100644 index 9efbb848a1b1de..00000000000000 --- a/plugins/source/azure/resources/services/botservice/bots_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package botservice - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBots(router *mux.Router) error { - var item armbotservice.BotsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBots(t *testing.T) { - client.MockTestHelper(t, Bots(), createBots) -} diff --git a/plugins/source/azure/resources/services/cdn/edge_nodes.go b/plugins/source/azure/resources/services/cdn/edge_nodes.go deleted file mode 100644 index 5298454970f9c5..00000000000000 --- a/plugins/source/azure/resources/services/cdn/edge_nodes.go +++ /dev/null @@ -1,37 +0,0 @@ -package cdn - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func EdgeNodes() *schema.Table { - return &schema.Table{ - Name: "azure_cdn_edge_nodes", - Resolver: fetchEdgeNodes, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cdn/edge-nodes/list?tabs=HTTP#edgenode", - Transform: transformers.TransformWithStruct(&armcdn.EdgeNode{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchEdgeNodes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcdn.NewEdgeNodesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/edge_nodes_mock_test.go b/plugins/source/azure/resources/services/cdn/edge_nodes_mock_test.go deleted file mode 100644 index 0f5f5b20e3e2ea..00000000000000 --- a/plugins/source/azure/resources/services/cdn/edge_nodes_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package cdn - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createEdgeNodes(router *mux.Router) error { - var item armcdn.EdgeNodesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Cdn/edgenodes", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestEdgeNodes(t *testing.T) { - client.MockTestHelper(t, EdgeNodes(), createEdgeNodes) -} diff --git a/plugins/source/azure/resources/services/cdn/endpoints.go b/plugins/source/azure/resources/services/cdn/endpoints.go deleted file mode 100644 index 14f96689949431..00000000000000 --- a/plugins/source/azure/resources/services/cdn/endpoints.go +++ /dev/null @@ -1,19 +0,0 @@ -package cdn - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func endpoints() *schema.Table { - return &schema.Table{ - Name: "azure_cdn_endpoints", - Resolver: fetchEndpoints, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cdn/endpoints/list-by-profile?tabs=HTTP#endpoint", - Transform: transformers.TransformWithStruct(&armcdn.Endpoint{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} diff --git a/plugins/source/azure/resources/services/cdn/endpoints_fetch.go b/plugins/source/azure/resources/services/cdn/endpoints_fetch.go deleted file mode 100644 index 8313d220422f26..00000000000000 --- a/plugins/source/azure/resources/services/cdn/endpoints_fetch.go +++ /dev/null @@ -1,31 +0,0 @@ -package cdn - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - item := parent.Item.(*armcdn.Profile) - svc, err := armcdn.NewEndpointsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*item.ID) - if err != nil { - return err - } - pager := svc.NewListByProfilePager(group, *item.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/endpoints_mock_test.go b/plugins/source/azure/resources/services/cdn/endpoints_mock_test.go deleted file mode 100644 index 794a8a91e02d3b..00000000000000 --- a/plugins/source/azure/resources/services/cdn/endpoints_mock_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package cdn - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createEndpoints(router *mux.Router) error { - var item armcdn.EndpointsClientListByProfileResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/managed_rule_sets.go b/plugins/source/azure/resources/services/cdn/managed_rule_sets.go deleted file mode 100644 index f4f02304685a7d..00000000000000 --- a/plugins/source/azure/resources/services/cdn/managed_rule_sets.go +++ /dev/null @@ -1,39 +0,0 @@ -package cdn - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ManagedRuleSets() *schema.Table { - return &schema.Table{ - Name: "azure_cdn_managed_rule_sets", - Resolver: fetchManagedRuleSets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn@v1.0.0#ManagedRuleSetDefinition", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cdn_managed_rule_sets", client.Namespacemicrosoft_cdn), - Transform: transformers.TransformWithStruct(&armcdn.ManagedRuleSetDefinition{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchManagedRuleSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcdn.NewManagedRuleSetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/managed_rule_sets_mock_test.go b/plugins/source/azure/resources/services/cdn/managed_rule_sets_mock_test.go deleted file mode 100644 index cd5472f35d17d8..00000000000000 --- a/plugins/source/azure/resources/services/cdn/managed_rule_sets_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package cdn - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createManagedRuleSets(router *mux.Router) error { - var item armcdn.ManagedRuleSetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/cdnWebApplicationFirewallManagedRuleSets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestManagedRuleSets(t *testing.T) { - client.MockTestHelper(t, ManagedRuleSets(), createManagedRuleSets) -} diff --git a/plugins/source/azure/resources/services/cdn/profiles.go b/plugins/source/azure/resources/services/cdn/profiles.go deleted file mode 100644 index 309af82094fd4f..00000000000000 --- a/plugins/source/azure/resources/services/cdn/profiles.go +++ /dev/null @@ -1,45 +0,0 @@ -package cdn - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Profiles() *schema.Table { - return &schema.Table{ - Name: "azure_cdn_profiles", - Resolver: fetchProfiles, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cdn/profiles/list?tabs=HTTP#profile", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cdn_profiles", client.Namespacemicrosoft_cdn), - Transform: transformers.TransformWithStruct(&armcdn.Profile{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - - Relations: []*schema.Table{ - endpoints(), - rule_sets(), - security_policies(), - }, - } -} - -func fetchProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcdn.NewProfilesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/profiles_mock_test.go b/plugins/source/azure/resources/services/cdn/profiles_mock_test.go deleted file mode 100644 index aaf8cdc8292c2c..00000000000000 --- a/plugins/source/azure/resources/services/cdn/profiles_mock_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package cdn - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createProfiles(router *mux.Router) error { - var item armcdn.ProfilesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Cdn/profiles", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - if err := createEndpoints(router); err != nil { - return err - } - if err := createRuleSets(router); err != nil { - return err - } - return createSecurityPolicies(router) -} - -func TestProfiles(t *testing.T) { - client.MockTestHelper(t, Profiles(), createProfiles) -} diff --git a/plugins/source/azure/resources/services/cdn/rule_sets.go b/plugins/source/azure/resources/services/cdn/rule_sets.go deleted file mode 100644 index f374dacef81fe2..00000000000000 --- a/plugins/source/azure/resources/services/cdn/rule_sets.go +++ /dev/null @@ -1,19 +0,0 @@ -package cdn - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func rule_sets() *schema.Table { - return &schema.Table{ - Name: "azure_cdn_rule_sets", - Resolver: fetchRuleSets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn@v1.0.0#RuleSet", - Transform: transformers.TransformWithStruct(&armcdn.RuleSet{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} diff --git a/plugins/source/azure/resources/services/cdn/rule_sets_fetch.go b/plugins/source/azure/resources/services/cdn/rule_sets_fetch.go deleted file mode 100644 index 5137e293a28025..00000000000000 --- a/plugins/source/azure/resources/services/cdn/rule_sets_fetch.go +++ /dev/null @@ -1,31 +0,0 @@ -package cdn - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchRuleSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - item := parent.Item.(*armcdn.Profile) - svc, err := armcdn.NewRuleSetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*item.ID) - if err != nil { - return err - } - pager := svc.NewListByProfilePager(group, *item.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/rule_sets_mock.go b/plugins/source/azure/resources/services/cdn/rule_sets_mock.go deleted file mode 100644 index 616bfb2c5d4835..00000000000000 --- a/plugins/source/azure/resources/services/cdn/rule_sets_mock.go +++ /dev/null @@ -1,33 +0,0 @@ -package cdn - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRuleSets(router *mux.Router) error { - var item armcdn.RuleSetsClientListByProfileResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/security_policies.go b/plugins/source/azure/resources/services/cdn/security_policies.go deleted file mode 100644 index 04572992133eb1..00000000000000 --- a/plugins/source/azure/resources/services/cdn/security_policies.go +++ /dev/null @@ -1,19 +0,0 @@ -package cdn - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func security_policies() *schema.Table { - return &schema.Table{ - Name: "azure_cdn_security_policies", - Resolver: fetchSecurityPolicies, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn@v1.0.0#SecurityPolicy", - Transform: transformers.TransformWithStruct(&armcdn.SecurityPolicy{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} diff --git a/plugins/source/azure/resources/services/cdn/security_policies_fetch.go b/plugins/source/azure/resources/services/cdn/security_policies_fetch.go deleted file mode 100644 index 51a5bbf816a270..00000000000000 --- a/plugins/source/azure/resources/services/cdn/security_policies_fetch.go +++ /dev/null @@ -1,31 +0,0 @@ -package cdn - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchSecurityPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - item := parent.Item.(*armcdn.Profile) - svc, err := armcdn.NewSecurityPoliciesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*item.ID) - if err != nil { - return err - } - pager := svc.NewListByProfilePager(group, *item.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cdn/security_policies_mock_test.go b/plugins/source/azure/resources/services/cdn/security_policies_mock_test.go deleted file mode 100644 index 7cf86410fa948d..00000000000000 --- a/plugins/source/azure/resources/services/cdn/security_policies_mock_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package cdn - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSecurityPolicies(router *mux.Router) error { - var item armcdn.SecurityPoliciesClientListByProfileResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_deployments.go b/plugins/source/azure/resources/services/cognitiveservices/account_deployments.go deleted file mode 100644 index 5cc5c3812ec55f..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_deployments.go +++ /dev/null @@ -1,44 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func accountDeployments() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_account_deployments", - Resolver: fetchAccountDeployments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/deployments/list?tabs=HTTP#deployment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_skus", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.Deployment{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccountDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armcognitiveservices.Account) - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewDeploymentsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_deployments_test.go b/plugins/source/azure/resources/services/cognitiveservices/account_deployments_test.go deleted file mode 100644 index f8e9635a73c4da..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_deployments_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccountDeployments(router *mux.Router) error { - var item armcognitiveservices.DeploymentsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/deployments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_private_endpoint_connections.go b/plugins/source/azure/resources/services/cognitiveservices/account_private_endpoint_connections.go deleted file mode 100644 index 63abccda0cceb7..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_private_endpoint_connections.go +++ /dev/null @@ -1,41 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func accountPrivateEndpointConnections() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_account_private_endpoint_connections", - Resolver: fetchAccountPrivateEndpointConnections, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/private-endpoint-connections/list?tabs=HTTP#privateendpointconnection", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_private_endpoint_connections", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.PrivateEndpointConnection{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccountPrivateEndpointConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armcognitiveservices.Account) - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewPrivateEndpointConnectionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - resp, err := svc.List(ctx, group, *p.Name, nil) - if err != nil { - return err - } - res <- resp.Value - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_private_endpoint_connections_test.go b/plugins/source/azure/resources/services/cognitiveservices/account_private_endpoint_connections_test.go deleted file mode 100644 index be481384e41cf9..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_private_endpoint_connections_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccountPrivateEndpointConnections(router *mux.Router) error { - var item armcognitiveservices.PrivateEndpointConnectionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateEndpointConnections", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_private_link_resources.go b/plugins/source/azure/resources/services/cognitiveservices/account_private_link_resources.go deleted file mode 100644 index 97aea793c5e477..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_private_link_resources.go +++ /dev/null @@ -1,41 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func accountPrivateLinkResources() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_account_private_link_resources", - Resolver: fetchAccountPrivateLinkResources, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/private-link-resources/list?tabs=HTTP#privatelinkresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_private_link_resources", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.PrivateLinkResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccountPrivateLinkResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armcognitiveservices.Account) - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewPrivateLinkResourcesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - resp, err := svc.List(ctx, group, *p.Name, nil) - if err != nil { - return err - } - res <- resp.Value - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_private_link_resources_test.go b/plugins/source/azure/resources/services/cognitiveservices/account_private_link_resources_test.go deleted file mode 100644 index 9bc7d6486f304e..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_private_link_resources_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccountPrivateLinkResources(router *mux.Router) error { - var item armcognitiveservices.PrivateLinkResourcesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_skus.go b/plugins/source/azure/resources/services/cognitiveservices/account_skus.go deleted file mode 100644 index d70108e9176396..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_skus.go +++ /dev/null @@ -1,49 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/apache/arrow/go/v15/arrow" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func accountSKUs() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_account_skus", - Resolver: fetchAccountSKUs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list-skus?tabs=HTTP#accountsku", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_skus", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.AccountSKU{}), - Columns: schema.ColumnList{ - client.SubscriptionID, - schema.Column{ - Name: "account_id", - Type: arrow.BinaryTypes.String, - Resolver: schema.ParentColumnResolver("id"), - }, - }, - } -} - -func fetchAccountSKUs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armcognitiveservices.Account) - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - resp, err := svc.ListSKUs(ctx, group, *p.Name, nil) - if err != nil { - return err - } - res <- resp.Value - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_skus_models.go b/plugins/source/azure/resources/services/cognitiveservices/account_skus_models.go deleted file mode 100644 index 972bb045d25085..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_skus_models.go +++ /dev/null @@ -1,52 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/apache/arrow/go/v15/arrow" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func accountModels() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_account_models", - Resolver: fetchAccountModels, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices@v1.3.0#AccountModel", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_models", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.AccountModel{}), - Columns: schema.ColumnList{ - client.SubscriptionID, - schema.Column{ - Name: "account_id", - Type: arrow.BinaryTypes.String, - Resolver: schema.ParentColumnResolver("id"), - }, - }, - } -} - -func fetchAccountModels(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armcognitiveservices.Account) - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListModelsPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_skus_models_test.go b/plugins/source/azure/resources/services/cognitiveservices/account_skus_models_test.go deleted file mode 100644 index a18d6b154e7fa9..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_skus_models_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccountModels(router *mux.Router) error { - var item armcognitiveservices.AccountsClientListModelsResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/models", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_skus_test.go b/plugins/source/azure/resources/services/cognitiveservices/account_skus_test.go deleted file mode 100644 index 2ee2740635138d..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_skus_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccountSKUs(router *mux.Router) error { - var item armcognitiveservices.AccountsClientListSKUsResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/skus", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_usages.go b/plugins/source/azure/resources/services/cognitiveservices/account_usages.go deleted file mode 100644 index f95df6e7a6aa6f..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_usages.go +++ /dev/null @@ -1,49 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/apache/arrow/go/v15/arrow" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func accountUsages() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_account_usages", - Resolver: fetchAccountUsages, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list-usages?tabs=HTTP#usage", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_account_usages", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.Usage{}), - Columns: schema.ColumnList{ - client.SubscriptionID, - schema.Column{ - Name: "account_id", - Type: arrow.BinaryTypes.String, - Resolver: schema.ParentColumnResolver("id"), - }, - }, - } -} - -func fetchAccountUsages(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armcognitiveservices.Account) - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - resp, err := svc.ListUsages(ctx, group, *p.Name, nil) - if err != nil { - return err - } - res <- resp.Value - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/account_usages_test.go b/plugins/source/azure/resources/services/cognitiveservices/account_usages_test.go deleted file mode 100644 index f38307bc669d4e..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/account_usages_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccountUsages(router *mux.Router) error { - var item armcognitiveservices.AccountsClientListUsagesResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/usages", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/accounts.go b/plugins/source/azure/resources/services/cognitiveservices/accounts.go deleted file mode 100644 index 8a91f5b841fcdd..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/accounts.go +++ /dev/null @@ -1,47 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Accounts() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_accounts", - Resolver: fetchAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/accounts/list?tabs=HTTP#account", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_accounts", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.Account{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: schema.Tables{ - accountSKUs(), - accountUsages(), - accountModels(), - accountDeployments(), - accountPrivateEndpointConnections(), - accountPrivateLinkResources(), - }, - } -} - -func fetchAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/accounts_mock_test.go b/plugins/source/azure/resources/services/cognitiveservices/accounts_mock_test.go deleted file mode 100644 index 0e5073de0ca622..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/accounts_mock_test.go +++ /dev/null @@ -1,62 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccounts(router *mux.Router) error { - var item armcognitiveservices.AccountsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/accounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - if err := createAccountDeployments(router); err != nil { - return err - } - - if err := createAccountPrivateEndpointConnections(router); err != nil { - return err - } - - if err := createAccountPrivateLinkResources(router); err != nil { - return err - } - - if err := createAccountModels(router); err != nil { - return err - } - - if err := createAccountUsages(router); err != nil { - return err - } - - return createAccountSKUs(router) -} - -func TestAccounts(t *testing.T) { - client.MockTestHelper(t, Accounts(), createAccounts) -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/commitment_plans.go b/plugins/source/azure/resources/services/cognitiveservices/commitment_plans.go deleted file mode 100644 index 864b91d7bd7739..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/commitment_plans.go +++ /dev/null @@ -1,39 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func CommitmentPlans() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_commitment_plans", - Resolver: fetchCommitmentPlans, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/commitment-plans/list?tabs=HTTP#commitmentplan", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_commitment_plans", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.CommitmentPlan{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchCommitmentPlans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewCommitmentPlansClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPlansBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/commitment_plans_test.go b/plugins/source/azure/resources/services/cognitiveservices/commitment_plans_test.go deleted file mode 100644 index 1bdbffd780a3ab..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/commitment_plans_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createCommitmentPlans(router *mux.Router) error { - var item armcognitiveservices.CommitmentPlansClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/commitmentPlans", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestCommitmentPlans(t *testing.T) { - client.MockTestHelper(t, CommitmentPlans(), createCommitmentPlans) -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/deleted_accounts.go b/plugins/source/azure/resources/services/cognitiveservices/deleted_accounts.go deleted file mode 100644 index c40ff10658550e..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/deleted_accounts.go +++ /dev/null @@ -1,39 +0,0 @@ -package cognitiveservices - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DeletedAccounts() *schema.Table { - return &schema.Table{ - Name: "azure_cognitiveservices_deleted_accounts", - Resolver: fetchDeletedAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cognitiveservices/accountmanagement/deleted-accounts/list?tabs=HTTP#account", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_cognitiveservices_deleted_accounts", client.Namespacemicrosoft_cognitiveservices), - Transform: transformers.TransformWithStruct(&armcognitiveservices.Account{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDeletedAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcognitiveservices.NewDeletedAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/cognitiveservices/deleted_accounts_mock_test.go b/plugins/source/azure/resources/services/cognitiveservices/deleted_accounts_mock_test.go deleted file mode 100644 index 1c6c99e95060a3..00000000000000 --- a/plugins/source/azure/resources/services/cognitiveservices/deleted_accounts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package cognitiveservices - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDeletedAccounts(router *mux.Router) error { - var item armcognitiveservices.DeletedAccountsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/deletedAccounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDeletedAccounts(t *testing.T) { - client.MockTestHelper(t, DeletedAccounts(), createDeletedAccounts) -} diff --git a/plugins/source/azure/resources/services/confluent/marketplace_agreements.go b/plugins/source/azure/resources/services/confluent/marketplace_agreements.go deleted file mode 100644 index d0182aa8f40c13..00000000000000 --- a/plugins/source/azure/resources/services/confluent/marketplace_agreements.go +++ /dev/null @@ -1,39 +0,0 @@ -package confluent - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func MarketplaceAgreements() *schema.Table { - return &schema.Table{ - Name: "azure_confluent_marketplace_agreements", - Resolver: fetchMarketplaceAgreements, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/confluent/marketplace-agreements/list?tabs=HTTP#confluentagreementresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_confluent_marketplace_agreements", client.Namespacemicrosoft_confluent), - Transform: transformers.TransformWithStruct(&armconfluent.AgreementResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchMarketplaceAgreements(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconfluent.NewMarketplaceAgreementsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/confluent/marketplace_agreements_mock_test.go b/plugins/source/azure/resources/services/confluent/marketplace_agreements_mock_test.go deleted file mode 100644 index 6e38d7f9caae39..00000000000000 --- a/plugins/source/azure/resources/services/confluent/marketplace_agreements_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package confluent - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createMarketplaceAgreements(router *mux.Router) error { - var item armconfluent.MarketplaceAgreementsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestMarketplaceAgreements(t *testing.T) { - client.MockTestHelper(t, MarketplaceAgreements(), createMarketplaceAgreements) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/clusters.go b/plugins/source/azure/resources/services/connectedvmware/clusters.go deleted file mode 100644 index aaef6c8f927a1d..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/clusters.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Clusters() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_clusters", - Resolver: fetchClusters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#Cluster", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_clusters", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.Cluster{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/clusters_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/clusters_mock_test.go deleted file mode 100644 index 6a2c72fd563669..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/clusters_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createClusters(router *mux.Router) error { - var item armconnectedvmware.ClustersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/clusters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestClusters(t *testing.T) { - client.MockTestHelper(t, Clusters(), createClusters) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/datastores.go b/plugins/source/azure/resources/services/connectedvmware/datastores.go deleted file mode 100644 index 46bd4d9f1868c7..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/datastores.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Datastores() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_datastores", - Resolver: fetchDatastores, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#Datastore", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_datastores", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.Datastore{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDatastores(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewDatastoresClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/datastores_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/datastores_mock_test.go deleted file mode 100644 index e5f236dac7ce69..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/datastores_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDatastores(router *mux.Router) error { - var item armconnectedvmware.DatastoresClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/datastores", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDatastores(t *testing.T) { - client.MockTestHelper(t, Datastores(), createDatastores) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/hosts.go b/plugins/source/azure/resources/services/connectedvmware/hosts.go deleted file mode 100644 index fd7c030c9af5d1..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/hosts.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Hosts() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_hosts", - Resolver: fetchHosts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#Host", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_hosts", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.Host{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchHosts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewHostsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/hosts_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/hosts_mock_test.go deleted file mode 100644 index 3f31ad30d56e78..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/hosts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createHosts(router *mux.Router) error { - var item armconnectedvmware.HostsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/hosts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestHosts(t *testing.T) { - client.MockTestHelper(t, Hosts(), createHosts) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/resource_pools.go b/plugins/source/azure/resources/services/connectedvmware/resource_pools.go deleted file mode 100644 index b1342af17f7dac..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/resource_pools.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ResourcePools() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_resource_pools", - Resolver: fetchResourcePools, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#ResourcePool", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_resource_pools", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.ResourcePool{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchResourcePools(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewResourcePoolsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/resource_pools_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/resource_pools_mock_test.go deleted file mode 100644 index 61e9716d4c3b15..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/resource_pools_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createResourcePools(router *mux.Router) error { - var item armconnectedvmware.ResourcePoolsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestResourcePools(t *testing.T) { - client.MockTestHelper(t, ResourcePools(), createResourcePools) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/v_centers.go b/plugins/source/azure/resources/services/connectedvmware/v_centers.go deleted file mode 100644 index 6fda9253841c87..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/v_centers.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VCenters() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_v_centers", - Resolver: fetchVCenters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VCenter", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_v_centers", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.VCenter{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVCenters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewVCentersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/v_centers_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/v_centers_mock_test.go deleted file mode 100644 index 2319d84b9cc5a2..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/v_centers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVCenters(router *mux.Router) error { - var item armconnectedvmware.VCentersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/vcenters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVCenters(t *testing.T) { - client.MockTestHelper(t, VCenters(), createVCenters) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/virtual_machine_templates.go b/plugins/source/azure/resources/services/connectedvmware/virtual_machine_templates.go deleted file mode 100644 index bc6a6762e406f7..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/virtual_machine_templates.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualMachineTemplates() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_virtual_machine_templates", - Resolver: fetchVirtualMachineTemplates, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VirtualMachineTemplate", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_virtual_machine_templates", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.VirtualMachineTemplate{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualMachineTemplates(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewVirtualMachineTemplatesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/virtual_machine_templates_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/virtual_machine_templates_mock_test.go deleted file mode 100644 index ca88b85fe682ed..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/virtual_machine_templates_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualMachineTemplates(router *mux.Router) error { - var item armconnectedvmware.VirtualMachineTemplatesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualMachineTemplates(t *testing.T) { - client.MockTestHelper(t, VirtualMachineTemplates(), createVirtualMachineTemplates) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/virtual_machines.go b/plugins/source/azure/resources/services/connectedvmware/virtual_machines.go deleted file mode 100644 index ec229ecbf5571d..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/virtual_machines.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualMachines() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_virtual_machines", - Resolver: fetchVirtualMachines, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VirtualMachine", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_virtual_machines", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.VirtualMachine{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualMachines(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewVirtualMachinesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/virtual_machines_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/virtual_machines_mock_test.go deleted file mode 100644 index 0c0ccca16b5a39..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/virtual_machines_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualMachines(router *mux.Router) error { - var item armconnectedvmware.VirtualMachinesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualMachines(t *testing.T) { - client.MockTestHelper(t, VirtualMachines(), createVirtualMachines) -} diff --git a/plugins/source/azure/resources/services/connectedvmware/virtual_networks.go b/plugins/source/azure/resources/services/connectedvmware/virtual_networks.go deleted file mode 100644 index 18c0d3f7df27ff..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/virtual_networks.go +++ /dev/null @@ -1,39 +0,0 @@ -package connectedvmware - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualNetworks() *schema.Table { - return &schema.Table{ - Name: "azure_connectedvmware_virtual_networks", - Resolver: fetchVirtualNetworks, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware@v0.1.0#VirtualNetwork", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_connectedvmware_virtual_networks", client.Namespacemicrosoft_connectedvmwarevsphere), - Transform: transformers.TransformWithStruct(&armconnectedvmware.VirtualNetwork{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualNetworks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconnectedvmware.NewVirtualNetworksClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/connectedvmware/virtual_networks_mock_test.go b/plugins/source/azure/resources/services/connectedvmware/virtual_networks_mock_test.go deleted file mode 100644 index 04ac3672126937..00000000000000 --- a/plugins/source/azure/resources/services/connectedvmware/virtual_networks_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package connectedvmware - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualNetworks(router *mux.Router) error { - var item armconnectedvmware.VirtualNetworksClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualNetworks(t *testing.T) { - client.MockTestHelper(t, VirtualNetworks(), createVirtualNetworks) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_balances.go b/plugins/source/azure/resources/services/consumption/billing_account_balances.go deleted file mode 100644 index 1b8c212fdb2b9d..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_balances.go +++ /dev/null @@ -1,43 +0,0 @@ -package consumption - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountBalances() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_balances", - Resolver: fetchBillingAccountBalances, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/balances/get-by-billing-account?tabs=HTTP#balance", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.Balance{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountBalances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewBalancesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - resp, err := svc.GetByBillingAccount(ctx, *cl.BillingAccount.Name, nil) - if err != nil { - var respError *azcore.ResponseError - // If there's no data a 404 error is returned so we ignore it - if errors.As(err, &respError) && respError.StatusCode == 404 { - cl.Logger().Debug().Msg("No data for billing account balances") - return nil - } - return err - } - res <- resp.Balance - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_balances_test.go b/plugins/source/azure/resources/services/consumption/billing_account_balances_test.go deleted file mode 100644 index fe38c6353a7141..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_balances_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountBalances(router *mux.Router) error { - var item armconsumption.BalancesClientGetByBillingAccountResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/balances", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountBalances(t *testing.T) { - client.MockTestHelper(t, BillingAccountBalances(), createBillingAccountBalances) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_budgets.go b/plugins/source/azure/resources/services/consumption/billing_account_budgets.go deleted file mode 100644 index 34d5359d6b9eb3..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_budgets.go +++ /dev/null @@ -1,38 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountBudgets() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_budgets", - Resolver: fetchBillingAccountBudgets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/budgets/list?tabs=HTTP#budget", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.Budget{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountBudgets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewBudgetsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingAccount.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_budgets_test.go b/plugins/source/azure/resources/services/consumption/billing_account_budgets_test.go deleted file mode 100644 index cb5852f022c67d..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_budgets_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountBudgets(router *mux.Router) error { - var item armconsumption.BudgetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/budgets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountBudgets(t *testing.T) { - client.MockTestHelper(t, BillingAccountBudgets(), createBillingAccountBudgets) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_charges.go b/plugins/source/azure/resources/services/consumption/billing_account_charges.go deleted file mode 100644 index 27589f18fc9b39..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_charges.go +++ /dev/null @@ -1,37 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountCharges() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_charges", - Resolver: fetchBillingAccountCharges, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/charges/list?tabs=HTTP#modernchargesummary", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.ModernChargeSummary{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountCharges(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewChargesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - resp, err := svc.List(ctx, *cl.BillingAccount.ID, nil) - if err != nil { - return err - } - for _, v := range resp.Value { - res <- v.(*armconsumption.ModernChargeSummary) - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_charges_test.go b/plugins/source/azure/resources/services/consumption/billing_account_charges_test.go deleted file mode 100644 index 4a88f18bd777e0..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_charges_test.go +++ /dev/null @@ -1,47 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountCharges(router *mux.Router) error { - var item armconsumption.ModernChargeSummary - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Kind = to.Ptr(armconsumption.ChargeSummaryKindModern) - - resp := armconsumption.ChargesClientListResponse{ - ChargesListResult: armconsumption.ChargesListResult{ - // Value is an interface{} so we can't mock it directly - Value: []armconsumption.ChargeSummaryClassification{&item}, - }, - } - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/charges", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountCharges(t *testing.T) { - client.MockTestHelper(t, BillingAccountCharges(), createBillingAccountCharges) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_events.go b/plugins/source/azure/resources/services/consumption/billing_account_events.go deleted file mode 100644 index ee69f9d421218e..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_events.go +++ /dev/null @@ -1,46 +0,0 @@ -package consumption - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountEvents() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_events", - Resolver: fetchBillingAccountEvents, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/events/list-by-billing-account?tabs=HTTP#eventsummary", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.EventSummary{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountEvents(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewEventsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListByBillingAccountPager(*cl.BillingAccount.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - var respError *azcore.ResponseError - // If there's no data a 404 error is returned so we ignore it - if errors.As(err, &respError) && respError.StatusCode == 404 { - cl.Logger().Debug().Msg("No data for billing account events") - return nil - } - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_events_test.go b/plugins/source/azure/resources/services/consumption/billing_account_events_test.go deleted file mode 100644 index f3850e1cbea4d9..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_events_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountEvents(router *mux.Router) error { - var item armconsumption.EventsClientListByBillingAccountResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/events", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountEvents(t *testing.T) { - client.MockTestHelper(t, BillingAccountEvents(), createBillingAccountEvents) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_legacy_usage_details.go b/plugins/source/azure/resources/services/consumption/billing_account_legacy_usage_details.go deleted file mode 100644 index aa62530a240c94..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_legacy_usage_details.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountLegacyUsageDetails() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_legacy_usage_details", - Resolver: fetchBillingAccountLegacyUsageDetails, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#legacyusagedetail", - Multiplex: client.LegacyBillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.LegacyUsageDetail{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountLegacyUsageDetails(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewUsageDetailsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingAccount.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - for _, v := range p.Value { - res <- v.(*armconsumption.LegacyUsageDetail) - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_legacy_usage_details_test.go b/plugins/source/azure/resources/services/consumption/billing_account_legacy_usage_details_test.go deleted file mode 100644 index 3bf1b1380afeca..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_legacy_usage_details_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountLegacyUsageDetails(router *mux.Router) error { - var item armconsumption.LegacyUsageDetail - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Kind = to.Ptr(armconsumption.UsageDetailsKindLegacy) - - resp := armconsumption.UsageDetailsClientListResponse{ - UsageDetailsListResult: armconsumption.UsageDetailsListResult{ - // Value is an interface{} so we can't mock it directly - Value: []armconsumption.UsageDetailClassification{&item}, - }, - } - resp.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/"+client.LegacyAccountName+"/providers/Microsoft.Consumption/usageDetails", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountLegacyUsageDetails(t *testing.T) { - client.MockTestHelper(t, BillingAccountLegacyUsageDetails(), createBillingAccountLegacyUsageDetails) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_lots.go b/plugins/source/azure/resources/services/consumption/billing_account_lots.go deleted file mode 100644 index e8a61e15111e58..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_lots.go +++ /dev/null @@ -1,46 +0,0 @@ -package consumption - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountLots() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_lots", - Resolver: fetchBillingAccountLots, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/lots/list-by-billing-account?tabs=HTTP#lotsummary", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.LotSummary{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountLots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewLotsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListByBillingAccountPager(*cl.BillingAccount.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - var respError *azcore.ResponseError - // If there's no data a 404 error is returned so we ignore it - if errors.As(err, &respError) && respError.StatusCode == 404 { - cl.Logger().Debug().Msg("No data for billing account lots") - return nil - } - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_lots_test.go b/plugins/source/azure/resources/services/consumption/billing_account_lots_test.go deleted file mode 100644 index b63ed5543dd2ba..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_lots_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountLots(router *mux.Router) error { - var item armconsumption.LotsClientListByBillingAccountResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/lots", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountLots(t *testing.T) { - client.MockTestHelper(t, BillingAccountLots(), createBillingAccountLots) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_marketplaces.go b/plugins/source/azure/resources/services/consumption/billing_account_marketplaces.go deleted file mode 100644 index cd7978484eac38..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_marketplaces.go +++ /dev/null @@ -1,38 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountMarketplaces() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_marketplaces", - Resolver: fetchBillingAccountMarketplaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/marketplaces/list?tabs=HTTP#marketplace", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.Marketplace{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountMarketplaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewMarketplacesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingAccount.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_marketplaces_test.go b/plugins/source/azure/resources/services/consumption/billing_account_marketplaces_test.go deleted file mode 100644 index 9c2d33d492770b..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_marketplaces_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountMarketplaces(router *mux.Router) error { - var item armconsumption.MarketplacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/marketplaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountMarketplaces(t *testing.T) { - client.MockTestHelper(t, BillingAccountMarketplaces(), createBillingAccountMarketplaces) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_modern_usage_details.go b/plugins/source/azure/resources/services/consumption/billing_account_modern_usage_details.go deleted file mode 100644 index b87d951e103e59..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_modern_usage_details.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountModernUsageDetails() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_modern_usage_details", - Resolver: fetchBillingAccountModernUsageDetails, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#modernusagedetail", - Multiplex: client.ModernBillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.ModernUsageDetail{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountModernUsageDetails(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewUsageDetailsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingAccount.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - for _, v := range p.Value { - res <- v.(*armconsumption.ModernUsageDetail) - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_modern_usage_details_test.go b/plugins/source/azure/resources/services/consumption/billing_account_modern_usage_details_test.go deleted file mode 100644 index d9d34f80b6a46d..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_modern_usage_details_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountModernUsageDetails(router *mux.Router) error { - var item armconsumption.ModernUsageDetail - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Kind = to.Ptr(armconsumption.UsageDetailsKindModern) - - resp := armconsumption.UsageDetailsClientListResponse{ - UsageDetailsListResult: armconsumption.UsageDetailsListResult{ - // Value is an interface{} so we can't mock it directly - Value: []armconsumption.UsageDetailClassification{&item}, - }, - } - resp.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/"+client.ModernAccountName+"/providers/Microsoft.Consumption/usageDetails", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountModernUsageDetails(t *testing.T) { - client.MockTestHelper(t, BillingAccountModernUsageDetails(), createBillingAccountModernUsageDetails) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_reservation_recommendations.go b/plugins/source/azure/resources/services/consumption/billing_account_reservation_recommendations.go deleted file mode 100644 index 8614b01a663fcf..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_reservation_recommendations.go +++ /dev/null @@ -1,48 +0,0 @@ -package consumption - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountReservationRecommendations() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_reservation_recommendations", - Resolver: fetchBillingAccountReservationRecommendations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/reservation-recommendations/list?tabs=HTTP#legacyreservationrecommendation", - Multiplex: client.LegacyBillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.LegacyReservationRecommendation{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountReservationRecommendations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewReservationRecommendationsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingAccount.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - var respError *azcore.ResponseError - // If there's no data a 204 error is returned so we ignore it - if errors.As(err, &respError) && respError.StatusCode == 204 { - cl.Logger().Debug().Msg("No data for billing profile reservation recommendations") - return nil - } - return err - } - for _, v := range p.Value { - res <- v.(*armconsumption.LegacyReservationRecommendation) - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_reservation_recommendations_test.go b/plugins/source/azure/resources/services/consumption/billing_account_reservation_recommendations_test.go deleted file mode 100644 index 35ea44c4d3d168..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_reservation_recommendations_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountReservationRecommendations(router *mux.Router) error { - var item armconsumption.LegacyReservationRecommendation - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Kind = to.Ptr(armconsumption.ReservationRecommendationKindLegacy) - - resp := armconsumption.ReservationRecommendationsClientListResponse{ - ReservationRecommendationsListResult: armconsumption.ReservationRecommendationsListResult{ - Value: []armconsumption.ReservationRecommendationClassification{&item}, - }, - } - resp.NextLink = to.Ptr("") - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/reservationRecommendations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountReservationRecommendations(t *testing.T) { - client.MockTestHelper(t, BillingAccountReservationRecommendations(), createBillingAccountReservationRecommendations) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_tags.go b/plugins/source/azure/resources/services/consumption/billing_account_tags.go deleted file mode 100644 index 9e6f6febbd5e2b..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_tags.go +++ /dev/null @@ -1,35 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingAccountTags() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_account_tags", - Resolver: fetchBillingAccountTags, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/tags/get?tabs=HTTP#tagsresult", - Multiplex: client.BillingAccountMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.TagsResult{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingAccountTags(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewTagsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - resp, err := svc.Get(ctx, *cl.BillingAccount.ID, nil) - if err != nil { - return err - } - res <- resp.TagsResult - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_account_tags_test.go b/plugins/source/azure/resources/services/consumption/billing_account_tags_test.go deleted file mode 100644 index cf70ad0d679867..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_account_tags_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingAccountTags(router *mux.Router) error { - var resp armconsumption.TagsClientGetResponse - if err := faker.FakeObject(&resp); err != nil { - return err - } - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Consumption/tags", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingAccountTags(t *testing.T) { - client.MockTestHelper(t, BillingAccountTags(), createBillingAccountTags) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_details.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_details.go deleted file mode 100644 index 7b4606e32ae6cc..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_details.go +++ /dev/null @@ -1,41 +0,0 @@ -package consumption - -import ( - "context" - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingProfileReservationDetails() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_profile_reservation_details", - Resolver: fetchBillingProfileReservationDetails, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/reservations-details/list?tabs=HTTP#reservationdetail", - Multiplex: client.BillingAccountProfileMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.ReservationDetail{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingProfileReservationDetails(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewReservationsDetailsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - today := to.Ptr(time.Now().UTC().AddDate(0, 0, 1).Format("2006-01-02")) - pager := svc.NewListPager(*cl.BillingProfile.ID, &armconsumption.ReservationsDetailsClientListOptions{StartDate: to.Ptr("2000-01-01"), EndDate: today}) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_details_test.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_details_test.go deleted file mode 100644 index 60ed715295224b..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_details_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingProfileReservationDetails(router *mux.Router) error { - var item armconsumption.ReservationsDetailsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{profileId}/providers/Microsoft.Consumption/reservationDetails", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingProfileReservationDetails(t *testing.T) { - client.MockTestHelper(t, BillingProfileReservationDetails(), createBillingProfileReservationDetails) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_recommendations.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_recommendations.go deleted file mode 100644 index 67c866ecc18192..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_recommendations.go +++ /dev/null @@ -1,48 +0,0 @@ -package consumption - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingProfileReservationRecommendations() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_profile_reservation_recommendations", - Resolver: fetchBillingProfileReservationRecommendations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/reservation-recommendations/list?tabs=HTTP#modernreservationrecommendation", - Multiplex: client.BillingAccountProfileMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.ModernReservationRecommendation{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingProfileReservationRecommendations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewReservationRecommendationsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingProfile.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - var respError *azcore.ResponseError - // If there's no data a 204 error is returned so we ignore it - if errors.As(err, &respError) && respError.StatusCode == 204 { - cl.Logger().Debug().Msg("No data for billing profile reservation recommendations") - return nil - } - return err - } - for _, v := range p.Value { - res <- v.(*armconsumption.ModernReservationRecommendation) - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_recommendations_test.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_recommendations_test.go deleted file mode 100644 index 5ca74522537451..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_recommendations_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingProfileReservationRecommendations(router *mux.Router) error { - var item armconsumption.ModernReservationRecommendation - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Kind = to.Ptr(armconsumption.ReservationRecommendationKindModern) - - resp := armconsumption.ReservationRecommendationsClientListResponse{ - ReservationRecommendationsListResult: armconsumption.ReservationRecommendationsListResult{ - Value: []armconsumption.ReservationRecommendationClassification{&item}, - }, - } - resp.NextLink = to.Ptr("") - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{profileId}/providers/Microsoft.Consumption/reservationRecommendations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingProfileReservationRecommendations(t *testing.T) { - client.MockTestHelper(t, BillingProfileReservationRecommendations(), createBillingProfileReservationRecommendations) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_summaries.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_summaries.go deleted file mode 100644 index 65fed74884c52c..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_summaries.go +++ /dev/null @@ -1,41 +0,0 @@ -package consumption - -import ( - "context" - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingProfileReservationSummaries() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_profile_reservation_summaries", - Resolver: fetchBillingProfileReservationSummaries, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/reservations-summaries/list?tabs=HTTP#reservationsummary", - Multiplex: client.BillingAccountProfileMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.ReservationSummary{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingProfileReservationSummaries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewReservationsSummariesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - today := to.Ptr(time.Now().UTC().AddDate(0, 0, 1).Format("2006-01-02")) - pager := svc.NewListPager(*cl.BillingProfile.ID, armconsumption.DatagrainDailyGrain, &armconsumption.ReservationsSummariesClientListOptions{StartDate: to.Ptr("2000-01-01"), EndDate: today}) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_summaries_test.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_summaries_test.go deleted file mode 100644 index 4b70be42b92ed7..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_summaries_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingProfileReservationSummaries(router *mux.Router) error { - var item armconsumption.ReservationsSummariesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{profileId}/providers/Microsoft.Consumption/reservationSummaries", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingProfileReservationSummaries(t *testing.T) { - client.MockTestHelper(t, BillingProfileReservationSummaries(), createBillingProfileReservationSummaries) -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_transactions.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_transactions.go deleted file mode 100644 index 4c0b8ab1bfe434..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_transactions.go +++ /dev/null @@ -1,45 +0,0 @@ -package consumption - -import ( - "context" - "fmt" - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BillingProfileReservationTransactions() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_billing_profile_reservation_transactions", - Resolver: fetchBillingProfileReservationTransactions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/reservation-transactions/list?tabs=HTTP#reservationtransaction", - Multiplex: client.BillingAccountProfileMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.ReservationTransaction{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchBillingProfileReservationTransactions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewReservationTransactionsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - now := time.Now().UTC() - end := now.AddDate(0, 0, 1).Format("2006-01-02") - start := now.AddDate(-1, 0, 0).Format("2006-01-02") - filter := to.Ptr(fmt.Sprintf("properties/eventDate ge %s AND properties/eventDate le %s", start, end)) - pager := svc.NewListByBillingProfilePager(*cl.BillingAccount.Name, *cl.BillingProfile.Name, &armconsumption.ReservationTransactionsClientListByBillingProfileOptions{Filter: filter}) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_transactions_test.go b/plugins/source/azure/resources/services/consumption/billing_profile_reservation_transactions_test.go deleted file mode 100644 index 669665de249a55..00000000000000 --- a/plugins/source/azure/resources/services/consumption/billing_profile_reservation_transactions_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBillingProfileReservationTransactions(router *mux.Router) error { - var item armconsumption.ReservationTransactionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{profileId}/providers/Microsoft.Consumption/reservationTransactions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBillingProfileReservationTransactions(t *testing.T) { - client.MockTestHelper(t, BillingProfileReservationTransactions(), createBillingProfileReservationTransactions) -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_budgets.go b/plugins/source/azure/resources/services/consumption/subscription_budgets.go deleted file mode 100644 index 1d90f958f1bc02..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_budgets.go +++ /dev/null @@ -1,39 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionBudgets() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_subscription_budgets", - Resolver: fetchSubscriptionBudgets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/budgets/list?tabs=HTTP#budget", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_consumption_billing_account_budgets", client.Namespacemicrosoft_consumption), - Transform: transformers.TransformWithStruct(&armconsumption.Budget{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchSubscriptionBudgets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewBudgetsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - scope := "subscriptions/" + cl.SubscriptionId - pager := svc.NewListPager(scope, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_budgets_test.go b/plugins/source/azure/resources/services/consumption/subscription_budgets_test.go deleted file mode 100644 index a2500b07da8059..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_budgets_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionBudgets(router *mux.Router) error { - var item armconsumption.BudgetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/budgets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionBudgets(t *testing.T) { - client.MockTestHelper(t, SubscriptionBudgets(), createSubscriptionBudgets) -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_legacy_usage_details.go b/plugins/source/azure/resources/services/consumption/subscription_legacy_usage_details.go deleted file mode 100644 index c104b8d474f951..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_legacy_usage_details.go +++ /dev/null @@ -1,44 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionLegacyUsageDetails() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_subscription_legacy_usage_details", - Resolver: fetchSubscriptionLegacyUsageDetails, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#legacyusagedetail", - Multiplex: client.SubscriptionBillingPeriodMultiplex, - Transform: transformers.TransformWithStruct(&armconsumption.LegacyUsageDetail{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchSubscriptionLegacyUsageDetails(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewUsageDetailsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*cl.BillingPeriod.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - for _, v := range p.Value { - lud, ok := v.(*armconsumption.LegacyUsageDetail) - if !ok { - continue // skip - } - res <- lud - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_legacy_usage_details_test.go b/plugins/source/azure/resources/services/consumption/subscription_legacy_usage_details_test.go deleted file mode 100644 index 878a751fafd0b8..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_legacy_usage_details_test.go +++ /dev/null @@ -1,55 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionLegacyUsageDetails(router *mux.Router) error { - var ( - item1 armconsumption.LegacyUsageDetail - item2 armconsumption.ModernUsageDetail - ) - if err := faker.FakeObject(&item1); err != nil { - return err - } - item1.Kind = to.Ptr(armconsumption.UsageDetailsKindLegacy) - - if err := faker.FakeObject(&item2); err != nil { - return err - } - item2.Kind = to.Ptr(armconsumption.UsageDetailsKindModern) // will be skipped, but API seems to return both - - resp := armconsumption.UsageDetailsClientListResponse{ - UsageDetailsListResult: armconsumption.UsageDetailsListResult{ - // Value is an interface{} so we can't mock it directly - Value: []armconsumption.UsageDetailClassification{&item1, &item2}, - }, - } - resp.NextLink = to.Ptr("") - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Billing/billingPeriods/{periodName}/providers/Microsoft.Consumption/usageDetails", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionLegacyUsageDetails(t *testing.T) { - client.MockTestHelper(t, SubscriptionLegacyUsageDetails(), createSubscriptionLegacyUsageDetails) -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_marketplaces.go b/plugins/source/azure/resources/services/consumption/subscription_marketplaces.go deleted file mode 100644 index 9c9112d88125dd..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_marketplaces.go +++ /dev/null @@ -1,39 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionMarketplaces() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_subscription_marketplaces", - Resolver: fetchSubscriptionMarketplaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/budgets/list?tabs=HTTP#budget", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_consumption_subscription_marketplaces", client.Namespacemicrosoft_consumption), - Transform: transformers.TransformWithStruct(&armconsumption.Marketplace{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchSubscriptionMarketplaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewMarketplacesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - scope := "subscriptions/" + cl.SubscriptionId - pager := svc.NewListPager(scope, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_marketplaces_test.go b/plugins/source/azure/resources/services/consumption/subscription_marketplaces_test.go deleted file mode 100644 index d801322dca8512..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_marketplaces_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionMarketplaces(router *mux.Router) error { - var item armconsumption.MarketplacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.NextLink = to.Ptr("") - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/marketplaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionMarketplaces(t *testing.T) { - client.MockTestHelper(t, SubscriptionMarketplaces(), createSubscriptionMarketplaces) -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_price_sheets.go b/plugins/source/azure/resources/services/consumption/subscription_price_sheets.go deleted file mode 100644 index 108a4e3da54ac1..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_price_sheets.go +++ /dev/null @@ -1,65 +0,0 @@ -package consumption - -import ( - "context" - "net/url" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionPriceSheets() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_subscription_price_sheets", - Resolver: fetchSubscriptionPriceSheets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/price-sheet/get?tabs=HTTP#pricesheetresult", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_consumption_subscription_price_sheets", client.Namespacemicrosoft_consumption), - Transform: transformers.TransformWithStruct(&armconsumption.PriceSheetResult{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchSubscriptionPriceSheets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewPriceSheetClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - opts := &armconsumption.PriceSheetClientGetOptions{Expand: to.Ptr("properties/meterDetails")} - resp, err := svc.Get(ctx, opts) - if err != nil { - return err - } - - // This is a workaround to get all price sheets - // Somehow related to https://github.com/Azure/azure-sdk-for-go/issues/4142 - allPricesSheets := resp.PriceSheetResult.Properties.Pricesheets - nextLink := resp.PriceSheetResult.Properties.NextLink - for nextLink != nil { - parsedNextLink, err := url.Parse(*nextLink) - if err != nil { - cl.Logger().Warn().Err(err).Msgf("failed to parse next link: %q", *nextLink) - break - } - token := parsedNextLink.Query().Get("skiptoken") - if token == "" { - cl.Logger().Warn().Msgf("failed to get skiptoken from next link: %q", *nextLink) - break - } - opts.Skiptoken = to.Ptr(token) - paginatedResponse, err := svc.Get(ctx, opts) - if err != nil { - cl.Logger().Warn().Err(err).Msgf("failed to get paginated response for next link: %q", *nextLink) - break - } - allPricesSheets = append(allPricesSheets, paginatedResponse.PriceSheetResult.Properties.Pricesheets...) - nextLink = paginatedResponse.PriceSheetResult.Properties.NextLink - } - - resp.PriceSheetResult.Properties.Pricesheets = allPricesSheets - res <- resp.PriceSheetResult - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_price_sheets_test.go b/plugins/source/azure/resources/services/consumption/subscription_price_sheets_test.go deleted file mode 100644 index d548b9f5a189b9..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_price_sheets_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionPriceSheets(router *mux.Router) error { - var resp armconsumption.PriceSheetClientGetResponse - if err := faker.FakeObject(&resp); err != nil { - return err - } - resp.PriceSheetResult.Properties.NextLink = nil - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/pricesheets/default", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionPriceSheets(t *testing.T) { - client.MockTestHelper(t, SubscriptionPriceSheets(), createSubscriptionPriceSheets) -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_reservation_recommendations.go b/plugins/source/azure/resources/services/consumption/subscription_reservation_recommendations.go deleted file mode 100644 index 547d559e6428a2..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_reservation_recommendations.go +++ /dev/null @@ -1,49 +0,0 @@ -package consumption - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionReservationRecommendations() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_subscription_reservation_recommendations", - Resolver: fetchSubscriptionReservationRecommendations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/reservation-recommendations/list?tabs=HTTP#legacyreservationrecommendation", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_consumption_subscription_reservation_recommendations", client.Namespacemicrosoft_consumption), - Transform: transformers.TransformWithStruct(&armconsumption.LegacyReservationRecommendation{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchSubscriptionReservationRecommendations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewReservationRecommendationsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - scope := "subscriptions/" + cl.SubscriptionId - pager := svc.NewListPager(scope, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - var respError *azcore.ResponseError - // If there's no data a 204 error is returned so we ignore it - if errors.As(err, &respError) && respError.StatusCode == 204 { - cl.Logger().Debug().Msg("No data for billing profile reservation recommendations") - return nil - } - return err - } - for _, v := range p.Value { - res <- v.(*armconsumption.LegacyReservationRecommendation) - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_reservation_recommendations_test.go b/plugins/source/azure/resources/services/consumption/subscription_reservation_recommendations_test.go deleted file mode 100644 index 783ba2c86000a1..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_reservation_recommendations_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionReservationRecommendations(router *mux.Router) error { - var item armconsumption.LegacyReservationRecommendation - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Kind = to.Ptr(armconsumption.ReservationRecommendationKindLegacy) - - resp := armconsumption.ReservationRecommendationsClientListResponse{ - ReservationRecommendationsListResult: armconsumption.ReservationRecommendationsListResult{ - Value: []armconsumption.ReservationRecommendationClassification{&item}, - }, - } - resp.NextLink = to.Ptr("") - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/reservationRecommendations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionReservationRecommendations(t *testing.T) { - client.MockTestHelper(t, SubscriptionReservationRecommendations(), createSubscriptionReservationRecommendations) -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_tags.go b/plugins/source/azure/resources/services/consumption/subscription_tags.go deleted file mode 100644 index b2bf4ca2f9e96d..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_tags.go +++ /dev/null @@ -1,36 +0,0 @@ -package consumption - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionTags() *schema.Table { - return &schema.Table{ - Name: "azure_consumption_subscription_tags", - Resolver: fetchSubscriptionTags, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/consumption/tags/get?tabs=HTTP#tagsresult", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_consumption_subscription_tags", client.Namespacemicrosoft_consumption), - Transform: transformers.TransformWithStruct(&armconsumption.TagsResult{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchSubscriptionTags(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armconsumption.NewTagsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - scope := "subscriptions/" + cl.SubscriptionId - resp, err := svc.Get(ctx, scope, nil) - if err != nil { - return err - } - res <- resp.TagsResult - return nil -} diff --git a/plugins/source/azure/resources/services/consumption/subscription_tags_test.go b/plugins/source/azure/resources/services/consumption/subscription_tags_test.go deleted file mode 100644 index 9ea2c35a6ec6e0..00000000000000 --- a/plugins/source/azure/resources/services/consumption/subscription_tags_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package consumption - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionTags(router *mux.Router) error { - var resp armconsumption.TagsClientGetResponse - if err := faker.FakeObject(&resp); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/tags", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&resp) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionTags(t *testing.T) { - client.MockTestHelper(t, SubscriptionTags(), createSubscriptionTags) -} diff --git a/plugins/source/azure/resources/services/containerinstance/container_groups.go b/plugins/source/azure/resources/services/containerinstance/container_groups.go deleted file mode 100644 index b25459ca11dfc8..00000000000000 --- a/plugins/source/azure/resources/services/containerinstance/container_groups.go +++ /dev/null @@ -1,39 +0,0 @@ -package containerinstance - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ContainerGroups() *schema.Table { - return &schema.Table{ - Name: "azure_containerinstance_container_groups", - Resolver: fetchContainerGroups, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/container-instances/container-groups/list?tabs=HTTP#containergroup", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_containerinstance_container_groups", client.Namespacemicrosoft_containerinstance), - Transform: transformers.TransformWithStruct(&armcontainerinstance.ContainerGroup{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchContainerGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcontainerinstance.NewContainerGroupsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/containerinstance/container_groups_mock_test.go b/plugins/source/azure/resources/services/containerinstance/container_groups_mock_test.go deleted file mode 100644 index ae8c82ab0fd978..00000000000000 --- a/plugins/source/azure/resources/services/containerinstance/container_groups_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package containerinstance - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createContainerGroups(router *mux.Router) error { - var item armcontainerinstance.ContainerGroupsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestContainerGroups(t *testing.T) { - client.MockTestHelper(t, ContainerGroups(), createContainerGroups) -} diff --git a/plugins/source/azure/resources/services/containerregistry/registries.go b/plugins/source/azure/resources/services/containerregistry/registries.go deleted file mode 100644 index 41bec7c558c90d..00000000000000 --- a/plugins/source/azure/resources/services/containerregistry/registries.go +++ /dev/null @@ -1,39 +0,0 @@ -package containerregistry - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Registries() *schema.Table { - return &schema.Table{ - Name: "azure_containerregistry_registries", - Resolver: fetchRegistries, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/containerregistry/registries/list?tabs=HTTP#registry", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_containerregistry_registries", client.Namespacemicrosoft_containerregistry), - Transform: transformers.TransformWithStruct(&armcontainerregistry.Registry{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRegistries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcontainerregistry.NewRegistriesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/containerregistry/registries_mock_test.go b/plugins/source/azure/resources/services/containerregistry/registries_mock_test.go deleted file mode 100644 index 0d82d0a2d1fc9f..00000000000000 --- a/plugins/source/azure/resources/services/containerregistry/registries_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package containerregistry - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRegistries(router *mux.Router) error { - var item armcontainerregistry.RegistriesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRegistries(t *testing.T) { - client.MockTestHelper(t, Registries(), createRegistries) -} diff --git a/plugins/source/azure/resources/services/containerservice/managed_cluster_upgrade_profiles.go b/plugins/source/azure/resources/services/containerservice/managed_cluster_upgrade_profiles.go deleted file mode 100644 index 71174f3417338b..00000000000000 --- a/plugins/source/azure/resources/services/containerservice/managed_cluster_upgrade_profiles.go +++ /dev/null @@ -1,66 +0,0 @@ -package containerservice - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func clusterUpgradeProfiles() *schema.Table { - return &schema.Table{ - Name: "azure_containerservice_managed_cluster_upgrade_profiles", - Resolver: fetchManagedClusterUpgradeProfile, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/aks/managed-clusters/get-upgrade-profile?tabs=HTTP#managedclusterupgradeprofile", - Transform: transformers.TransformWithStruct(&armcontainerservice.ManagedClusterUpgradeProfile{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchManagedClusterUpgradeProfile(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - cluster := parent.Item.(*armcontainerservice.ManagedCluster) - svc, err := armcontainerservice.NewManagedClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - - group, err := client.ParseResourceGroup(*cluster.ID) - if err != nil { - return err - } - resp, err := svc.GetUpgradeProfile(ctx, group, *cluster.Name, nil) - if err != nil { - return err - } - res <- resp.ManagedClusterUpgradeProfile - return nil -} - -func createManagedClusterUpgradeProfile(router *mux.Router) error { - var item armcontainerservice.ManagedClustersClientGetUpgradeProfileResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{group}/providers/Microsoft.ContainerService/managedClusters/{cluster}/upgradeProfiles/default", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/containerservice/managed_clusters.go b/plugins/source/azure/resources/services/containerservice/managed_clusters.go deleted file mode 100644 index 8f2af1ef48821a..00000000000000 --- a/plugins/source/azure/resources/services/containerservice/managed_clusters.go +++ /dev/null @@ -1,40 +0,0 @@ -package containerservice - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ManagedClusters() *schema.Table { - return &schema.Table{ - Name: "azure_containerservice_managed_clusters", - Resolver: fetchManagedClusters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/aks/managed-clusters/list?tabs=HTTP#managedcluster", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_containerservice_managed_clusters", client.Namespacemicrosoft_containerservice), - Transform: transformers.TransformWithStruct(&armcontainerservice.ManagedCluster{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{clusterUpgradeProfiles()}, - } -} - -func fetchManagedClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcontainerservice.NewManagedClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/containerservice/managed_clusters_mock_test.go b/plugins/source/azure/resources/services/containerservice/managed_clusters_mock_test.go deleted file mode 100644 index e30ae36f8154a2..00000000000000 --- a/plugins/source/azure/resources/services/containerservice/managed_clusters_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package containerservice - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createManagedClusters(router *mux.Router) error { - var item armcontainerservice.ManagedClustersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createManagedClusterUpgradeProfile(router) -} - -func TestManagedClusters(t *testing.T) { - client.MockTestHelper(t, ManagedClusters(), createManagedClusters) -} diff --git a/plugins/source/azure/resources/services/containerservice/snapshots.go b/plugins/source/azure/resources/services/containerservice/snapshots.go deleted file mode 100644 index 674ebcc956c3ba..00000000000000 --- a/plugins/source/azure/resources/services/containerservice/snapshots.go +++ /dev/null @@ -1,39 +0,0 @@ -package containerservice - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Snapshots() *schema.Table { - return &schema.Table{ - Name: "azure_containerservice_snapshots", - Resolver: fetchSnapshots, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/aks/snapshots/list?tabs=HTTP#snapshot", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_containerservice_snapshots", client.Namespacemicrosoft_containerservice), - Transform: transformers.TransformWithStruct(&armcontainerservice.Snapshot{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSnapshots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcontainerservice.NewSnapshotsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/containerservice/snapshots_mock_test.go b/plugins/source/azure/resources/services/containerservice/snapshots_mock_test.go deleted file mode 100644 index 94edc7bf98fc01..00000000000000 --- a/plugins/source/azure/resources/services/containerservice/snapshots_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package containerservice - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSnapshots(router *mux.Router) error { - var item armcontainerservice.SnapshotsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/snapshots", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSnapshots(t *testing.T) { - client.MockTestHelper(t, Snapshots(), createSnapshots) -} diff --git a/plugins/source/azure/resources/services/costmanagement/daterange.go b/plugins/source/azure/resources/services/costmanagement/daterange.go deleted file mode 100644 index 04b7956d4c16c7..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/daterange.go +++ /dev/null @@ -1,93 +0,0 @@ -package costmanagement - -import ( - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" -) - -func timePtr(t time.Time) *time.Time { - return &t -} - -func ttPtr(v armcostmanagement.TimeframeType) *armcostmanagement.TimeframeType { - return &v -} - -func dateRangeToTimeFrame(now time.Time, dr string) (*armcostmanagement.TimeframeType, *armcostmanagement.QueryTimePeriod) { - quarterStart := func(t time.Time) time.Time { - var m time.Month - switch t.Month() { - case time.January, time.February, time.March: - m = time.January - case time.April, time.May, time.June: - m = time.April - case time.July, time.August, time.September: - m = time.July - case time.October, time.November, time.December: - m = time.October - } - return time.Date(t.Year(), m, 1, 0, 0, 0, 0, t.Location()) - } - - now = now.Truncate(24 * time.Hour) - - switch dr { - case "Last7Days": - now = now.AddDate(0, 0, -1) // ends yesterday - return ttPtr(armcostmanagement.TimeframeTypeCustom), &armcostmanagement.QueryTimePeriod{ - From: timePtr(now.AddDate(0, 0, -6)), - To: timePtr(now), - } - case "Last30Days": - now = now.AddDate(0, 0, -1) // ends yesterday - return ttPtr(armcostmanagement.TimeframeTypeCustom), &armcostmanagement.QueryTimePeriod{ - From: timePtr(now.AddDate(0, 0, -29)), - To: timePtr(now), - } - case "Last3Months", "Last6Months", "Last12Months": - e := now.AddDate(0, 0, -now.Day()+1).Add(-time.Second) // last second of last month - s := e.AddDate(0, map[string]int{ - "Last3Months": -2, - "Last6Months": -5, - "Last12Months": -11, - }[dr], 0) - s = s.AddDate(0, 0, -s.Day()+1).Truncate(24 * time.Hour) // first day - return ttPtr(armcostmanagement.TimeframeTypeCustom), &armcostmanagement.QueryTimePeriod{ - From: &s, - To: &e, - } - case "ThisMonth": - return ttPtr(armcostmanagement.TimeframeTypeMonthToDate), nil - case "LastMonth": - return ttPtr(armcostmanagement.TimeframeTypeTheLastMonth), nil - case "CurrentBillingPeriod": - return ttPtr(armcostmanagement.TimeframeTypeBillingMonthToDate), nil - case "LastBillingPeriod": - return ttPtr(armcostmanagement.TimeframeTypeTheLastBillingMonth), nil - case "ThisQuarter": - qs := quarterStart(now) - next := qs.AddDate(0, 3, 15) // 15 days into next quarter - qe := quarterStart(next).Add(-time.Second) // one second before first day of this quarter - return ttPtr(armcostmanagement.TimeframeTypeCustom), &armcostmanagement.QueryTimePeriod{ - From: &qs, - To: &qe, - } - case "LastQuarter": - qe := quarterStart(now).Add(-time.Second) // one second before first day of this quarter - qs := quarterStart(qe) - return ttPtr(armcostmanagement.TimeframeTypeCustom), &armcostmanagement.QueryTimePeriod{ - From: &qs, - To: &qe, - } - case "ThisYear": - s := time.Date(now.Year(), time.January, 1, 0, 0, 0, 0, now.Location()) - e := time.Date(now.Year(), time.December, 31, 23, 59, 59, 0, now.Location()) - return ttPtr(armcostmanagement.TimeframeTypeCustom), &armcostmanagement.QueryTimePeriod{ - From: &s, - To: &e, - } - default: - return nil, nil - } -} diff --git a/plugins/source/azure/resources/services/costmanagement/daterange_test.go b/plugins/source/azure/resources/services/costmanagement/daterange_test.go deleted file mode 100644 index 31395a1fe825cf..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/daterange_test.go +++ /dev/null @@ -1,140 +0,0 @@ -package costmanagement - -import ( - "fmt" - "testing" - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" - "github.com/stretchr/testify/assert" -) - -func TestDateRangeToTimeframe(t *testing.T) { - cases := []struct { - rangeType string - now time.Time - wantTT *armcostmanagement.TimeframeType - wantQP *armcostmanagement.QueryTimePeriod - }{ - { - "Last7Days", - time.Date(2023, 3, 2, 15, 59, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, 2, 23, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, 3, 1, 0, 0, 0, 0, time.UTC)), - }, - }, - { - "Last30Days", - time.Date(2023, 3, 2, 15, 59, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, 1, 31, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, 3, 1, 0, 0, 0, 0, time.UTC)), - }, - }, - { - "ThisMonth", - time.Date(2023, 1, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeMonthToDate), - nil, - }, - { - "LastMonth", - time.Date(2023, 1, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeTheLastMonth), - nil, - }, - { - "Last3Months", - time.Date(2023, 3, 2, 15, 59, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2022, 12, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, 2, 28, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "Last6Months", - time.Date(2023, 3, 2, 15, 59, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2022, 9, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, 2, 28, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "Last12Months", - time.Date(2023, 3, 2, 15, 59, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2022, 3, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, 2, 28, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "ThisQuarter", - time.Date(2023, 1, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, time.January, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, time.March, 31, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "ThisQuarter", - time.Date(2023, 5, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, time.April, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, time.June, 30, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "ThisQuarter", - time.Date(2023, 8, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, time.July, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, time.September, 30, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "ThisQuarter", - time.Date(2023, 11, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, time.October, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, time.December, 31, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "LastQuarter", - time.Date(2023, 11, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, time.July, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, time.September, 30, 23, 59, 59, 0, time.UTC)), - }, - }, - { - "ThisYear", - time.Date(2023, 11, 15, 0, 0, 0, 0, time.UTC), - ttPtr(armcostmanagement.TimeframeTypeCustom), - &armcostmanagement.QueryTimePeriod{ - From: timePtr(time.Date(2023, time.January, 1, 0, 0, 0, 0, time.UTC)), - To: timePtr(time.Date(2023, time.December, 31, 23, 59, 59, 0, time.UTC)), - }, - }, - } - - for i, tc := range cases { - tc := tc - t.Run(fmt.Sprintf("#%d: %s", i, tc.rangeType), func(t *testing.T) { - tt, qp := dateRangeToTimeFrame(tc.now, tc.rangeType) - assert.Equal(t, tc.wantTT, tt) - assert.Equal(t, tc.wantQP, qp) - }) - } -} diff --git a/plugins/source/azure/resources/services/costmanagement/view_queries.go b/plugins/source/azure/resources/services/costmanagement/view_queries.go deleted file mode 100644 index ec3e38f6fd544b..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/view_queries.go +++ /dev/null @@ -1,21 +0,0 @@ -package costmanagement - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func view_queries() *schema.Table { - return &schema.Table{ - Name: "azure_costmanagement_view_queries", - Resolver: fetchViewQueries, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage?tabs=HTTP#queryresult", - Transform: transformers.TransformWithStruct(&armcostmanagement.QueryResult{}, - transformers.WithNameTransformer(client.ETagNameTransformer), - transformers.WithPrimaryKeys("ID"), - ), - } -} diff --git a/plugins/source/azure/resources/services/costmanagement/view_queries_fetch.go b/plugins/source/azure/resources/services/costmanagement/view_queries_fetch.go deleted file mode 100644 index 45a1ba1befc60d..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/view_queries_fetch.go +++ /dev/null @@ -1,53 +0,0 @@ -package costmanagement - -import ( - "context" - "encoding/json" - "fmt" - "time" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchViewQueries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - item := parent.Item.(*armcostmanagement.View) - if item.Properties == nil { - return nil - } - - svc, err := armcostmanagement.NewQueryClient(cl.Creds, cl.Options) - if err != nil { - return err - } - - b, err := json.Marshal(item.Properties.Query) - if err != nil { - return err - } - var qd armcostmanagement.QueryDefinition - if err := json.Unmarshal(b, &qd); err != nil { - return err - } - - if (qd.Timeframe == nil || *qd.Timeframe != armcostmanagement.TimeframeTypeCustom) && qd.TimePeriod == nil && item.Properties.DateRange != nil { - qd.Timeframe, qd.TimePeriod = dateRangeToTimeFrame(time.Now().UTC(), *item.Properties.DateRange) - if qd.Timeframe != nil { - cl.Logger().Debug().Any("report_name", item.Name).Str("date_range", *item.Properties.DateRange).Any("resulting_time_period", qd.TimePeriod).Any("resulting_timeframe", qd.Timeframe).Msg("setting time period from date range") - } - } - - if qd.Timeframe == nil && item.Properties.DateRange != nil { - return fmt.Errorf("could not convert date range %q to time period", *item.Properties.DateRange) - } - - data, err := svc.Usage(ctx, *item.Properties.Scope, qd, nil) - if err != nil { - return err - } - - res <- data - return nil -} diff --git a/plugins/source/azure/resources/services/costmanagement/view_queries_mock_test.go b/plugins/source/azure/resources/services/costmanagement/view_queries_mock_test.go deleted file mode 100644 index b8d9c1f679db7c..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/view_queries_mock_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package costmanagement - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createViewQueries(router *mux.Router) error { - var item armcostmanagement.QueryClientUsageResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/{scope}/providers/Microsoft.CostManagement/query", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/costmanagement/views.go b/plugins/source/azure/resources/services/costmanagement/views.go deleted file mode 100644 index 2829be620bb788..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/views.go +++ /dev/null @@ -1,45 +0,0 @@ -package costmanagement - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Views() *schema.Table { - return &schema.Table{ - Name: "azure_costmanagement_views", - Resolver: fetchViews, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/cost-management/views/list?tabs=HTTP#view", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_costmanagement_views", client.Namespacemicrosoft_costmanagement), - Transform: transformers.TransformWithStruct(&armcostmanagement.View{}, - transformers.WithNameTransformer(client.ETagNameTransformer), - transformers.WithPrimaryKeys("ID"), - ), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - view_queries(), - }, - } -} - -func fetchViews(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcostmanagement.NewViewsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListByScopePager("subscriptions/"+cl.SubscriptionId, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/costmanagement/views_mock_test.go b/plugins/source/azure/resources/services/costmanagement/views_mock_test.go deleted file mode 100644 index fa2ccc78d0c2f6..00000000000000 --- a/plugins/source/azure/resources/services/costmanagement/views_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package costmanagement - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createViews(router *mux.Router) error { - var item armcostmanagement.ViewsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/views", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return createViewQueries(router) -} - -func TestViews(t *testing.T) { - client.MockTestHelper(t, Views(), createViews) -} diff --git a/plugins/source/azure/resources/services/customerinsights/hubs.go b/plugins/source/azure/resources/services/customerinsights/hubs.go deleted file mode 100644 index 5daf52c9ff1278..00000000000000 --- a/plugins/source/azure/resources/services/customerinsights/hubs.go +++ /dev/null @@ -1,39 +0,0 @@ -package customerinsights - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/armcustomerinsights" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Hubs() *schema.Table { - return &schema.Table{ - Name: "azure_customerinsights_hubs", - Resolver: fetchHubs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/armcustomerinsights@v1.0.0#Hub", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_customerinsights_hubs", client.Namespacemicrosoft_customerinsights), - Transform: transformers.TransformWithStruct(&armcustomerinsights.Hub{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchHubs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armcustomerinsights.NewHubsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/customerinsights/hubs_mock_test.go b/plugins/source/azure/resources/services/customerinsights/hubs_mock_test.go deleted file mode 100644 index 689cbe3ebd9437..00000000000000 --- a/plugins/source/azure/resources/services/customerinsights/hubs_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package customerinsights - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/armcustomerinsights" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createHubs(router *mux.Router) error { - var item armcustomerinsights.HubsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.CustomerInsights/hubs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestHubs(t *testing.T) { - client.MockTestHelper(t, Hubs(), createHubs) -} diff --git a/plugins/source/azure/resources/services/dashboard/grafana.go b/plugins/source/azure/resources/services/dashboard/grafana.go deleted file mode 100644 index b0e78ea7578e2f..00000000000000 --- a/plugins/source/azure/resources/services/dashboard/grafana.go +++ /dev/null @@ -1,39 +0,0 @@ -package dashboard - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Grafana() *schema.Table { - return &schema.Table{ - Name: "azure_dashboard_grafana", - Resolver: fetchGrafana, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/managed-grafana/grafana/list-by-resource-group?tabs=HTTP#managedgrafana", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_dashboard_grafana", client.Namespacemicrosoft_dashboard), - Transform: transformers.TransformWithStruct(&armdashboard.ManagedGrafana{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchGrafana(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdashboard.NewGrafanaClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/dashboard/grafana_mock_test.go b/plugins/source/azure/resources/services/dashboard/grafana_mock_test.go deleted file mode 100644 index d1389a6da5c6a5..00000000000000 --- a/plugins/source/azure/resources/services/dashboard/grafana_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package dashboard - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createGrafana(router *mux.Router) error { - var item armdashboard.GrafanaClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Dashboard/grafana", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestGrafana(t *testing.T) { - client.MockTestHelper(t, Grafana(), createGrafana) -} diff --git a/plugins/source/azure/resources/services/databox/jobs.go b/plugins/source/azure/resources/services/databox/jobs.go deleted file mode 100644 index 32a6d3b5bf87f0..00000000000000 --- a/plugins/source/azure/resources/services/databox/jobs.go +++ /dev/null @@ -1,39 +0,0 @@ -package databox - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Jobs() *schema.Table { - return &schema.Table{ - Name: "azure_databox_jobs", - Resolver: fetchJobs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox@v1.0.0#JobResource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_databox_jobs", client.Namespacemicrosoft_databox), - Transform: transformers.TransformWithStruct(&armdatabox.JobResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatabox.NewJobsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/databox/jobs_mock_test.go b/plugins/source/azure/resources/services/databox/jobs_mock_test.go deleted file mode 100644 index ff40fa9cd61d20..00000000000000 --- a/plugins/source/azure/resources/services/databox/jobs_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package databox - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createJobs(router *mux.Router) error { - var item armdatabox.JobsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestJobs(t *testing.T) { - client.MockTestHelper(t, Jobs(), createJobs) -} diff --git a/plugins/source/azure/resources/services/datadog/marketplace_agreements.go b/plugins/source/azure/resources/services/datadog/marketplace_agreements.go deleted file mode 100644 index 79b79655e3fa81..00000000000000 --- a/plugins/source/azure/resources/services/datadog/marketplace_agreements.go +++ /dev/null @@ -1,39 +0,0 @@ -package datadog - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func MarketplaceAgreements() *schema.Table { - return &schema.Table{ - Name: "azure_datadog_marketplace_agreements", - Resolver: fetchMarketplaceAgreements, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/datadog/marketplace-agreements/list?tabs=HTTP#datadogagreementresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_datadog_marketplace_agreements", client.Namespacemicrosoft_datadog), - Transform: transformers.TransformWithStruct(&armdatadog.AgreementResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchMarketplaceAgreements(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatadog.NewMarketplaceAgreementsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/datadog/marketplace_agreements_mock_test.go b/plugins/source/azure/resources/services/datadog/marketplace_agreements_mock_test.go deleted file mode 100644 index 7b225c6f97106a..00000000000000 --- a/plugins/source/azure/resources/services/datadog/marketplace_agreements_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package datadog - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createMarketplaceAgreements(router *mux.Router) error { - var item armdatadog.MarketplaceAgreementsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/agreements", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestMarketplaceAgreements(t *testing.T) { - client.MockTestHelper(t, MarketplaceAgreements(), createMarketplaceAgreements) -} diff --git a/plugins/source/azure/resources/services/datadog/monitors.go b/plugins/source/azure/resources/services/datadog/monitors.go deleted file mode 100644 index d686f679a86909..00000000000000 --- a/plugins/source/azure/resources/services/datadog/monitors.go +++ /dev/null @@ -1,39 +0,0 @@ -package datadog - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Monitors() *schema.Table { - return &schema.Table{ - Name: "azure_datadog_monitors", - Resolver: fetchMonitors, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/datadog/monitors/list?tabs=HTTP#datadogmonitorresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_datadog_monitors", client.Namespacemicrosoft_datadog), - Transform: transformers.TransformWithStruct(&armdatadog.MonitorResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchMonitors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatadog.NewMonitorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/datadog/monitors_mock_test.go b/plugins/source/azure/resources/services/datadog/monitors_mock_test.go deleted file mode 100644 index 8fcb5b62299a64..00000000000000 --- a/plugins/source/azure/resources/services/datadog/monitors_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package datadog - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createMonitors(router *mux.Router) error { - var item armdatadog.MonitorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Datadog/monitors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestMonitors(t *testing.T) { - client.MockTestHelper(t, Monitors(), createMonitors) -} diff --git a/plugins/source/azure/resources/services/datafactory/factories.go b/plugins/source/azure/resources/services/datafactory/factories.go deleted file mode 100644 index 47ff1407ac4ad4..00000000000000 --- a/plugins/source/azure/resources/services/datafactory/factories.go +++ /dev/null @@ -1,42 +0,0 @@ -package datafactory - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Factories() *schema.Table { - return &schema.Table{ - Name: "azure_datafactory_factories", - Resolver: fetchFactories, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/datafactory/factories/list?tabs=HTTP#factory", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_datafactory_factories", client.Namespacemicrosoft_datafactory), - Transform: transformers.TransformWithStruct(&armdatafactory.Factory{}, - transformers.WithNameTransformer(client.ETagNameTransformer), - transformers.WithPrimaryKeys("ID"), - ), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchFactories(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatafactory.NewFactoriesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/datafactory/factories_mock_test.go b/plugins/source/azure/resources/services/datafactory/factories_mock_test.go deleted file mode 100644 index f8ee4382d612de..00000000000000 --- a/plugins/source/azure/resources/services/datafactory/factories_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package datafactory - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createFactories(router *mux.Router) error { - var item armdatafactory.FactoriesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - item.Value[0].AdditionalProperties = map[string]any{"test-key": "test-value"} - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestFactories(t *testing.T) { - client.MockTestHelper(t, Factories(), createFactories) -} diff --git a/plugins/source/azure/resources/services/datalakeanalytics/accounts.go b/plugins/source/azure/resources/services/datalakeanalytics/accounts.go deleted file mode 100644 index 1ed6c9e38ee903..00000000000000 --- a/plugins/source/azure/resources/services/datalakeanalytics/accounts.go +++ /dev/null @@ -1,39 +0,0 @@ -package datalakeanalytics - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Accounts() *schema.Table { - return &schema.Table{ - Name: "azure_datalakeanalytics_accounts", - Resolver: fetchAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/datalakeanalytics/accounts/list?tabs=HTTP#datalakeanalyticsaccountbasic", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_datalakeanalytics_accounts", client.Namespacemicrosoft_datalakeanalytics), - Transform: transformers.TransformWithStruct(&armdatalakeanalytics.AccountBasic{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatalakeanalytics.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/datalakeanalytics/accounts_mock_test.go b/plugins/source/azure/resources/services/datalakeanalytics/accounts_mock_test.go deleted file mode 100644 index e2e4e0f1156f9b..00000000000000 --- a/plugins/source/azure/resources/services/datalakeanalytics/accounts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package datalakeanalytics - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccounts(router *mux.Router) error { - var item armdatalakeanalytics.AccountsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAccounts(t *testing.T) { - client.MockTestHelper(t, Accounts(), createAccounts) -} diff --git a/plugins/source/azure/resources/services/datalakestore/accounts.go b/plugins/source/azure/resources/services/datalakestore/accounts.go deleted file mode 100644 index 56a84cce2e6511..00000000000000 --- a/plugins/source/azure/resources/services/datalakestore/accounts.go +++ /dev/null @@ -1,39 +0,0 @@ -package datalakestore - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-store/armdatalakestore" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Accounts() *schema.Table { - return &schema.Table{ - Name: "azure_datalakestore_accounts", - Resolver: fetchAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/datalakestore/accounts/list?tabs=HTTP#datalakestoreaccountbasic", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_datalakestore_accounts", client.Namespacemicrosoft_datalakestore), - Transform: transformers.TransformWithStruct(&armdatalakestore.AccountBasic{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatalakestore.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/datalakestore/accounts_mock_test.go b/plugins/source/azure/resources/services/datalakestore/accounts_mock_test.go deleted file mode 100644 index ef6022d3065a20..00000000000000 --- a/plugins/source/azure/resources/services/datalakestore/accounts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package datalakestore - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-store/armdatalakestore" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccounts(router *mux.Router) error { - var item armdatalakestore.AccountsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeStore/accounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAccounts(t *testing.T) { - client.MockTestHelper(t, Accounts(), createAccounts) -} diff --git a/plugins/source/azure/resources/services/datamigration/services.go b/plugins/source/azure/resources/services/datamigration/services.go deleted file mode 100644 index 9a9c5305424815..00000000000000 --- a/plugins/source/azure/resources/services/datamigration/services.go +++ /dev/null @@ -1,39 +0,0 @@ -package datamigration - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Services() *schema.Table { - return &schema.Table{ - Name: "azure_datamigration_services", - Resolver: fetchServices, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/datamigration/services/list?tabs=HTTP#datamigrationservice", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_datamigration_services", client.Namespacemicrosoft_datamigration), - Transform: transformers.TransformWithStruct(&armdatamigration.Service{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdatamigration.NewServicesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/datamigration/services_mock_test.go b/plugins/source/azure/resources/services/datamigration/services_mock_test.go deleted file mode 100644 index b43eb6252ee8d4..00000000000000 --- a/plugins/source/azure/resources/services/datamigration/services_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package datamigration - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServices(router *mux.Router) error { - var item armdatamigration.ServicesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/services", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServices(t *testing.T) { - client.MockTestHelper(t, Services(), createServices) -} diff --git a/plugins/source/azure/resources/services/desktopvirtualization/host_pools.go b/plugins/source/azure/resources/services/desktopvirtualization/host_pools.go deleted file mode 100644 index 7fcaf6c411817d..00000000000000 --- a/plugins/source/azure/resources/services/desktopvirtualization/host_pools.go +++ /dev/null @@ -1,39 +0,0 @@ -package desktopvirtualization - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func HostPools() *schema.Table { - return &schema.Table{ - Name: "azure_desktopvirtualization_host_pools", - Resolver: fetchHostPools, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/desktopvirtualization/host-pools/list?tabs=HTTP#hostpool", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_desktopvirtualization_host_pools", client.Namespacemicrosoft_desktopvirtualization), - Transform: transformers.TransformWithStruct(&armdesktopvirtualization.HostPool{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchHostPools(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdesktopvirtualization.NewHostPoolsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/desktopvirtualization/host_pools_mock_test.go b/plugins/source/azure/resources/services/desktopvirtualization/host_pools_mock_test.go deleted file mode 100644 index 060dd033f2812b..00000000000000 --- a/plugins/source/azure/resources/services/desktopvirtualization/host_pools_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package desktopvirtualization - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createHostPools(router *mux.Router) error { - var item armdesktopvirtualization.HostPoolsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestHostPools(t *testing.T) { - client.MockTestHelper(t, HostPools(), createHostPools) -} diff --git a/plugins/source/azure/resources/services/devhub/workflow.go b/plugins/source/azure/resources/services/devhub/workflow.go deleted file mode 100644 index 870afff9a132b2..00000000000000 --- a/plugins/source/azure/resources/services/devhub/workflow.go +++ /dev/null @@ -1,39 +0,0 @@ -package devhub - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Workflow() *schema.Table { - return &schema.Table{ - Name: "azure_devhub_workflow", - Resolver: fetchWorkflow, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub@v0.2.0#Workflow", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_devhub_workflow", client.Namespacemicrosoft_devhub), - Transform: transformers.TransformWithStruct(&armdevhub.Workflow{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWorkflow(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdevhub.NewWorkflowClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/devhub/workflow_mock_test.go b/plugins/source/azure/resources/services/devhub/workflow_mock_test.go deleted file mode 100644 index 843ec4798fad25..00000000000000 --- a/plugins/source/azure/resources/services/devhub/workflow_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package devhub - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWorkflow(router *mux.Router) error { - var item armdevhub.WorkflowClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/workflows", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestWorkflow(t *testing.T) { - client.MockTestHelper(t, Workflow(), createWorkflow) -} diff --git a/plugins/source/azure/resources/services/devops/pipeline_template_definitions.go b/plugins/source/azure/resources/services/devops/pipeline_template_definitions.go deleted file mode 100644 index 8a107436bac094..00000000000000 --- a/plugins/source/azure/resources/services/devops/pipeline_template_definitions.go +++ /dev/null @@ -1,39 +0,0 @@ -package devops - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PipelineTemplateDefinitions() *schema.Table { - return &schema.Table{ - Name: "azure_devops_pipeline_template_definitions", - Resolver: fetchPipelineTemplateDefinitions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops@v0.5.0#PipelineTemplateDefinition", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_devops_pipeline_template_definitions", client.Namespacemicrosoft_devops), - Transform: transformers.TransformWithStruct(&armdevops.PipelineTemplateDefinition{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPipelineTemplateDefinitions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdevops.NewPipelineTemplateDefinitionsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/devops/pipeline_template_definitions_mock_test.go b/plugins/source/azure/resources/services/devops/pipeline_template_definitions_mock_test.go deleted file mode 100644 index 8dbbc1217cfc30..00000000000000 --- a/plugins/source/azure/resources/services/devops/pipeline_template_definitions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package devops - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPipelineTemplateDefinitions(router *mux.Router) error { - var item armdevops.PipelineTemplateDefinitionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.DevOps/pipelineTemplateDefinitions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPipelineTemplateDefinitions(t *testing.T) { - client.MockTestHelper(t, PipelineTemplateDefinitions(), createPipelineTemplateDefinitions) -} diff --git a/plugins/source/azure/resources/services/dns/record_sets.go b/plugins/source/azure/resources/services/dns/record_sets.go deleted file mode 100644 index 97d2217b1797ef..00000000000000 --- a/plugins/source/azure/resources/services/dns/record_sets.go +++ /dev/null @@ -1,72 +0,0 @@ -package dns - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func recordSets() *schema.Table { - return &schema.Table{ - Name: "azure_dns_record_sets", - Resolver: fetchRecordSets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/record-sets/list-by-dns-zone?tabs=HTTP#recordset", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_dns_record_sets", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armdns.RecordSet{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRecordSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - zone := parent.Item.(*armdns.Zone) - svc, err := armdns.NewRecordSetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*zone.ID) - if err != nil { - return err - } - pager := svc.NewListByDNSZonePager(group, *zone.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} - -func createMockRecordSets(router *mux.Router) error { - var item armdns.RecordSetsClientListByDNSZoneResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/recordsets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/dns/zones.go b/plugins/source/azure/resources/services/dns/zones.go deleted file mode 100644 index 0bfca812bf0630..00000000000000 --- a/plugins/source/azure/resources/services/dns/zones.go +++ /dev/null @@ -1,42 +0,0 @@ -package dns - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Zones() *schema.Table { - return &schema.Table{ - Name: "azure_dns_zones", - Resolver: fetchZones, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/zones/list?tabs=HTTP#zone", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_dns_zones", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armdns.Zone{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - recordSets(), - }, - } -} - -func fetchZones(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdns.NewZonesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/dns/zones_mock_test.go b/plugins/source/azure/resources/services/dns/zones_mock_test.go deleted file mode 100644 index 7234bd27bb2e8a..00000000000000 --- a/plugins/source/azure/resources/services/dns/zones_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package dns - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createZones(router *mux.Router) error { - var item armdns.ZonesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnszones", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createMockRecordSets(router) -} - -func TestZones(t *testing.T) { - client.MockTestHelper(t, Zones(), createZones) -} diff --git a/plugins/source/azure/resources/services/dnsresolver/dns_forwarding_rulesets.go b/plugins/source/azure/resources/services/dnsresolver/dns_forwarding_rulesets.go deleted file mode 100644 index 203dcab7d0a594..00000000000000 --- a/plugins/source/azure/resources/services/dnsresolver/dns_forwarding_rulesets.go +++ /dev/null @@ -1,39 +0,0 @@ -package dnsresolver - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DnsForwardingRulesets() *schema.Table { - return &schema.Table{ - Name: "azure_dnsresolver_dns_forwarding_rulesets", - Resolver: fetchDnsForwardingRulesets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/dnsresolver/dns-forwarding-rulesets/list?tabs=HTTP#dnsforwardingruleset", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_dnsresolver_dns_forwarding_rulesets", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armdnsresolver.DNSForwardingRuleset{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDnsForwardingRulesets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdnsresolver.NewDNSForwardingRulesetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/dnsresolver/dns_forwarding_rulesets_mock_test.go b/plugins/source/azure/resources/services/dnsresolver/dns_forwarding_rulesets_mock_test.go deleted file mode 100644 index 209a2897e5d4c5..00000000000000 --- a/plugins/source/azure/resources/services/dnsresolver/dns_forwarding_rulesets_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package dnsresolver - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDnsForwardingRulesets(router *mux.Router) error { - var item armdnsresolver.DNSForwardingRulesetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDnsForwardingRulesets(t *testing.T) { - client.MockTestHelper(t, DnsForwardingRulesets(), createDnsForwardingRulesets) -} diff --git a/plugins/source/azure/resources/services/dnsresolver/dns_resolvers.go b/plugins/source/azure/resources/services/dnsresolver/dns_resolvers.go deleted file mode 100644 index 8c5d51d09dcf54..00000000000000 --- a/plugins/source/azure/resources/services/dnsresolver/dns_resolvers.go +++ /dev/null @@ -1,39 +0,0 @@ -package dnsresolver - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DnsResolvers() *schema.Table { - return &schema.Table{ - Name: "azure_dnsresolver_dns_resolvers", - Resolver: fetchDnsResolvers, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/dnsresolver/dns-resolvers/list?tabs=HTTP#dnsresolver", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_dnsresolver_dns_resolvers", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armdnsresolver.DNSResolver{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDnsResolvers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armdnsresolver.NewDNSResolversClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/dnsresolver/dns_resolvers_mock_test.go b/plugins/source/azure/resources/services/dnsresolver/dns_resolvers_mock_test.go deleted file mode 100644 index 199b1682311c23..00000000000000 --- a/plugins/source/azure/resources/services/dnsresolver/dns_resolvers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package dnsresolver - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDnsResolvers(router *mux.Router) error { - var item armdnsresolver.DNSResolversClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDnsResolvers(t *testing.T) { - client.MockTestHelper(t, DnsResolvers(), createDnsResolvers) -} diff --git a/plugins/source/azure/resources/services/elastic/monitors.go b/plugins/source/azure/resources/services/elastic/monitors.go deleted file mode 100644 index 3d0005141f3a68..00000000000000 --- a/plugins/source/azure/resources/services/elastic/monitors.go +++ /dev/null @@ -1,39 +0,0 @@ -package elastic - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Monitors() *schema.Table { - return &schema.Table{ - Name: "azure_elastic_monitors", - Resolver: fetchMonitors, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/elastic/monitors/list?tabs=HTTP#elasticmonitorresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_elastic_monitors", client.Namespacemicrosoft_elastic), - Transform: transformers.TransformWithStruct(&armelastic.MonitorResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchMonitors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armelastic.NewMonitorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/elastic/monitors_mock_test.go b/plugins/source/azure/resources/services/elastic/monitors_mock_test.go deleted file mode 100644 index 7b60c73e2758d7..00000000000000 --- a/plugins/source/azure/resources/services/elastic/monitors_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package elastic - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createMonitors(router *mux.Router) error { - var item armelastic.MonitorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Elastic/monitors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestMonitors(t *testing.T) { - client.MockTestHelper(t, Monitors(), createMonitors) -} diff --git a/plugins/source/azure/resources/services/engagementfabric/accounts.go b/plugins/source/azure/resources/services/engagementfabric/accounts.go deleted file mode 100644 index 78d57f7b36eb15..00000000000000 --- a/plugins/source/azure/resources/services/engagementfabric/accounts.go +++ /dev/null @@ -1,39 +0,0 @@ -package engagementfabric - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/armengagementfabric" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Accounts() *schema.Table { - return &schema.Table{ - Name: "azure_engagementfabric_accounts", - Resolver: fetchAccounts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/armengagementfabric@v0.1.0#Account", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_engagementfabric_accounts", client.Namespacemicrosoft_engagementfabric), - Transform: transformers.TransformWithStruct(&armengagementfabric.Account{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAccounts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armengagementfabric.NewAccountsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/engagementfabric/accounts_mock_test.go b/plugins/source/azure/resources/services/engagementfabric/accounts_mock_test.go deleted file mode 100644 index 6938d705570b7b..00000000000000 --- a/plugins/source/azure/resources/services/engagementfabric/accounts_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package engagementfabric - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/armengagementfabric" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAccounts(router *mux.Router) error { - var item armengagementfabric.AccountsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.EngagementFabric/Accounts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAccounts(t *testing.T) { - client.MockTestHelper(t, Accounts(), createAccounts) -} diff --git a/plugins/source/azure/resources/services/eventgrid/topic_types.go b/plugins/source/azure/resources/services/eventgrid/topic_types.go deleted file mode 100644 index 95e5a641bb6fa5..00000000000000 --- a/plugins/source/azure/resources/services/eventgrid/topic_types.go +++ /dev/null @@ -1,37 +0,0 @@ -package eventgrid - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func TopicTypes() *schema.Table { - return &schema.Table{ - Name: "azure_eventgrid_topic_types", - Resolver: fetchTopicTypes, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/eventgrid/controlplane-version2022-06-15/topic-types/list?tabs=HTTP#topictypeinfo", - Transform: transformers.TransformWithStruct(&armeventgrid.TopicTypeInfo{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchTopicTypes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armeventgrid.NewTopicTypesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/eventgrid/topic_types_mock_test.go b/plugins/source/azure/resources/services/eventgrid/topic_types_mock_test.go deleted file mode 100644 index 262b19d31c05ad..00000000000000 --- a/plugins/source/azure/resources/services/eventgrid/topic_types_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package eventgrid - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTopicTypes(router *mux.Router) error { - var item armeventgrid.TopicTypesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/providers/Microsoft.EventGrid/topicTypes", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestTopicTypes(t *testing.T) { - client.MockTestHelper(t, TopicTypes(), createTopicTypes) -} diff --git a/plugins/source/azure/resources/services/eventhub/namespaces.go b/plugins/source/azure/resources/services/eventhub/namespaces.go deleted file mode 100644 index 8c5fc409421351..00000000000000 --- a/plugins/source/azure/resources/services/eventhub/namespaces.go +++ /dev/null @@ -1,42 +0,0 @@ -package eventhub - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Namespaces() *schema.Table { - return &schema.Table{ - Name: "azure_eventhub_namespaces", - Resolver: fetchNamespaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/eventhub/stable/namespaces/list?tabs=HTTP#ehnamespace", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_eventhub_namespaces", client.Namespacemicrosoft_eventhub), - Transform: transformers.TransformWithStruct(&armeventhub.EHNamespace{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - namespaceNetworkRuleSets(), - }, - } -} - -func fetchNamespaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armeventhub.NewNamespacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/eventhub/namespaces_mock_test.go b/plugins/source/azure/resources/services/eventhub/namespaces_mock_test.go deleted file mode 100644 index 2a6df85e704889..00000000000000 --- a/plugins/source/azure/resources/services/eventhub/namespaces_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package eventhub - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNamespaces(router *mux.Router) error { - var item armeventhub.NamespacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createNamespaceRuleSets(router) -} - -func TestNamespaces(t *testing.T) { - client.MockTestHelper(t, Namespaces(), createNamespaces) -} diff --git a/plugins/source/azure/resources/services/eventhub/network_rule_sets.go b/plugins/source/azure/resources/services/eventhub/network_rule_sets.go deleted file mode 100644 index 4144c0ca40c11f..00000000000000 --- a/plugins/source/azure/resources/services/eventhub/network_rule_sets.go +++ /dev/null @@ -1,43 +0,0 @@ -package eventhub - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func namespaceNetworkRuleSets() *schema.Table { - return &schema.Table{ - Name: "azure_eventhub_namespace_network_rule_sets", - Resolver: fetchNetworkRuleSets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/eventhub/stable/network-rule-sets/list-network-rule-set?tabs=HTTP#networkruleset", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_eventhub_network_rule_sets", client.Namespacemicrosoft_eventhub), - Transform: transformers.TransformWithStruct(&armeventhub.NetworkRuleSet{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchNetworkRuleSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armeventhub.EHNamespace) - cl := meta.(*client.Client) - svc, err := armeventhub.NewNamespacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - - resp, err := svc.ListNetworkRuleSet(ctx, group, *p.Name, nil) - if err != nil { - return err - } - res <- resp.Value - - return nil -} diff --git a/plugins/source/azure/resources/services/eventhub/network_rule_sets_mock_test.go b/plugins/source/azure/resources/services/eventhub/network_rule_sets_mock_test.go deleted file mode 100644 index 83d9487cfd04f6..00000000000000 --- a/plugins/source/azure/resources/services/eventhub/network_rule_sets_mock_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package eventhub - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNamespaceRuleSets(router *mux.Router) error { - var item armeventhub.NamespacesClientListNetworkRuleSetResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.EventHub/namespaces/test string/networkRuleSets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/frontdoor/front_doors.go b/plugins/source/azure/resources/services/frontdoor/front_doors.go deleted file mode 100644 index ee5bdc2808b358..00000000000000 --- a/plugins/source/azure/resources/services/frontdoor/front_doors.go +++ /dev/null @@ -1,39 +0,0 @@ -package frontdoor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func FrontDoors() *schema.Table { - return &schema.Table{ - Name: "azure_frontdoor_front_doors", - Resolver: fetchFrontDoors, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/frontdoorservice/frontdoor/front-doors/list?tabs=HTTP#frontdoor", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_frontdoor_front_doors", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armfrontdoor.FrontDoor{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchFrontDoors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armfrontdoor.NewFrontDoorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/frontdoor/front_doors_mock_test.go b/plugins/source/azure/resources/services/frontdoor/front_doors_mock_test.go deleted file mode 100644 index fe1ccefdc7d14f..00000000000000 --- a/plugins/source/azure/resources/services/frontdoor/front_doors_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package frontdoor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createFrontDoors(router *mux.Router) error { - var item armfrontdoor.FrontDoorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestFrontDoors(t *testing.T) { - client.MockTestHelper(t, FrontDoors(), createFrontDoors) -} diff --git a/plugins/source/azure/resources/services/frontdoor/managed_rule_sets.go b/plugins/source/azure/resources/services/frontdoor/managed_rule_sets.go deleted file mode 100644 index b611c9491b93be..00000000000000 --- a/plugins/source/azure/resources/services/frontdoor/managed_rule_sets.go +++ /dev/null @@ -1,39 +0,0 @@ -package frontdoor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ManagedRuleSets() *schema.Table { - return &schema.Table{ - Name: "azure_frontdoor_managed_rule_sets", - Resolver: fetchManagedRuleSets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/frontdoor/webapplicationfirewall/managed-rule-sets/list#managedrulesetdefinition", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_frontdoor_managed_rule_sets", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armfrontdoor.ManagedRuleSetDefinition{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchManagedRuleSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armfrontdoor.NewManagedRuleSetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/frontdoor/managed_rule_sets_mock_test.go b/plugins/source/azure/resources/services/frontdoor/managed_rule_sets_mock_test.go deleted file mode 100644 index b450db24f835b6..00000000000000 --- a/plugins/source/azure/resources/services/frontdoor/managed_rule_sets_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package frontdoor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createManagedRuleSets(router *mux.Router) error { - var item armfrontdoor.ManagedRuleSetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestManagedRuleSets(t *testing.T) { - client.MockTestHelper(t, ManagedRuleSets(), createManagedRuleSets) -} diff --git a/plugins/source/azure/resources/services/frontdoor/network_experiment_profiles.go b/plugins/source/azure/resources/services/frontdoor/network_experiment_profiles.go deleted file mode 100644 index 2f6751ff17f0f1..00000000000000 --- a/plugins/source/azure/resources/services/frontdoor/network_experiment_profiles.go +++ /dev/null @@ -1,39 +0,0 @@ -package frontdoor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func NetworkExperimentProfiles() *schema.Table { - return &schema.Table{ - Name: "azure_frontdoor_network_experiment_profiles", - Resolver: fetchNetworkExperimentProfiles, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/internetanalyzer/network-experiment-profiles/list?tabs=HTTP#profile", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_frontdoor_network_experiment_profiles", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armfrontdoor.Profile{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchNetworkExperimentProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armfrontdoor.NewNetworkExperimentProfilesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/frontdoor/network_experiment_profiles_mock_test.go b/plugins/source/azure/resources/services/frontdoor/network_experiment_profiles_mock_test.go deleted file mode 100644 index 41f0808e76eefd..00000000000000 --- a/plugins/source/azure/resources/services/frontdoor/network_experiment_profiles_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package frontdoor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNetworkExperimentProfiles(router *mux.Router) error { - var item armfrontdoor.NetworkExperimentProfilesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/NetworkExperimentProfiles", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestNetworkExperimentProfiles(t *testing.T) { - client.MockTestHelper(t, NetworkExperimentProfiles(), createNetworkExperimentProfiles) -} diff --git a/plugins/source/azure/resources/services/hanaonazure/sap_monitors.go b/plugins/source/azure/resources/services/hanaonazure/sap_monitors.go deleted file mode 100644 index 8ba84d53d695b2..00000000000000 --- a/plugins/source/azure/resources/services/hanaonazure/sap_monitors.go +++ /dev/null @@ -1,39 +0,0 @@ -package hanaonazure - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhanaonazure" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SapMonitors() *schema.Table { - return &schema.Table{ - Name: "azure_hanaonazure_sap_monitors", - Resolver: fetchSapMonitors, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhanaonazure@v0.5.0#SapMonitor", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_hanaonazure_sap_monitors", client.Namespacemicrosoft_hanaonazure), - Transform: transformers.TransformWithStruct(&armhanaonazure.SapMonitor{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSapMonitors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armhanaonazure.NewSapMonitorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/hanaonazure/sap_monitors_mock_test.go b/plugins/source/azure/resources/services/hanaonazure/sap_monitors_mock_test.go deleted file mode 100644 index ab69953d704ac9..00000000000000 --- a/plugins/source/azure/resources/services/hanaonazure/sap_monitors_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package hanaonazure - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhanaonazure" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSapMonitors(router *mux.Router) error { - var item armhanaonazure.SapMonitorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSapMonitors(t *testing.T) { - client.MockTestHelper(t, SapMonitors(), createSapMonitors) -} diff --git a/plugins/source/azure/resources/services/hdinsight/clusters.go b/plugins/source/azure/resources/services/hdinsight/clusters.go deleted file mode 100644 index 20ffbfdf2e4063..00000000000000 --- a/plugins/source/azure/resources/services/hdinsight/clusters.go +++ /dev/null @@ -1,39 +0,0 @@ -package hdinsight - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsight/armhdinsight" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Clusters() *schema.Table { - return &schema.Table{ - Name: "azure_hdinsight_clusters", - Resolver: fetchClusters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/hdinsight/2021-06-01/clusters/list?tabs=HTTP#cluster", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_hdinsight_clusters", client.Namespacemicrosoft_hdinsight), - Transform: transformers.TransformWithStruct(&armhdinsight.Cluster{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armhdinsight.NewClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/hdinsight/clusters_mock_test.go b/plugins/source/azure/resources/services/hdinsight/clusters_mock_test.go deleted file mode 100644 index 2be6746920a33b..00000000000000 --- a/plugins/source/azure/resources/services/hdinsight/clusters_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package hdinsight - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsight/armhdinsight" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createClusters(router *mux.Router) error { - var item armhdinsight.ClustersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestClusters(t *testing.T) { - client.MockTestHelper(t, Clusters(), createClusters) -} diff --git a/plugins/source/azure/resources/services/healthbot/bots.go b/plugins/source/azure/resources/services/healthbot/bots.go deleted file mode 100644 index f2a9d32c6812fd..00000000000000 --- a/plugins/source/azure/resources/services/healthbot/bots.go +++ /dev/null @@ -1,20 +0,0 @@ -package healthbot - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Bots() *schema.Table { - return &schema.Table{ - Name: "azure_healthbot_bots", - Resolver: fetchBots, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot@v1.0.0#HealthBot", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_healthbot_bots", client.Namespacemicrosoft_healthbot), - Transform: transformers.TransformWithStruct(&armhealthbot.HealthBot{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} diff --git a/plugins/source/azure/resources/services/healthbot/bots_fetch.go b/plugins/source/azure/resources/services/healthbot/bots_fetch.go deleted file mode 100644 index 50b990363a05db..00000000000000 --- a/plugins/source/azure/resources/services/healthbot/bots_fetch.go +++ /dev/null @@ -1,26 +0,0 @@ -package healthbot - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchBots(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armhealthbot.NewBotsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/healthbot/bots_mock_test.go b/plugins/source/azure/resources/services/healthbot/bots_mock_test.go deleted file mode 100644 index 3e7cd68f757e08..00000000000000 --- a/plugins/source/azure/resources/services/healthbot/bots_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package healthbot - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBots(router *mux.Router) error { - var item armhealthbot.BotsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.HealthBot/healthBots", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBots(t *testing.T) { - client.MockTestHelper(t, Bots(), createBots) -} diff --git a/plugins/source/azure/resources/services/healthcareapis/services.go b/plugins/source/azure/resources/services/healthcareapis/services.go deleted file mode 100644 index 25904a176f24d1..00000000000000 --- a/plugins/source/azure/resources/services/healthcareapis/services.go +++ /dev/null @@ -1,39 +0,0 @@ -package healthcareapis - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Services() *schema.Table { - return &schema.Table{ - Name: "azure_healthcareapis_services", - Resolver: fetchServices, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/healthcareapis/services/list?tabs=HTTP#servicesdescription", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_healthcareapis_services", client.Namespacemicrosoft_healthcareapis), - Transform: transformers.TransformWithStruct(&armhealthcareapis.ServicesDescription{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armhealthcareapis.NewServicesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/healthcareapis/services_mock_test.go b/plugins/source/azure/resources/services/healthcareapis/services_mock_test.go deleted file mode 100644 index b803ef1be217d4..00000000000000 --- a/plugins/source/azure/resources/services/healthcareapis/services_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package healthcareapis - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServices(router *mux.Router) error { - var item armhealthcareapis.ServicesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.HealthcareApis/services", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServices(t *testing.T) { - client.MockTestHelper(t, Services(), createServices) -} diff --git a/plugins/source/azure/resources/services/hybridcompute/private_link_scopes.go b/plugins/source/azure/resources/services/hybridcompute/private_link_scopes.go deleted file mode 100644 index e9146174dfd80e..00000000000000 --- a/plugins/source/azure/resources/services/hybridcompute/private_link_scopes.go +++ /dev/null @@ -1,39 +0,0 @@ -package hybridcompute - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateLinkScopes() *schema.Table { - return &schema.Table{ - Name: "azure_hybridcompute_private_link_scopes", - Resolver: fetchPrivateLinkScopes, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/hybridcompute/private-link-scopes/list?tabs=HTTP#hybridcomputeprivatelinkscope", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_hybridcompute_private_link_scopes", client.Namespacemicrosoft_hybridcompute), - Transform: transformers.TransformWithStruct(&armhybridcompute.PrivateLinkScope{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPrivateLinkScopes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armhybridcompute.NewPrivateLinkScopesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/hybridcompute/private_link_scopes_mock_test.go b/plugins/source/azure/resources/services/hybridcompute/private_link_scopes_mock_test.go deleted file mode 100644 index 76b6c944f22976..00000000000000 --- a/plugins/source/azure/resources/services/hybridcompute/private_link_scopes_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package hybridcompute - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateLinkScopes(router *mux.Router) error { - var item armhybridcompute.PrivateLinkScopesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/privateLinkScopes", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPrivateLinkScopes(t *testing.T) { - client.MockTestHelper(t, PrivateLinkScopes(), createPrivateLinkScopes) -} diff --git a/plugins/source/azure/resources/services/hybriddatamanager/data_managers.go b/plugins/source/azure/resources/services/hybriddatamanager/data_managers.go deleted file mode 100644 index f65a982f45e25b..00000000000000 --- a/plugins/source/azure/resources/services/hybriddatamanager/data_managers.go +++ /dev/null @@ -1,39 +0,0 @@ -package hybriddatamanager - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DataManagers() *schema.Table { - return &schema.Table{ - Name: "azure_hybriddatamanager_data_managers", - Resolver: fetchDataManagers, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager@v1.0.0#DataManager", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_hybriddatamanager_data_managers", client.Namespacemicrosoft_hybriddata), - Transform: transformers.TransformWithStruct(&armhybriddatamanager.DataManager{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDataManagers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armhybriddatamanager.NewDataManagersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/hybriddatamanager/data_managers_mock_test.go b/plugins/source/azure/resources/services/hybriddatamanager/data_managers_mock_test.go deleted file mode 100644 index e9ecb515d1844c..00000000000000 --- a/plugins/source/azure/resources/services/hybriddatamanager/data_managers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package hybriddatamanager - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDataManagers(router *mux.Router) error { - var item armhybriddatamanager.DataManagersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.HybridData/dataManagers", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDataManagers(t *testing.T) { - client.MockTestHelper(t, DataManagers(), createDataManagers) -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault.go b/plugins/source/azure/resources/services/keyvault/keyvault.go deleted file mode 100644 index 42b423d1c06dd3..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault.go +++ /dev/null @@ -1,70 +0,0 @@ -package keyvault - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Keyvault() *schema.Table { - return &schema.Table{ - Name: "azure_keyvault_keyvault", - PreResourceResolver: keyvaultGet, - Resolver: fetchKeyvault, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/keyvault/keyvault/vaults/get?tabs=HTTP#vault", - Multiplex: client.SubscriptionMultiplex, - Transform: transformers.TransformWithStruct(&armkeyvault.Vault{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - - Relations: []*schema.Table{ - keyvault_keys(), - keyvault_secrets(), - }, - } -} - -func keyvaultGet(ctx context.Context, meta schema.ClientMeta, resource *schema.Resource) error { - r := resource.Item.(*armkeyvault.Vault) - cl := meta.(*client.Client) - svc, err := armkeyvault.NewVaultsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*r.ID) - if err != nil { - return err - } - resp, err := svc.Get(ctx, group, *r.Name, nil) - if err != nil { - return err - } - resource.SetItem(resp.Vault) - return nil -} - -func fetchKeyvault(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armkeyvault.NewVaultsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - - for _, r := range p.Value { - res <- &armkeyvault.Vault{ - ID: r.ID, - Name: r.Name, - } - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_keys.go b/plugins/source/azure/resources/services/keyvault/keyvault_keys.go deleted file mode 100644 index 09296873d32479..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_keys.go +++ /dev/null @@ -1,19 +0,0 @@ -package keyvault - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func keyvault_keys() *schema.Table { - return &schema.Table{ - Name: "azure_keyvault_keyvault_keys", - Resolver: fetchKeyvaultKeys, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault@v1.0.0#Key", - Transform: transformers.TransformWithStruct(&armkeyvault.Key{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_keys_fetch.go b/plugins/source/azure/resources/services/keyvault/keyvault_keys_fetch.go deleted file mode 100644 index 1e93f03c100078..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_keys_fetch.go +++ /dev/null @@ -1,31 +0,0 @@ -package keyvault - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchKeyvaultKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armkeyvault.NewKeysClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - item := parent.Item.(armkeyvault.Vault) - group, err := client.ParseResourceGroup(*item.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *item.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_keys_mock_test.go b/plugins/source/azure/resources/services/keyvault/keyvault_keys_mock_test.go deleted file mode 100644 index 58b4e469db869b..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_keys_mock_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package keyvault - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createKeyvaultKeys(router *mux.Router) error { - var item armkeyvault.KeysClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/keys", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_managed_hsms.go b/plugins/source/azure/resources/services/keyvault/keyvault_managed_hsms.go deleted file mode 100644 index e81c26c46f7c44..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_managed_hsms.go +++ /dev/null @@ -1,39 +0,0 @@ -package keyvault - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func KeyvaultManagedHsms() *schema.Table { - return &schema.Table{ - Name: "azure_keyvault_keyvault_managed_hsms", - Resolver: fetchKeyvaultManagedHsms, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/keyvault/managedhsm/managed-hsms/list-by-subscription?tabs=HTTP#managedhsm", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_keyvault_keyvault_managed_hsms", client.Namespacemicrosoft_keyvault), - Transform: transformers.TransformWithStruct(&armkeyvault.ManagedHsm{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchKeyvaultManagedHsms(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armkeyvault.NewManagedHsmsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_managed_hsms_mock_test.go b/plugins/source/azure/resources/services/keyvault/keyvault_managed_hsms_mock_test.go deleted file mode 100644 index c8000689e27190..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_managed_hsms_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package keyvault - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createKeyvaultManagedHsms(router *mux.Router) error { - var item armkeyvault.ManagedHsmsClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/managedHSMs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestKeyvaultManagedHsms(t *testing.T) { - client.MockTestHelper(t, KeyvaultManagedHsms(), createKeyvaultManagedHsms) -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_mock_test.go b/plugins/source/azure/resources/services/keyvault/keyvault_mock_test.go deleted file mode 100644 index ac614f85beec72..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_mock_test.go +++ /dev/null @@ -1,60 +0,0 @@ -package keyvault - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createKeyvault(router *mux.Router) error { - var item armkeyvault.VaultsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resources", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - var v armkeyvault.VaultsClientGetResponse - if err := faker.FakeObject(&v); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.KeyVault/vaults/test string", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&v) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - if err := createKeyvaultKeys(router); err != nil { - return err - } - return createKeyvaultSecrets(router) -} - -func TestKeyvault(t *testing.T) { - client.MockTestHelper(t, Keyvault(), createKeyvault) -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_secrets.go b/plugins/source/azure/resources/services/keyvault/keyvault_secrets.go deleted file mode 100644 index 2615e1ce27d35c..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_secrets.go +++ /dev/null @@ -1,19 +0,0 @@ -package keyvault - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func keyvault_secrets() *schema.Table { - return &schema.Table{ - Name: "azure_keyvault_keyvault_secrets", - Resolver: fetchKeyvaultSecrets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault@v1.0.0#Secret", - Transform: transformers.TransformWithStruct(&armkeyvault.Secret{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_secrets_fetch.go b/plugins/source/azure/resources/services/keyvault/keyvault_secrets_fetch.go deleted file mode 100644 index 7f6ad49bdc1454..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_secrets_fetch.go +++ /dev/null @@ -1,31 +0,0 @@ -package keyvault - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchKeyvaultSecrets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armkeyvault.NewSecretsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - item := parent.Item.(armkeyvault.Vault) - group, err := client.ParseResourceGroup(*item.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *item.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/keyvault/keyvault_secrets_mock_test.go b/plugins/source/azure/resources/services/keyvault/keyvault_secrets_mock_test.go deleted file mode 100644 index 63e83c84618b82..00000000000000 --- a/plugins/source/azure/resources/services/keyvault/keyvault_secrets_mock_test.go +++ /dev/null @@ -1,33 +0,0 @@ -package keyvault - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createKeyvaultSecrets(router *mux.Router) error { - var item armkeyvault.SecretsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/secrets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/kusto/clusters.go b/plugins/source/azure/resources/services/kusto/clusters.go deleted file mode 100644 index 8ae3194b3add93..00000000000000 --- a/plugins/source/azure/resources/services/kusto/clusters.go +++ /dev/null @@ -1,39 +0,0 @@ -package kusto - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Clusters() *schema.Table { - return &schema.Table{ - Name: "azure_kusto_clusters", - Resolver: fetchClusters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/azurerekusto/clusters/list?tabs=HTTP#cluster", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_kusto_clusters", client.Namespacemicrosoft_kusto), - Transform: transformers.TransformWithStruct(&armkusto.Cluster{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armkusto.NewClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/kusto/clusters_mock_test.go b/plugins/source/azure/resources/services/kusto/clusters_mock_test.go deleted file mode 100644 index db5c6c5043f9b4..00000000000000 --- a/plugins/source/azure/resources/services/kusto/clusters_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package kusto - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createClusters(router *mux.Router) error { - var item armkusto.ClustersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestClusters(t *testing.T) { - client.MockTestHelper(t, Clusters(), createClusters) -} diff --git a/plugins/source/azure/resources/services/logic/workflows.go b/plugins/source/azure/resources/services/logic/workflows.go deleted file mode 100644 index 50058a0f714e1a..00000000000000 --- a/plugins/source/azure/resources/services/logic/workflows.go +++ /dev/null @@ -1,39 +0,0 @@ -package logic - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Workflows() *schema.Table { - return &schema.Table{ - Name: "azure_logic_workflows", - Resolver: fetchWorkflows, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/logic/workflows/list-by-subscription?tabs=HTTP#workflow", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_logic_workflows", client.Namespacemicrosoft_logic), - Transform: transformers.TransformWithStruct(&armlogic.Workflow{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWorkflows(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armlogic.NewWorkflowsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/logic/workflows_mock_test.go b/plugins/source/azure/resources/services/logic/workflows_mock_test.go deleted file mode 100644 index b780e22b93eb64..00000000000000 --- a/plugins/source/azure/resources/services/logic/workflows_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package logic - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWorkflows(router *mux.Router) error { - var item armlogic.WorkflowsClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Logic/workflows", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestWorkflows(t *testing.T) { - client.MockTestHelper(t, Workflows(), createWorkflows) -} diff --git a/plugins/source/azure/resources/services/maintenance/configurations.go b/plugins/source/azure/resources/services/maintenance/configurations.go deleted file mode 100644 index b1a71746033125..00000000000000 --- a/plugins/source/azure/resources/services/maintenance/configurations.go +++ /dev/null @@ -1,39 +0,0 @@ -package maintenance - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Configurations() *schema.Table { - return &schema.Table{ - Name: "azure_maintenance_configurations", - Resolver: fetchConfigurations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/maintenance/maintenance-configurations/list?tabs=HTTP#maintenanceconfiguration", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_maintenance_configurations", client.Namespacemicrosoft_maintenance), - Transform: transformers.TransformWithStruct(&armmaintenance.Configuration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmaintenance.NewConfigurationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/maintenance/configurations_mock_test.go b/plugins/source/azure/resources/services/maintenance/configurations_mock_test.go deleted file mode 100644 index 80a723e5998cad..00000000000000 --- a/plugins/source/azure/resources/services/maintenance/configurations_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package maintenance - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createConfigurations(router *mux.Router) error { - var item armmaintenance.ConfigurationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestConfigurations(t *testing.T) { - client.MockTestHelper(t, Configurations(), createConfigurations) -} diff --git a/plugins/source/azure/resources/services/maintenance/public_maintenance_configurations.go b/plugins/source/azure/resources/services/maintenance/public_maintenance_configurations.go deleted file mode 100644 index ca41327840f124..00000000000000 --- a/plugins/source/azure/resources/services/maintenance/public_maintenance_configurations.go +++ /dev/null @@ -1,39 +0,0 @@ -package maintenance - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PublicMaintenanceConfigurations() *schema.Table { - return &schema.Table{ - Name: "azure_maintenance_public_maintenance_configurations", - Resolver: fetchPublicMaintenanceConfigurations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/maintenance/public-maintenance-configurations/list?tabs=HTTP#maintenanceconfiguration", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_maintenance_public_maintenance_configurations", client.Namespacemicrosoft_maintenance), - Transform: transformers.TransformWithStruct(&armmaintenance.Configuration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPublicMaintenanceConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmaintenance.NewPublicMaintenanceConfigurationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/maintenance/public_maintenance_configurations_mock_test.go b/plugins/source/azure/resources/services/maintenance/public_maintenance_configurations_mock_test.go deleted file mode 100644 index 9620a2cc1d66fd..00000000000000 --- a/plugins/source/azure/resources/services/maintenance/public_maintenance_configurations_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package maintenance - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPublicMaintenanceConfigurations(router *mux.Router) error { - var item armmaintenance.PublicMaintenanceConfigurationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPublicMaintenanceConfigurations(t *testing.T) { - client.MockTestHelper(t, PublicMaintenanceConfigurations(), createPublicMaintenanceConfigurations) -} diff --git a/plugins/source/azure/resources/services/managementgroups/entities.go b/plugins/source/azure/resources/services/managementgroups/entities.go deleted file mode 100644 index 5afcc6ae844669..00000000000000 --- a/plugins/source/azure/resources/services/managementgroups/entities.go +++ /dev/null @@ -1,37 +0,0 @@ -package managementgroups - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Entities() *schema.Table { - return &schema.Table{ - Name: "azure_managementgroups_entities", - Resolver: fetchEntities, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/managementgroups/entities/list?tabs=HTTP", - Transform: transformers.TransformWithStruct(&armmanagementgroups.EntityInfo{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchEntities(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmanagementgroups.NewEntitiesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/managementgroups/entities_mock_test.go b/plugins/source/azure/resources/services/managementgroups/entities_mock_test.go deleted file mode 100644 index 21f0e2bd77d058..00000000000000 --- a/plugins/source/azure/resources/services/managementgroups/entities_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package managementgroups - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createEntities(router *mux.Router) error { - var entityInfo armmanagementgroups.EntitiesClientListResponse - if err := faker.FakeObject(&entityInfo); err != nil { - return err - } - - router.HandleFunc("/providers/Microsoft.Management/getEntities", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&entityInfo) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestEntities(t *testing.T) { - client.MockTestHelper(t, Entities(), createEntities) -} diff --git a/plugins/source/azure/resources/services/managementgroups/managment_groups.go b/plugins/source/azure/resources/services/managementgroups/managment_groups.go deleted file mode 100644 index 441925c3dc88e5..00000000000000 --- a/plugins/source/azure/resources/services/managementgroups/managment_groups.go +++ /dev/null @@ -1,37 +0,0 @@ -package managementgroups - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ManagementGroups() *schema.Table { - return &schema.Table{ - Name: "azure_managementgroups_management_groups", - Resolver: fetchManagementGroups, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/managementgroups/management-groups/list?tabs=HTTP#managementgrouplistresult", - Transform: transformers.TransformWithStruct(&armmanagementgroups.ManagementGroupInfo{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchManagementGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmanagementgroups.NewClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/managementgroups/managment_groups_mock_test.go b/plugins/source/azure/resources/services/managementgroups/managment_groups_mock_test.go deleted file mode 100644 index 73826fefa698ce..00000000000000 --- a/plugins/source/azure/resources/services/managementgroups/managment_groups_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package managementgroups - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createGroups(router *mux.Router) error { - var groupInfo armmanagementgroups.ManagementGroupListResult - if err := faker.FakeObject(&groupInfo); err != nil { - return err - } - - router.HandleFunc("/providers/Microsoft.Management/managementGroups", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&groupInfo) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestManagementGroups(t *testing.T) { - client.MockTestHelper(t, ManagementGroups(), createGroups) -} diff --git a/plugins/source/azure/resources/services/marketplace/private_store.go b/plugins/source/azure/resources/services/marketplace/private_store.go deleted file mode 100644 index 1d4a8181ac2cd3..00000000000000 --- a/plugins/source/azure/resources/services/marketplace/private_store.go +++ /dev/null @@ -1,39 +0,0 @@ -package marketplace - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateStore() *schema.Table { - return &schema.Table{ - Name: "azure_marketplace_private_store", - Resolver: fetchPrivateStore, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace@v1.0.0#PrivateStore", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_marketplace_private_store", client.Namespacemicrosoft_marketplace), - Transform: transformers.TransformWithStruct(&armmarketplace.PrivateStore{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPrivateStore(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmarketplace.NewPrivateStoreClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/marketplace/private_store_mock_test.go b/plugins/source/azure/resources/services/marketplace/private_store_mock_test.go deleted file mode 100644 index 4b4029e8579a2b..00000000000000 --- a/plugins/source/azure/resources/services/marketplace/private_store_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package marketplace - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateStore(router *mux.Router) error { - var item armmarketplace.PrivateStoreClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Marketplace/privateStores", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPrivateStore(t *testing.T) { - client.MockTestHelper(t, PrivateStore(), createPrivateStore) -} diff --git a/plugins/source/azure/resources/services/monitor/activity_log_alerts.go b/plugins/source/azure/resources/services/monitor/activity_log_alerts.go deleted file mode 100644 index 17d735687b18b7..00000000000000 --- a/plugins/source/azure/resources/services/monitor/activity_log_alerts.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ActivityLogAlerts() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_activity_log_alerts", - Resolver: fetchActivityLogAlerts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/activity-log-alerts/list-by-subscription-id?tabs=HTTP#activitylogalertresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_activity_log_alerts", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.ActivityLogAlertResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchActivityLogAlerts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewActivityLogAlertsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionIDPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/activity_log_alerts_mock_test.go b/plugins/source/azure/resources/services/monitor/activity_log_alerts_mock_test.go deleted file mode 100644 index 8cc7a1312e91ba..00000000000000 --- a/plugins/source/azure/resources/services/monitor/activity_log_alerts_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createActivityLogAlerts(router *mux.Router) error { - var item armmonitor.ActivityLogAlertsClientListBySubscriptionIDResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyString := "" - item.NextLink = &emptyString - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestActivityLogAlerts(t *testing.T) { - client.MockTestHelper(t, ActivityLogAlerts(), createActivityLogAlerts) -} diff --git a/plugins/source/azure/resources/services/monitor/autoscale_settings.go b/plugins/source/azure/resources/services/monitor/autoscale_settings.go deleted file mode 100644 index 1c31517477a5c0..00000000000000 --- a/plugins/source/azure/resources/services/monitor/autoscale_settings.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AutoscaleSettings() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_autoscale_settings", - Resolver: fetchAutoscaleSetting, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/autoscale-settings/list-by-subscription?tabs=HTTP#autoscalesettingresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_autoscale_settings", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.AutoscaleSettingResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAutoscaleSetting(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewAutoscaleSettingsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/autoscale_settings_test.go b/plugins/source/azure/resources/services/monitor/autoscale_settings_test.go deleted file mode 100644 index 92ca9f60bf5c6f..00000000000000 --- a/plugins/source/azure/resources/services/monitor/autoscale_settings_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAutoscaleSettings(router *mux.Router) error { - var item armmonitor.AutoscaleSettingsClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyString := "" - item.NextLink = &emptyString - - router.HandleFunc("/subscriptions/"+client.TestSubscription+"/providers/Microsoft.Insights/autoscalesettings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestAutoscaleSettings(t *testing.T) { - client.MockTestHelper(t, AutoscaleSettings(), createAutoscaleSettings) -} diff --git a/plugins/source/azure/resources/services/monitor/diagnostic_settings.go b/plugins/source/azure/resources/services/monitor/diagnostic_settings.go deleted file mode 100644 index 5d9a95b6b0f0e5..00000000000000 --- a/plugins/source/azure/resources/services/monitor/diagnostic_settings.go +++ /dev/null @@ -1,64 +0,0 @@ -package monitor - -import ( - "context" - "errors" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -type diagnosticSettingsWrapper struct { - *armmonitor.DiagnosticSettingsResource - ResourceId string -} - -func diagnosticSettings() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_diagnostic_settings", - Resolver: fetchDiagnosticSettings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/diagnostic-settings/list?tabs=HTTP#diagnosticsettingsresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_diagnostic_settings", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&diagnosticSettingsWrapper{}, transformers.WithPrimaryKeys("ID"), transformers.WithUnwrapStructFields("DiagnosticSettingsResource")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func isResourceTypeNotSupported(err error) bool { - var azureErr *azcore.ResponseError - if errors.As(err, &azureErr) { - return azureErr != nil && azureErr.ErrorCode == "ResourceTypeNotSupported" - } - return false -} - -func fetchDiagnosticSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - r := parent.Item.(*armresources.GenericResourceExpanded) - svc, err := armmonitor.NewDiagnosticSettingsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(*r.ID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - if isResourceTypeNotSupported(err) { - break - } - return err - } - for _, ds := range p.Value { - res <- diagnosticSettingsWrapper{ - ds, - *r.ID, - } - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/log_profiles.go b/plugins/source/azure/resources/services/monitor/log_profiles.go deleted file mode 100644 index f619d50c91b492..00000000000000 --- a/plugins/source/azure/resources/services/monitor/log_profiles.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func LogProfiles() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_log_profiles", - Resolver: fetchLogProfiles, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/log-profiles/list?tabs=HTTP#logprofileresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_log_profiles", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.LogProfileResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchLogProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewLogProfilesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/log_profiles_mock_test.go b/plugins/source/azure/resources/services/monitor/log_profiles_mock_test.go deleted file mode 100644 index c7473b256277db..00000000000000 --- a/plugins/source/azure/resources/services/monitor/log_profiles_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createLogProfiles(router *mux.Router) error { - var item armmonitor.LogProfilesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestLogProfiles(t *testing.T) { - client.MockTestHelper(t, LogProfiles(), createLogProfiles) -} diff --git a/plugins/source/azure/resources/services/monitor/private_link_scopes.go b/plugins/source/azure/resources/services/monitor/private_link_scopes.go deleted file mode 100644 index 8a17a3c1f0dc82..00000000000000 --- a/plugins/source/azure/resources/services/monitor/private_link_scopes.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateLinkScopes() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_private_link_scopes", - Resolver: fetchPrivateLinkScopes, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/privatelinkscopes(preview)/private%20link%20scopes%20(preview)/list?tabs=HTTP#azuremonitorprivatelinkscope", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_private_link_scopes", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.AzureMonitorPrivateLinkScope{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPrivateLinkScopes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewPrivateLinkScopesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/private_link_scopes_mock_test.go b/plugins/source/azure/resources/services/monitor/private_link_scopes_mock_test.go deleted file mode 100644 index 173ddfb0b01ad3..00000000000000 --- a/plugins/source/azure/resources/services/monitor/private_link_scopes_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateLinkScopes(router *mux.Router) error { - var item armmonitor.PrivateLinkScopesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/microsoft.insights/privateLinkScopes", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPrivateLinkScopes(t *testing.T) { - client.MockTestHelper(t, PrivateLinkScopes(), createPrivateLinkScopes) -} diff --git a/plugins/source/azure/resources/services/monitor/resources.go b/plugins/source/azure/resources/services/monitor/resources.go deleted file mode 100644 index c35241d973bcdc..00000000000000 --- a/plugins/source/azure/resources/services/monitor/resources.go +++ /dev/null @@ -1,40 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Resources() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_resources", - Resolver: fetchResources, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/resources/list#genericresourceexpanded", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_diagnostic_settings", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armresources.GenericResourceExpanded{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{diagnosticSettings()}, - } -} - -func fetchResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armresources.NewClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/resources_mock_test.go b/plugins/source/azure/resources/services/monitor/resources_mock_test.go deleted file mode 100644 index d3694b3caf3399..00000000000000 --- a/plugins/source/azure/resources/services/monitor/resources_mock_test.go +++ /dev/null @@ -1,63 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createResources(router *mux.Router) error { - var item armresources.ClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resources", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func createDiagnosticSettings(router *mux.Router) error { - var item armmonitor.DiagnosticSettingsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - router.HandleFunc("/test string/providers/Microsoft.Insights/diagnosticSettings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createResources(router) -} - -func TestResources(t *testing.T) { - client.MockTestHelper(t, Resources(), createDiagnosticSettings) -} diff --git a/plugins/source/azure/resources/services/monitor/subscription_diagnostic_settings.go b/plugins/source/azure/resources/services/monitor/subscription_diagnostic_settings.go deleted file mode 100644 index aac45c9dcc6e10..00000000000000 --- a/plugins/source/azure/resources/services/monitor/subscription_diagnostic_settings.go +++ /dev/null @@ -1,41 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionDiagnosticSettings() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_subscription_diagnostic_settings", - Resolver: fetchSubscriptionDiagnosticSettings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/subscription-diagnostic-settings/list?tabs=HTTP#subscriptiondiagnosticsettingsresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_subscription_diagnostic_settings", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.DiagnosticSettingsResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSubscriptionDiagnosticSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewDiagnosticSettingsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager("/subscriptions/"+cl.SubscriptionId, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - for _, ds := range p.Value { - res <- ds - } - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/subscription_diagnostic_settings_test.go b/plugins/source/azure/resources/services/monitor/subscription_diagnostic_settings_test.go deleted file mode 100644 index 42a8bc91f292e6..00000000000000 --- a/plugins/source/azure/resources/services/monitor/subscription_diagnostic_settings_test.go +++ /dev/null @@ -1,38 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionDiagnosticSettings(router *mux.Router) error { - var item armmonitor.DiagnosticSettingsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - router.HandleFunc("/subscriptions/"+client.TestSubscription+"/providers/Microsoft.Insights/diagnosticSettings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionDiagnosticSettings(t *testing.T) { - client.MockTestHelper(t, SubscriptionDiagnosticSettings(), createSubscriptionDiagnosticSettings) -} diff --git a/plugins/source/azure/resources/services/monitor/tenant_activity_log_alerts.go b/plugins/source/azure/resources/services/monitor/tenant_activity_log_alerts.go deleted file mode 100644 index 0415f7cf696fc8..00000000000000 --- a/plugins/source/azure/resources/services/monitor/tenant_activity_log_alerts.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func TenantActivityLogAlerts() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_tenant_activity_log_alerts", - Resolver: fetchTenantActivityLogAlerts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/activity-log-alerts/list-by-subscription-id?tabs=HTTP#activitylogalertresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_tenant_activity_log_alerts", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.ActivityLogAlertResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} - -func fetchTenantActivityLogAlerts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewActivityLogAlertsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionIDPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/tenant_activity_log_alerts_mock_test.go b/plugins/source/azure/resources/services/monitor/tenant_activity_log_alerts_mock_test.go deleted file mode 100644 index 4c9063e455c678..00000000000000 --- a/plugins/source/azure/resources/services/monitor/tenant_activity_log_alerts_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTenantActivityLogAlerts(router *mux.Router) error { - var item armmonitor.ActivityLogAlertsClientListBySubscriptionIDResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Insights/activityLogAlerts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestTenantActivityLogAlerts(t *testing.T) { - client.MockTestHelper(t, TenantActivityLogAlerts(), createTenantActivityLogAlerts) -} diff --git a/plugins/source/azure/resources/services/monitor/tenant_activity_logs.go b/plugins/source/azure/resources/services/monitor/tenant_activity_logs.go deleted file mode 100644 index eb67ec6bd1f316..00000000000000 --- a/plugins/source/azure/resources/services/monitor/tenant_activity_logs.go +++ /dev/null @@ -1,39 +0,0 @@ -package monitor - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func TenantActivityLogs() *schema.Table { - return &schema.Table{ - Name: "azure_monitor_tenant_activity_logs", - Resolver: fetchTenantActivityLogs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/monitor/tenant-activity-logs/list?tabs=HTTP#eventdata", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_monitor_tenant_activity_logs", client.Namespacemicrosoft_insights), - Transform: transformers.TransformWithStruct(&armmonitor.EventData{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchTenantActivityLogs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armmonitor.NewTenantActivityLogsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/monitor/tenant_activity_logs_mock_test.go b/plugins/source/azure/resources/services/monitor/tenant_activity_logs_mock_test.go deleted file mode 100644 index 6b0524ee22f303..00000000000000 --- a/plugins/source/azure/resources/services/monitor/tenant_activity_logs_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package monitor - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTenantActivityLogs(router *mux.Router) error { - var item armmonitor.TenantActivityLogsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Insights/eventtypes/management/values", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestTenantActivityLogs(t *testing.T) { - client.MockTestHelper(t, TenantActivityLogs(), createTenantActivityLogs) -} diff --git a/plugins/source/azure/resources/services/network/application_gateways.go b/plugins/source/azure/resources/services/network/application_gateways.go deleted file mode 100644 index f88c03bceefdef..00000000000000 --- a/plugins/source/azure/resources/services/network/application_gateways.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ApplicationGateways() *schema.Table { - return &schema.Table{ - Name: "azure_network_application_gateways", - Resolver: fetchApplicationGateways, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/application-gateway/application-gateways/list?tabs=HTTP#applicationgateway", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_application_gateways", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ApplicationGateway{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchApplicationGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewApplicationGatewaysClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/application_gateways_mock_test.go b/plugins/source/azure/resources/services/network/application_gateways_mock_test.go deleted file mode 100644 index 1b7dec7bfce005..00000000000000 --- a/plugins/source/azure/resources/services/network/application_gateways_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createApplicationGateways(router *mux.Router) error { - var item armnetwork.ApplicationGatewaysClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestApplicationGateways(t *testing.T) { - client.MockTestHelper(t, ApplicationGateways(), createApplicationGateways) -} diff --git a/plugins/source/azure/resources/services/network/application_security_groups.go b/plugins/source/azure/resources/services/network/application_security_groups.go deleted file mode 100644 index 76879498a137cf..00000000000000 --- a/plugins/source/azure/resources/services/network/application_security_groups.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ApplicationSecurityGroups() *schema.Table { - return &schema.Table{ - Name: "azure_network_application_security_groups", - Resolver: fetchApplicationSecurityGroups, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/application-security-groups/list?tabs=HTTP#applicationsecuritygroup", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_application_security_groups", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ApplicationSecurityGroup{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchApplicationSecurityGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewApplicationSecurityGroupsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/application_security_groups_mock_test.go b/plugins/source/azure/resources/services/network/application_security_groups_mock_test.go deleted file mode 100644 index 4991ebfebadf07..00000000000000 --- a/plugins/source/azure/resources/services/network/application_security_groups_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createApplicationSecurityGroups(router *mux.Router) error { - var item armnetwork.ApplicationSecurityGroupsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestApplicationSecurityGroups(t *testing.T) { - client.MockTestHelper(t, ApplicationSecurityGroups(), createApplicationSecurityGroups) -} diff --git a/plugins/source/azure/resources/services/network/azure_firewall_fqdn_tags.go b/plugins/source/azure/resources/services/network/azure_firewall_fqdn_tags.go deleted file mode 100644 index 70c7b5aec12b95..00000000000000 --- a/plugins/source/azure/resources/services/network/azure_firewall_fqdn_tags.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AzureFirewallFqdnTags() *schema.Table { - return &schema.Table{ - Name: "azure_network_azure_firewall_fqdn_tags", - Resolver: fetchAzureFirewallFqdnTags, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/firewall/azure-firewall-fqdn-tags/list-all?tabs=HTTP#azurefirewallfqdntag", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_azure_firewall_fqdn_tags", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.AzureFirewallFqdnTag{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchAzureFirewallFqdnTags(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewAzureFirewallFqdnTagsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/azure_firewall_fqdn_tags_mock_test.go b/plugins/source/azure/resources/services/network/azure_firewall_fqdn_tags_mock_test.go deleted file mode 100644 index 4ddb2019f88a4a..00000000000000 --- a/plugins/source/azure/resources/services/network/azure_firewall_fqdn_tags_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAzureFirewallFqdnTags(router *mux.Router) error { - var item armnetwork.AzureFirewallFqdnTagsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAzureFirewallFqdnTags(t *testing.T) { - client.MockTestHelper(t, AzureFirewallFqdnTags(), createAzureFirewallFqdnTags) -} diff --git a/plugins/source/azure/resources/services/network/azure_firewalls.go b/plugins/source/azure/resources/services/network/azure_firewalls.go deleted file mode 100644 index 001f2f781e1cb5..00000000000000 --- a/plugins/source/azure/resources/services/network/azure_firewalls.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AzureFirewalls() *schema.Table { - return &schema.Table{ - Name: "azure_network_azure_firewalls", - Resolver: fetchAzureFirewalls, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/firewall/azure-firewalls/list?tabs=HTTP#azurefirewall", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_azure_firewalls", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.AzureFirewall{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAzureFirewalls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewAzureFirewallsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/azure_firewalls_mock_test.go b/plugins/source/azure/resources/services/network/azure_firewalls_mock_test.go deleted file mode 100644 index b653ed3089ea20..00000000000000 --- a/plugins/source/azure/resources/services/network/azure_firewalls_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAzureFirewalls(router *mux.Router) error { - var item armnetwork.AzureFirewallsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAzureFirewalls(t *testing.T) { - client.MockTestHelper(t, AzureFirewalls(), createAzureFirewalls) -} diff --git a/plugins/source/azure/resources/services/network/bastion_hosts.go b/plugins/source/azure/resources/services/network/bastion_hosts.go deleted file mode 100644 index e3d5300a8ddc6f..00000000000000 --- a/plugins/source/azure/resources/services/network/bastion_hosts.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func BastionHosts() *schema.Table { - return &schema.Table{ - Name: "azure_network_bastion_hosts", - Resolver: fetchBastionHosts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/bastion-hosts/list?tabs=HTTP#bastionhost", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_bastion_hosts", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.BastionHost{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchBastionHosts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewBastionHostsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/bastion_hosts_mock_test.go b/plugins/source/azure/resources/services/network/bastion_hosts_mock_test.go deleted file mode 100644 index 952e98dc36ec24..00000000000000 --- a/plugins/source/azure/resources/services/network/bastion_hosts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createBastionHosts(router *mux.Router) error { - var item armnetwork.BastionHostsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/bastionHosts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestBastionHosts(t *testing.T) { - client.MockTestHelper(t, BastionHosts(), createBastionHosts) -} diff --git a/plugins/source/azure/resources/services/network/custom_ip_prefixes.go b/plugins/source/azure/resources/services/network/custom_ip_prefixes.go deleted file mode 100644 index 8ca52f6863e3e5..00000000000000 --- a/plugins/source/azure/resources/services/network/custom_ip_prefixes.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func CustomIpPrefixes() *schema.Table { - return &schema.Table{ - Name: "azure_network_custom_ip_prefixes", - Resolver: fetchCustomIpPrefixes, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/custom-ip-prefixes/list?tabs=HTTP#customipprefix", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_custom_ip_prefixes", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.CustomIPPrefix{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchCustomIpPrefixes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewCustomIPPrefixesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/custom_ip_prefixes_mock_test.go b/plugins/source/azure/resources/services/network/custom_ip_prefixes_mock_test.go deleted file mode 100644 index 9e4aeb2e59692d..00000000000000 --- a/plugins/source/azure/resources/services/network/custom_ip_prefixes_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createCustomIpPrefixes(router *mux.Router) error { - var item armnetwork.CustomIPPrefixesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/customIpPrefixes", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestCustomIpPrefixes(t *testing.T) { - client.MockTestHelper(t, CustomIpPrefixes(), createCustomIpPrefixes) -} diff --git a/plugins/source/azure/resources/services/network/ddos_protection_plans.go b/plugins/source/azure/resources/services/network/ddos_protection_plans.go deleted file mode 100644 index bc73fe3ba5b781..00000000000000 --- a/plugins/source/azure/resources/services/network/ddos_protection_plans.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DdosProtectionPlans() *schema.Table { - return &schema.Table{ - Name: "azure_network_ddos_protection_plans", - Resolver: fetchDdosProtectionPlans, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/ddos-protection-plans/list?tabs=HTTP#ddosprotectionplan", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_ddos_protection_plans", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.DdosProtectionPlan{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDdosProtectionPlans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewDdosProtectionPlansClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/ddos_protection_plans_mock_test.go b/plugins/source/azure/resources/services/network/ddos_protection_plans_mock_test.go deleted file mode 100644 index 4437d8ac4dc762..00000000000000 --- a/plugins/source/azure/resources/services/network/ddos_protection_plans_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDdosProtectionPlans(router *mux.Router) error { - var item armnetwork.DdosProtectionPlansClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDdosProtectionPlans(t *testing.T) { - client.MockTestHelper(t, DdosProtectionPlans(), createDdosProtectionPlans) -} diff --git a/plugins/source/azure/resources/services/network/dscp_configuration.go b/plugins/source/azure/resources/services/network/dscp_configuration.go deleted file mode 100644 index e8fecf9b43e9e0..00000000000000 --- a/plugins/source/azure/resources/services/network/dscp_configuration.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DscpConfiguration() *schema.Table { - return &schema.Table{ - Name: "azure_network_dscp_configuration", - Resolver: fetchDscpConfiguration, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/dscp-configuration/list?tabs=HTTP#dscpconfiguration", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_dscp_configuration", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.DscpConfiguration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDscpConfiguration(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewDscpConfigurationClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/dscp_configuration_mock_test.go b/plugins/source/azure/resources/services/network/dscp_configuration_mock_test.go deleted file mode 100644 index 4624b081227059..00000000000000 --- a/plugins/source/azure/resources/services/network/dscp_configuration_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDscpConfiguration(router *mux.Router) error { - var item armnetwork.DscpConfigurationClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/dscpConfigurations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDscpConfiguration(t *testing.T) { - client.MockTestHelper(t, DscpConfiguration(), createDscpConfiguration) -} diff --git a/plugins/source/azure/resources/services/network/express_route_circuit_authorizations.go b/plugins/source/azure/resources/services/network/express_route_circuit_authorizations.go deleted file mode 100644 index c3ad5a06cc2cab..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_circuit_authorizations.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func expressRouteCircuitAuthorizations() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_circuit_authorizations", - Resolver: fetchExpressRouteCircuitAuthorizations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-circuit-authorizations/list?tabs=HTTP#expressroutecircuitauthorization", - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRouteCircuitAuthorization{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchExpressRouteCircuitAuthorizations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armnetwork.ExpressRouteCircuit) - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRouteCircuitAuthorizationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_circuit_authorizations_mock_test.go b/plugins/source/azure/resources/services/network/express_route_circuit_authorizations_mock_test.go deleted file mode 100644 index dd704d76d619ec..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_circuit_authorizations_mock_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRouteCircuitAuthorizations(router *mux.Router) error { - var item armnetwork.ExpressRouteCircuitAuthorizationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.Network/expressRouteCircuits/test string/authorizations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_circuit_peerings.go b/plugins/source/azure/resources/services/network/express_route_circuit_peerings.go deleted file mode 100644 index af13a3150f762b..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_circuit_peerings.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func expressRouteCircuitPeerings() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_circuit_peerings", - Resolver: fetchExpressRouteCircuitPeerings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-circuit-peerings/list?tabs=HTTP#expressroutecircuitpeering", - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRouteCircuitPeering{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchExpressRouteCircuitPeerings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armnetwork.ExpressRouteCircuit) - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRouteCircuitPeeringsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_circuit_peerings_mock_test.go b/plugins/source/azure/resources/services/network/express_route_circuit_peerings_mock_test.go deleted file mode 100644 index 6d8ab65fa1ca8b..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_circuit_peerings_mock_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRouteCircuitPeerings(router *mux.Router) error { - var item armnetwork.ExpressRouteCircuitPeeringsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.Network/expressRouteCircuits/test string/peerings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_circuits.go b/plugins/source/azure/resources/services/network/express_route_circuits.go deleted file mode 100644 index 83911772d4658a..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_circuits.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ExpressRouteCircuits() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_circuits", - Resolver: fetchExpressRouteCircuits, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-circuits/list?tabs=HTTP#expressroutecircuit", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_express_route_circuits", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRouteCircuit{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - expressRouteCircuitAuthorizations(), - expressRouteCircuitPeerings(), - }, - } -} - -func fetchExpressRouteCircuits(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRouteCircuitsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_circuits_mock_test.go b/plugins/source/azure/resources/services/network/express_route_circuits_mock_test.go deleted file mode 100644 index 3388fd83240172..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_circuits_mock_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRouteCircuits(router *mux.Router) error { - var item armnetwork.ExpressRouteCircuitsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - if err := createExpressRouteCircuitAuthorizations(router); err != nil { - return err - } - return createExpressRouteCircuitPeerings(router) -} - -func TestExpressRouteCircuits(t *testing.T) { - client.MockTestHelper(t, ExpressRouteCircuits(), createExpressRouteCircuits) -} diff --git a/plugins/source/azure/resources/services/network/express_route_gateways.go b/plugins/source/azure/resources/services/network/express_route_gateways.go deleted file mode 100644 index 859036330db2b2..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_gateways.go +++ /dev/null @@ -1,20 +0,0 @@ -package network - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ExpressRouteGateways() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_gateways", - Resolver: fetchExpressRouteGateways, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-gateways/list-by-subscription?tabs=HTTP#expressroutegateway", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_express_route_gateways", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRouteGateway{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} diff --git a/plugins/source/azure/resources/services/network/express_route_gateways_fetch.go b/plugins/source/azure/resources/services/network/express_route_gateways_fetch.go deleted file mode 100644 index a3e1f6065a7e6d..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_gateways_fetch.go +++ /dev/null @@ -1,23 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchExpressRouteGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRouteGatewaysClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager, err := svc.ListBySubscription(ctx, nil) - if err != nil { - return err - } - res <- pager.Value - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_gateways_mock_test.go b/plugins/source/azure/resources/services/network/express_route_gateways_mock_test.go deleted file mode 100644 index 559327e8b3371b..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_gateways_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRouteGateways(router *mux.Router) error { - var item armnetwork.ExpressRouteCircuitsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestExpressRouteGateways(t *testing.T) { - client.MockTestHelper(t, ExpressRouteGateways(), createExpressRouteGateways) -} diff --git a/plugins/source/azure/resources/services/network/express_route_ports.go b/plugins/source/azure/resources/services/network/express_route_ports.go deleted file mode 100644 index b3ca634cf8e6be..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_ports.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ExpressRoutePorts() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_ports", - Resolver: fetchExpressRoutePorts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-ports/list?tabs=HTTP#expressrouteport", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_express_route_ports", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRoutePort{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchExpressRoutePorts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRoutePortsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_ports_locations.go b/plugins/source/azure/resources/services/network/express_route_ports_locations.go deleted file mode 100644 index ff91ddfdc8329c..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_ports_locations.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ExpressRoutePortsLocations() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_ports_locations", - Resolver: fetchExpressRoutePortsLocations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-ports-locations/list?tabs=HTTP#expressrouteportslocation", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_express_route_ports_locations", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRoutePortsLocation{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchExpressRoutePortsLocations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRoutePortsLocationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_ports_locations_mock_test.go b/plugins/source/azure/resources/services/network/express_route_ports_locations_mock_test.go deleted file mode 100644 index 2b24eac02cbda5..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_ports_locations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRoutePortsLocations(router *mux.Router) error { - var item armnetwork.ExpressRoutePortsLocationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestExpressRoutePortsLocations(t *testing.T) { - client.MockTestHelper(t, ExpressRoutePortsLocations(), createExpressRoutePortsLocations) -} diff --git a/plugins/source/azure/resources/services/network/express_route_ports_mock_test.go b/plugins/source/azure/resources/services/network/express_route_ports_mock_test.go deleted file mode 100644 index a6d2a133fbe30a..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_ports_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRoutePorts(router *mux.Router) error { - var item armnetwork.ExpressRoutePortsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestExpressRoutePorts(t *testing.T) { - client.MockTestHelper(t, ExpressRoutePorts(), createExpressRoutePorts) -} diff --git a/plugins/source/azure/resources/services/network/express_route_service_providers.go b/plugins/source/azure/resources/services/network/express_route_service_providers.go deleted file mode 100644 index de8f2db62fb630..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_service_providers.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ExpressRouteServiceProviders() *schema.Table { - return &schema.Table{ - Name: "azure_network_express_route_service_providers", - Resolver: fetchExpressRouteServiceProviders, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/express-route-service-providers/list?tabs=HTTP#expressrouteserviceprovider", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_express_route_service_providers", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ExpressRouteServiceProvider{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchExpressRouteServiceProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewExpressRouteServiceProvidersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/express_route_service_providers_mock_test.go b/plugins/source/azure/resources/services/network/express_route_service_providers_mock_test.go deleted file mode 100644 index 2cfc52fca4580f..00000000000000 --- a/plugins/source/azure/resources/services/network/express_route_service_providers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExpressRouteServiceProviders(router *mux.Router) error { - var item armnetwork.ExpressRouteServiceProvidersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestExpressRouteServiceProviders(t *testing.T) { - client.MockTestHelper(t, ExpressRouteServiceProviders(), createExpressRouteServiceProviders) -} diff --git a/plugins/source/azure/resources/services/network/firewall_policies.go b/plugins/source/azure/resources/services/network/firewall_policies.go deleted file mode 100644 index 6aeb0f143f609d..00000000000000 --- a/plugins/source/azure/resources/services/network/firewall_policies.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func FirewallPolicies() *schema.Table { - return &schema.Table{ - Name: "azure_network_firewall_policies", - Resolver: fetchFirewallPolicies, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/firewall-policies/list-all?tabs=HTTP#firewallpolicy", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_firewall_policies", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.FirewallPolicy{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchFirewallPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewFirewallPoliciesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/firewall_policies_mock_test.go b/plugins/source/azure/resources/services/network/firewall_policies_mock_test.go deleted file mode 100644 index 5536a308769dd7..00000000000000 --- a/plugins/source/azure/resources/services/network/firewall_policies_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createFirewallPolicies(router *mux.Router) error { - var item armnetwork.FirewallPoliciesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestFirewallPolicies(t *testing.T) { - client.MockTestHelper(t, FirewallPolicies(), createFirewallPolicies) -} diff --git a/plugins/source/azure/resources/services/network/interface_ip_configurations.go b/plugins/source/azure/resources/services/network/interface_ip_configurations.go deleted file mode 100644 index af51efdaf1db06..00000000000000 --- a/plugins/source/azure/resources/services/network/interface_ip_configurations.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func interfaceIPConfigurations() *schema.Table { - return &schema.Table{ - Name: "azure_network_interface_ip_configurations", - Resolver: fetchInterfaceIPConfigurations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-interface-ip-configurations/list?tabs=HTTP#ipconfiguration", - Transform: transformers.TransformWithStruct(&armnetwork.InterfaceIPConfiguration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchInterfaceIPConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armnetwork.Interface) - cl := meta.(*client.Client) - svc, err := armnetwork.NewInterfaceIPConfigurationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/interface_ip_configurations_mock_test.go b/plugins/source/azure/resources/services/network/interface_ip_configurations_mock_test.go deleted file mode 100644 index 2f7dc79f42fec7..00000000000000 --- a/plugins/source/azure/resources/services/network/interface_ip_configurations_mock_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createInterfaceIPConfigurations(router *mux.Router) error { - var item armnetwork.InterfaceIPConfigurationListResult - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.Network/networkInterfaces/test string/ipConfigurations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/network/interfaces.go b/plugins/source/azure/resources/services/network/interfaces.go deleted file mode 100644 index aa67f576bafd2d..00000000000000 --- a/plugins/source/azure/resources/services/network/interfaces.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Interfaces() *schema.Table { - return &schema.Table{ - Name: "azure_network_interfaces", - Resolver: fetchInterfaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-interfaces/list?tabs=HTTP#networkinterface", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_interfaces", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.Interface{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - interfaceIPConfigurations(), - }, - } -} - -func fetchInterfaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewInterfacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/interfaces_mock_test.go b/plugins/source/azure/resources/services/network/interfaces_mock_test.go deleted file mode 100644 index 03113ce63e75ca..00000000000000 --- a/plugins/source/azure/resources/services/network/interfaces_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createInterfaces(router *mux.Router) error { - var item armnetwork.InterfacesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createInterfaceIPConfigurations(router) -} - -func TestInterfaces(t *testing.T) { - client.MockTestHelper(t, Interfaces(), createInterfaces) -} diff --git a/plugins/source/azure/resources/services/network/ip_allocations.go b/plugins/source/azure/resources/services/network/ip_allocations.go deleted file mode 100644 index 3566bc77eff568..00000000000000 --- a/plugins/source/azure/resources/services/network/ip_allocations.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func IpAllocations() *schema.Table { - return &schema.Table{ - Name: "azure_network_ip_allocations", - Resolver: fetchIpAllocations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/ip-allocations/list?tabs=HTTP#ipallocation", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_ip_allocations", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.IPAllocation{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchIpAllocations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewIPAllocationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/ip_allocations_mock_test.go b/plugins/source/azure/resources/services/network/ip_allocations_mock_test.go deleted file mode 100644 index bdc2317299cf72..00000000000000 --- a/plugins/source/azure/resources/services/network/ip_allocations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createIpAllocations(router *mux.Router) error { - var item armnetwork.IPAllocationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/IpAllocations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestIpAllocations(t *testing.T) { - client.MockTestHelper(t, IpAllocations(), createIpAllocations) -} diff --git a/plugins/source/azure/resources/services/network/ip_groups.go b/plugins/source/azure/resources/services/network/ip_groups.go deleted file mode 100644 index 1cdaebdb3d0a91..00000000000000 --- a/plugins/source/azure/resources/services/network/ip_groups.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func IpGroups() *schema.Table { - return &schema.Table{ - Name: "azure_network_ip_groups", - Resolver: fetchIpGroups, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/ip-groups/list?tabs=HTTP#ipgroup", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_ip_groups", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.IPGroup{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchIpGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewIPGroupsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/ip_groups_mock_test.go b/plugins/source/azure/resources/services/network/ip_groups_mock_test.go deleted file mode 100644 index a68086e814ccf0..00000000000000 --- a/plugins/source/azure/resources/services/network/ip_groups_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createIpGroups(router *mux.Router) error { - var item armnetwork.IPGroupsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ipGroups", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestIpGroups(t *testing.T) { - client.MockTestHelper(t, IpGroups(), createIpGroups) -} diff --git a/plugins/source/azure/resources/services/network/load_balancers.go b/plugins/source/azure/resources/services/network/load_balancers.go deleted file mode 100644 index bab59f4fdcb667..00000000000000 --- a/plugins/source/azure/resources/services/network/load_balancers.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func LoadBalancers() *schema.Table { - return &schema.Table{ - Name: "azure_network_load_balancers", - Resolver: fetchLoadBalancers, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/load-balancer/load-balancers/list?tabs=HTTP#loadbalancer", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_load_balancers", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.LoadBalancer{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchLoadBalancers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewLoadBalancersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/load_balancers_mock_test.go b/plugins/source/azure/resources/services/network/load_balancers_mock_test.go deleted file mode 100644 index c6c2cfda005852..00000000000000 --- a/plugins/source/azure/resources/services/network/load_balancers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createLoadBalancers(router *mux.Router) error { - var item armnetwork.LoadBalancersClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestLoadBalancers(t *testing.T) { - client.MockTestHelper(t, LoadBalancers(), createLoadBalancers) -} diff --git a/plugins/source/azure/resources/services/network/nat_gateways.go b/plugins/source/azure/resources/services/network/nat_gateways.go deleted file mode 100644 index f9c65e8d9484eb..00000000000000 --- a/plugins/source/azure/resources/services/network/nat_gateways.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func NatGateways() *schema.Table { - return &schema.Table{ - Name: "azure_network_nat_gateways", - Resolver: fetchNatGateways, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/nat-gateways/list?tabs=HTTP#natgateway", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_nat_gateways", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.NatGateway{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchNatGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewNatGatewaysClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/nat_gateways_mock_test.go b/plugins/source/azure/resources/services/network/nat_gateways_mock_test.go deleted file mode 100644 index 398ba4a8a5db59..00000000000000 --- a/plugins/source/azure/resources/services/network/nat_gateways_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNatGateways(router *mux.Router) error { - var item armnetwork.NatGatewaysClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/natGateways", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestNatGateways(t *testing.T) { - client.MockTestHelper(t, NatGateways(), createNatGateways) -} diff --git a/plugins/source/azure/resources/services/network/private_endpoints.go b/plugins/source/azure/resources/services/network/private_endpoints.go deleted file mode 100644 index e08f1260f13c58..00000000000000 --- a/plugins/source/azure/resources/services/network/private_endpoints.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateEndpoints() *schema.Table { - return &schema.Table{ - Name: "azure_network_private_endpoints", - Resolver: fetchPrivateEndpoints, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-link-services/list-by-subscription?tabs=HTTP#privateendpoint", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_private_endpoints", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.PrivateEndpoint{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPrivateEndpoints(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewPrivateEndpointsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/private_endpoints_test.go b/plugins/source/azure/resources/services/network/private_endpoints_test.go deleted file mode 100644 index 880effd607e42f..00000000000000 --- a/plugins/source/azure/resources/services/network/private_endpoints_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateEndpoints(router *mux.Router) error { - var item armnetwork.PrivateEndpointsClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateEndpoints", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPrivateEndpoints(t *testing.T) { - client.MockTestHelper(t, PrivateEndpoints(), createPrivateEndpoints) -} diff --git a/plugins/source/azure/resources/services/network/private_link_services.go b/plugins/source/azure/resources/services/network/private_link_services.go deleted file mode 100644 index 24bfb5449ef109..00000000000000 --- a/plugins/source/azure/resources/services/network/private_link_services.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateLinkServices() *schema.Table { - return &schema.Table{ - Name: "azure_network_private_link_services", - Resolver: fetchPrivateLinkServices, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-link-services/list-by-subscription?tabs=HTTP#privatelinkservice", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_private_link_services", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.PrivateLinkService{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPrivateLinkServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewPrivateLinkServicesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/private_link_services_test.go b/plugins/source/azure/resources/services/network/private_link_services_test.go deleted file mode 100644 index a1fb45312a000a..00000000000000 --- a/plugins/source/azure/resources/services/network/private_link_services_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateLinkServices(router *mux.Router) error { - var item armnetwork.PrivateLinkServicesClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateLinkServices", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPrivateLinkServices(t *testing.T) { - client.MockTestHelper(t, PrivateLinkServices(), createPrivateLinkServices) -} diff --git a/plugins/source/azure/resources/services/network/profiles.go b/plugins/source/azure/resources/services/network/profiles.go deleted file mode 100644 index e3c72f12580ce2..00000000000000 --- a/plugins/source/azure/resources/services/network/profiles.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Profiles() *schema.Table { - return &schema.Table{ - Name: "azure_network_profiles", - Resolver: fetchProfiles, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-profiles/list?tabs=HTTP#networkprofile", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_profiles", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.Profile{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewProfilesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/profiles_mock_test.go b/plugins/source/azure/resources/services/network/profiles_mock_test.go deleted file mode 100644 index c4aae7e7925b3d..00000000000000 --- a/plugins/source/azure/resources/services/network/profiles_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createProfiles(router *mux.Router) error { - var item armnetwork.ProfilesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestProfiles(t *testing.T) { - client.MockTestHelper(t, Profiles(), createProfiles) -} diff --git a/plugins/source/azure/resources/services/network/public_ip_addresses.go b/plugins/source/azure/resources/services/network/public_ip_addresses.go deleted file mode 100644 index 04b56cfebadf5c..00000000000000 --- a/plugins/source/azure/resources/services/network/public_ip_addresses.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PublicIpAddresses() *schema.Table { - return &schema.Table{ - Name: "azure_network_public_ip_addresses", - Resolver: fetchPublicIpAddresses, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/public-ip-addresses/list?tabs=HTTP#publicipaddress", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_public_ip_addresses", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.PublicIPAddress{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPublicIpAddresses(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewPublicIPAddressesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/public_ip_addresses_mock_test.go b/plugins/source/azure/resources/services/network/public_ip_addresses_mock_test.go deleted file mode 100644 index 1c1e93ea8d18f4..00000000000000 --- a/plugins/source/azure/resources/services/network/public_ip_addresses_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPublicIpAddresses(router *mux.Router) error { - var item armnetwork.PublicIPAddressesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPublicIpAddresses(t *testing.T) { - client.MockTestHelper(t, PublicIpAddresses(), createPublicIpAddresses) -} diff --git a/plugins/source/azure/resources/services/network/public_ip_prefixes.go b/plugins/source/azure/resources/services/network/public_ip_prefixes.go deleted file mode 100644 index c5309664424fc8..00000000000000 --- a/plugins/source/azure/resources/services/network/public_ip_prefixes.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PublicIpPrefixes() *schema.Table { - return &schema.Table{ - Name: "azure_network_public_ip_prefixes", - Resolver: fetchPublicIpPrefixes, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/public-ip-prefixes/list?tabs=HTTP#publicipprefix", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_public_ip_prefixes", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.PublicIPPrefix{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPublicIpPrefixes(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewPublicIPPrefixesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/public_ip_prefixes_mock_test.go b/plugins/source/azure/resources/services/network/public_ip_prefixes_mock_test.go deleted file mode 100644 index 70c8701dc5d1af..00000000000000 --- a/plugins/source/azure/resources/services/network/public_ip_prefixes_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPublicIpPrefixes(router *mux.Router) error { - var item armnetwork.PublicIPPrefixesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPublicIpPrefixes(t *testing.T) { - client.MockTestHelper(t, PublicIpPrefixes(), createPublicIpPrefixes) -} diff --git a/plugins/source/azure/resources/services/network/route_filters.go b/plugins/source/azure/resources/services/network/route_filters.go deleted file mode 100644 index 1b8107a9039b9e..00000000000000 --- a/plugins/source/azure/resources/services/network/route_filters.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func RouteFilters() *schema.Table { - return &schema.Table{ - Name: "azure_network_route_filters", - Resolver: fetchRouteFilters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/route-filters/list?tabs=HTTP#routefilter", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_route_filters", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.RouteFilter{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRouteFilters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewRouteFiltersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/route_filters_mock_test.go b/plugins/source/azure/resources/services/network/route_filters_mock_test.go deleted file mode 100644 index d85c3f5b3008c8..00000000000000 --- a/plugins/source/azure/resources/services/network/route_filters_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRouteFilters(router *mux.Router) error { - var item armnetwork.RouteFiltersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRouteFilters(t *testing.T) { - client.MockTestHelper(t, RouteFilters(), createRouteFilters) -} diff --git a/plugins/source/azure/resources/services/network/route_tables.go b/plugins/source/azure/resources/services/network/route_tables.go deleted file mode 100644 index 93e33ab4246311..00000000000000 --- a/plugins/source/azure/resources/services/network/route_tables.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func RouteTables() *schema.Table { - return &schema.Table{ - Name: "azure_network_route_tables", - Resolver: fetchRouteTables, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/route-tables/list?tabs=HTTP#routetable", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_route_tables", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.RouteTable{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRouteTables(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewRouteTablesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/route_tables_mock_test.go b/plugins/source/azure/resources/services/network/route_tables_mock_test.go deleted file mode 100644 index 329a98b2454c04..00000000000000 --- a/plugins/source/azure/resources/services/network/route_tables_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRouteTables(router *mux.Router) error { - var item armnetwork.RouteTablesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRouteTables(t *testing.T) { - client.MockTestHelper(t, RouteTables(), createRouteTables) -} diff --git a/plugins/source/azure/resources/services/network/security_groups.go b/plugins/source/azure/resources/services/network/security_groups.go deleted file mode 100644 index 68b947a4be10fd..00000000000000 --- a/plugins/source/azure/resources/services/network/security_groups.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SecurityGroups() *schema.Table { - return &schema.Table{ - Name: "azure_network_security_groups", - Resolver: fetchSecurityGroups, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-security-groups/list?tabs=HTTP#networksecuritygroup", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_security_groups", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.SecurityGroup{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSecurityGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewSecurityGroupsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/security_groups_mock_test.go b/plugins/source/azure/resources/services/network/security_groups_mock_test.go deleted file mode 100644 index 0b62da6d133420..00000000000000 --- a/plugins/source/azure/resources/services/network/security_groups_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSecurityGroups(router *mux.Router) error { - var item armnetwork.SecurityGroupsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSecurityGroups(t *testing.T) { - client.MockTestHelper(t, SecurityGroups(), createSecurityGroups) -} diff --git a/plugins/source/azure/resources/services/network/security_partner_providers.go b/plugins/source/azure/resources/services/network/security_partner_providers.go deleted file mode 100644 index 411d4d40bf3d5b..00000000000000 --- a/plugins/source/azure/resources/services/network/security_partner_providers.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SecurityPartnerProviders() *schema.Table { - return &schema.Table{ - Name: "azure_network_security_partner_providers", - Resolver: fetchSecurityPartnerProviders, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/security-partner-providers/list?tabs=HTTP#securitypartnerprovider", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_security_partner_providers", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.SecurityPartnerProvider{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSecurityPartnerProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewSecurityPartnerProvidersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/security_partner_providers_mock_test.go b/plugins/source/azure/resources/services/network/security_partner_providers_mock_test.go deleted file mode 100644 index 195fcbb8a470cd..00000000000000 --- a/plugins/source/azure/resources/services/network/security_partner_providers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSecurityPartnerProviders(router *mux.Router) error { - var item armnetwork.SecurityPartnerProvidersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/securityPartnerProviders", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSecurityPartnerProviders(t *testing.T) { - client.MockTestHelper(t, SecurityPartnerProviders(), createSecurityPartnerProviders) -} diff --git a/plugins/source/azure/resources/services/network/service_endpoint_policies.go b/plugins/source/azure/resources/services/network/service_endpoint_policies.go deleted file mode 100644 index 818df1562736d9..00000000000000 --- a/plugins/source/azure/resources/services/network/service_endpoint_policies.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ServiceEndpointPolicies() *schema.Table { - return &schema.Table{ - Name: "azure_network_service_endpoint_policies", - Resolver: fetchServiceEndpointPolicies, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/expressroute/service-endpoint-policies/list?tabs=HTTP#serviceendpointpolicy", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_service_endpoint_policies", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ServiceEndpointPolicy{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchServiceEndpointPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewServiceEndpointPoliciesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/service_endpoint_policies_mock_test.go b/plugins/source/azure/resources/services/network/service_endpoint_policies_mock_test.go deleted file mode 100644 index d7a59864ea4848..00000000000000 --- a/plugins/source/azure/resources/services/network/service_endpoint_policies_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServiceEndpointPolicies(router *mux.Router) error { - var item armnetwork.ServiceEndpointPoliciesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServiceEndpointPolicies(t *testing.T) { - client.MockTestHelper(t, ServiceEndpointPolicies(), createServiceEndpointPolicies) -} diff --git a/plugins/source/azure/resources/services/network/subscription_network_manager_connections.go b/plugins/source/azure/resources/services/network/subscription_network_manager_connections.go deleted file mode 100644 index 0196cb05b2a4e9..00000000000000 --- a/plugins/source/azure/resources/services/network/subscription_network_manager_connections.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubscriptionNetworkManagerConnections() *schema.Table { - return &schema.Table{ - Name: "azure_network_subscription_network_manager_connections", - Resolver: fetchSubscriptionNetworkManagerConnections, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/networkmanager/management-group-network-manager-connections/list?tabs=HTTP#networkmanagerconnection", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_subscription_network_manager_connections", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.ManagerConnection{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSubscriptionNetworkManagerConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewSubscriptionNetworkManagerConnectionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/subscription_network_manager_connections_mock_test.go b/plugins/source/azure/resources/services/network/subscription_network_manager_connections_mock_test.go deleted file mode 100644 index 305cb3cf59ddd8..00000000000000 --- a/plugins/source/azure/resources/services/network/subscription_network_manager_connections_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptionNetworkManagerConnections(router *mux.Router) error { - var item armnetwork.SubscriptionNetworkManagerConnectionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubscriptionNetworkManagerConnections(t *testing.T) { - client.MockTestHelper(t, SubscriptionNetworkManagerConnections(), createSubscriptionNetworkManagerConnections) -} diff --git a/plugins/source/azure/resources/services/network/virtual_appliances.go b/plugins/source/azure/resources/services/network/virtual_appliances.go deleted file mode 100644 index 531c9d454676d0..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_appliances.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualAppliances() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_appliances", - Resolver: fetchVirtualAppliances, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/network-virtual-appliances/list?tabs=HTTP#networkvirtualappliance", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_virtual_appliances", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualAppliance{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualAppliances(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualAppliancesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_appliances_mock_test.go b/plugins/source/azure/resources/services/network/virtual_appliances_mock_test.go deleted file mode 100644 index 30eb34cbdc915e..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_appliances_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualAppliances(router *mux.Router) error { - var item armnetwork.VirtualAppliancesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualAppliances", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualAppliances(t *testing.T) { - client.MockTestHelper(t, VirtualAppliances(), createVirtualAppliances) -} diff --git a/plugins/source/azure/resources/services/network/virtual_hubs.go b/plugins/source/azure/resources/services/network/virtual_hubs.go deleted file mode 100644 index d5fd97293bc724..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_hubs.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualHubs() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_hubs", - Resolver: fetchVirtualHubs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualwan/virtual-hubs/list?tabs=HTTP#virtualhub", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_virtual_hubs", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualHub{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualHubs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualHubsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_hubs_mock_test.go b/plugins/source/azure/resources/services/network/virtual_hubs_mock_test.go deleted file mode 100644 index 8fb7fbbdcade86..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_hubs_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualHubs(router *mux.Router) error { - var item armnetwork.VirtualHubsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualHubs(t *testing.T) { - client.MockTestHelper(t, VirtualHubs(), createVirtualHubs) -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_gateway_connections.go b/plugins/source/azure/resources/services/network/virtual_network_gateway_connections.go deleted file mode 100644 index 01aef5125c2e28..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_gateway_connections.go +++ /dev/null @@ -1,40 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualNetworkGatewayConnections() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_network_gateway_connections", - Resolver: fetchVirtualNetworkGatewayConnections, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-gateway-connections/list?tabs=HTTP#virtualnetworkgatewayconnection", - Multiplex: client.SubscriptionResourceGroupMultiplexRegisteredNamespace("azure_network_virtual_network_gateway_connections", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualNetworkGatewayConnection{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualNetworkGatewayConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualNetworkGatewayConnectionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - - pager := svc.NewListPager(cl.ResourceGroup, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_gateway_connections_test.go b/plugins/source/azure/resources/services/network/virtual_network_gateway_connections_test.go deleted file mode 100644 index 5ffd4b20625e5a..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_gateway_connections_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualNetworkGatewayConnections(router *mux.Router) error { - var connection armnetwork.VirtualNetworkGatewayConnectionsClientListResponse - if err := faker.FakeObject(&connection); err != nil { - return err - } - - emptyStr := "" - connection.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&connection) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualNetworkGatewayConnections(t *testing.T) { - client.MockTestHelper(t, VirtualNetworkGatewayConnections(), createVirtualNetworkGatewayConnections) -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_gateways.go b/plugins/source/azure/resources/services/network/virtual_network_gateways.go deleted file mode 100644 index 5bb775e17b70ac..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_gateways.go +++ /dev/null @@ -1,40 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualNetworkGateways() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_network_gateways", - Resolver: fetchVirtualNetworkGateways, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-gateways/list?tabs=HTTP#virtualnetworkgateway", - Multiplex: client.SubscriptionResourceGroupMultiplexRegisteredNamespace("azure_network_virtual_network_gateways", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualNetworkGateway{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualNetworkGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualNetworkGatewaysClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - - pager := svc.NewListPager(cl.ResourceGroup, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_gateways_test.go b/plugins/source/azure/resources/services/network/virtual_network_gateways_test.go deleted file mode 100644 index 4236a3c4e076bf..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_gateways_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualNetworkGateways(router *mux.Router) error { - var gateway armnetwork.VirtualNetworkGatewaysClientListResponse - if err := faker.FakeObject(&gateway); err != nil { - return err - } - - emptyStr := "" - gateway.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&gateway) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualNetworkGateways(t *testing.T) { - client.MockTestHelper(t, VirtualNetworkGateways(), createVirtualNetworkGateways) -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_subnets.go b/plugins/source/azure/resources/services/network/virtual_network_subnets.go deleted file mode 100644 index 35f92f0a634ba9..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_subnets.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func virtualNetworkSubnets() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_network_subnets", - Resolver: fetchVirtualNetworkSubnets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/subnets/list?tabs=HTTP#subnet", - Transform: transformers.TransformWithStruct(&armnetwork.Subnet{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualNetworkSubnets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armnetwork.VirtualNetwork) - cl := meta.(*client.Client) - svc, err := armnetwork.NewSubnetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_subnets_mock_test.go b/plugins/source/azure/resources/services/network/virtual_network_subnets_mock_test.go deleted file mode 100644 index 26d46d897d5679..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_subnets_mock_test.go +++ /dev/null @@ -1,34 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualNetworkSubnets(router *mux.Router) error { - var item armnetwork.SubnetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.Network/virtualNetworks/test string/subnets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_taps.go b/plugins/source/azure/resources/services/network/virtual_network_taps.go deleted file mode 100644 index f0091affe80d88..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_taps.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualNetworkTaps() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_network_taps", - Resolver: fetchVirtualNetworkTaps, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/network-gateway/virtual-network-taps/list-all?tabs=HTTP#virtualnetworktap", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_virtual_network_taps", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualNetworkTap{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualNetworkTaps(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualNetworkTapsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_network_taps_mock_test.go b/plugins/source/azure/resources/services/network/virtual_network_taps_mock_test.go deleted file mode 100644 index b52f7c13f8e91a..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_network_taps_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualNetworkTaps(router *mux.Router) error { - var item armnetwork.VirtualNetworkTapsClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualNetworkTaps(t *testing.T) { - client.MockTestHelper(t, VirtualNetworkTaps(), createVirtualNetworkTaps) -} diff --git a/plugins/source/azure/resources/services/network/virtual_networks.go b/plugins/source/azure/resources/services/network/virtual_networks.go deleted file mode 100644 index ca83c8545071a6..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_networks.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualNetworks() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_networks", - Resolver: fetchVirtualNetworks, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/virtual-networks/list-all?tabs=HTTP#virtualnetwork", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_virtual_networks", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualNetwork{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - virtualNetworkSubnets(), - }, - } -} - -func fetchVirtualNetworks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualNetworksClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_networks_mock_test.go b/plugins/source/azure/resources/services/network/virtual_networks_mock_test.go deleted file mode 100644 index 98269c64018020..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_networks_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualNetworks(router *mux.Router) error { - var item armnetwork.VirtualNetworksClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createVirtualNetworkSubnets(router) -} - -func TestVirtualNetworks(t *testing.T) { - client.MockTestHelper(t, VirtualNetworks(), createVirtualNetworks) -} diff --git a/plugins/source/azure/resources/services/network/virtual_routers.go b/plugins/source/azure/resources/services/network/virtual_routers.go deleted file mode 100644 index bcfeca984e3d52..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_routers.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualRouters() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_routers", - Resolver: fetchVirtualRouters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualnetwork/virtual-routers/list?tabs=HTTP#virtualrouter", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_virtual_routers", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualRouter{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualRouters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualRoutersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_routers_mock_test.go b/plugins/source/azure/resources/services/network/virtual_routers_mock_test.go deleted file mode 100644 index 5bc820d2de2c61..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_routers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualRouters(router *mux.Router) error { - var item armnetwork.VirtualRoutersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualRouters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualRouters(t *testing.T) { - client.MockTestHelper(t, VirtualRouters(), createVirtualRouters) -} diff --git a/plugins/source/azure/resources/services/network/virtual_wans.go b/plugins/source/azure/resources/services/network/virtual_wans.go deleted file mode 100644 index 8c7d7790dbb034..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_wans.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VirtualWans() *schema.Table { - return &schema.Table{ - Name: "azure_network_virtual_wans", - Resolver: fetchVirtualWans, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualwan/virtual-wans/list?tabs=HTTP#virtualwan", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_virtual_wans", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VirtualWAN{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualWans(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVirtualWansClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/virtual_wans_mock_test.go b/plugins/source/azure/resources/services/network/virtual_wans_mock_test.go deleted file mode 100644 index f73fab0c3ed870..00000000000000 --- a/plugins/source/azure/resources/services/network/virtual_wans_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVirtualWans(router *mux.Router) error { - var item armnetwork.VirtualWansClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVirtualWans(t *testing.T) { - client.MockTestHelper(t, VirtualWans(), createVirtualWans) -} diff --git a/plugins/source/azure/resources/services/network/vpn_gateways.go b/plugins/source/azure/resources/services/network/vpn_gateways.go deleted file mode 100644 index c448e500b6bf53..00000000000000 --- a/plugins/source/azure/resources/services/network/vpn_gateways.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VpnGateways() *schema.Table { - return &schema.Table{ - Name: "azure_network_vpn_gateways", - Resolver: fetchVpnGateways, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualwan/vpn-gateways/list?tabs=HTTP#vpngateway", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_vpn_gateways", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VPNGateway{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVpnGateways(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVPNGatewaysClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/vpn_gateways_mock_test.go b/plugins/source/azure/resources/services/network/vpn_gateways_mock_test.go deleted file mode 100644 index ad241fa0f89a44..00000000000000 --- a/plugins/source/azure/resources/services/network/vpn_gateways_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVpnGateways(router *mux.Router) error { - var item armnetwork.VPNGatewaysClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVpnGateways(t *testing.T) { - client.MockTestHelper(t, VpnGateways(), createVpnGateways) -} diff --git a/plugins/source/azure/resources/services/network/vpn_server_configurations.go b/plugins/source/azure/resources/services/network/vpn_server_configurations.go deleted file mode 100644 index cc1c1e6cd1457f..00000000000000 --- a/plugins/source/azure/resources/services/network/vpn_server_configurations.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VpnServerConfigurations() *schema.Table { - return &schema.Table{ - Name: "azure_network_vpn_server_configurations", - Resolver: fetchVpnServerConfigurations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualwan/vpn-server-configurations/list?tabs=HTTP#vpnserverconfiguration", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_vpn_server_configurations", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VPNServerConfiguration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVpnServerConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVPNServerConfigurationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/vpn_server_configurations_mock_test.go b/plugins/source/azure/resources/services/network/vpn_server_configurations_mock_test.go deleted file mode 100644 index a2b400963afe3b..00000000000000 --- a/plugins/source/azure/resources/services/network/vpn_server_configurations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVpnServerConfigurations(router *mux.Router) error { - var item armnetwork.VPNServerConfigurationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnServerConfigurations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVpnServerConfigurations(t *testing.T) { - client.MockTestHelper(t, VpnServerConfigurations(), createVpnServerConfigurations) -} diff --git a/plugins/source/azure/resources/services/network/vpn_sites.go b/plugins/source/azure/resources/services/network/vpn_sites.go deleted file mode 100644 index e1362efb9d804a..00000000000000 --- a/plugins/source/azure/resources/services/network/vpn_sites.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func VpnSites() *schema.Table { - return &schema.Table{ - Name: "azure_network_vpn_sites", - Resolver: fetchVpnSites, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/virtualwan/vpn-sites/list?tabs=HTTP#vpnsite", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_vpn_sites", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.VPNSite{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVpnSites(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewVPNSitesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/vpn_sites_mock_test.go b/plugins/source/azure/resources/services/network/vpn_sites_mock_test.go deleted file mode 100644 index 5a0b9592b54124..00000000000000 --- a/plugins/source/azure/resources/services/network/vpn_sites_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createVpnSites(router *mux.Router) error { - var item armnetwork.VPNSitesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestVpnSites(t *testing.T) { - client.MockTestHelper(t, VpnSites(), createVpnSites) -} diff --git a/plugins/source/azure/resources/services/network/watcher_flow_logs.go b/plugins/source/azure/resources/services/network/watcher_flow_logs.go deleted file mode 100644 index b475a2bc822fad..00000000000000 --- a/plugins/source/azure/resources/services/network/watcher_flow_logs.go +++ /dev/null @@ -1,43 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func watcherFlowLogs() *schema.Table { - return &schema.Table{ - Name: "azure_network_watcher_flow_logs", - Resolver: fetchWatcherFlowLogs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/network-watcher/flow-logs/list?tabs=HTTP#definitions", - Transform: transformers.TransformWithStruct(&armnetwork.FlowLog{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWatcherFlowLogs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armnetwork.Watcher) - cl := meta.(*client.Client) - svc, err := armnetwork.NewFlowLogsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*p.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *p.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/watcher_flow_logs_mock_test.go b/plugins/source/azure/resources/services/network/watcher_flow_logs_mock_test.go deleted file mode 100644 index a0e2f4faf1c98c..00000000000000 --- a/plugins/source/azure/resources/services/network/watcher_flow_logs_mock_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWatcherflowLogs(router *mux.Router) error { - var item armnetwork.FlowLogsClientListResponse - - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/debug/providers/Microsoft.Network/networkWatchers/test string/flowLogs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/network/watchers.go b/plugins/source/azure/resources/services/network/watchers.go deleted file mode 100644 index 18fd014461c51e..00000000000000 --- a/plugins/source/azure/resources/services/network/watchers.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Watchers() *schema.Table { - return &schema.Table{ - Name: "azure_network_watchers", - Resolver: fetchWatchers, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/network-watcher/network-watchers/list-all?tabs=HTTP#networkwatcher", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_watchers", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.Watcher{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - watcherFlowLogs(), - }, - } -} - -func fetchWatchers(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewWatchersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/watchers_mock_test.go b/plugins/source/azure/resources/services/network/watchers_mock_test.go deleted file mode 100644 index b9347a01b71b0d..00000000000000 --- a/plugins/source/azure/resources/services/network/watchers_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWatchers(router *mux.Router) error { - var item armnetwork.WatchersClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createWatcherflowLogs(router) -} - -func TestWatchers(t *testing.T) { - client.MockTestHelper(t, Watchers(), createWatchers) -} diff --git a/plugins/source/azure/resources/services/network/web_application_firewall_policies.go b/plugins/source/azure/resources/services/network/web_application_firewall_policies.go deleted file mode 100644 index b0c06f22530b83..00000000000000 --- a/plugins/source/azure/resources/services/network/web_application_firewall_policies.go +++ /dev/null @@ -1,39 +0,0 @@ -package network - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func WebApplicationFirewallPolicies() *schema.Table { - return &schema.Table{ - Name: "azure_network_web_application_firewall_policies", - Resolver: fetchWebApplicationFirewallPolicies, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/application-gateway/web-application-firewall-policies/list?tabs=HTTP#webapplicationfirewallpolicy", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_network_web_application_firewall_policies", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armnetwork.WebApplicationFirewallPolicy{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWebApplicationFirewallPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetwork.NewWebApplicationFirewallPoliciesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/network/web_application_firewall_policies_mock_test.go b/plugins/source/azure/resources/services/network/web_application_firewall_policies_mock_test.go deleted file mode 100644 index ae2722e4ffae4f..00000000000000 --- a/plugins/source/azure/resources/services/network/web_application_firewall_policies_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package network - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWebApplicationFirewallPolicies(router *mux.Router) error { - var item armnetwork.WebApplicationFirewallPoliciesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestWebApplicationFirewallPolicies(t *testing.T) { - client.MockTestHelper(t, WebApplicationFirewallPolicies(), createWebApplicationFirewallPolicies) -} diff --git a/plugins/source/azure/resources/services/networkfunction/azure_traffic_collectors_by_subscription.go b/plugins/source/azure/resources/services/networkfunction/azure_traffic_collectors_by_subscription.go deleted file mode 100644 index 85fd4a9afd1771..00000000000000 --- a/plugins/source/azure/resources/services/networkfunction/azure_traffic_collectors_by_subscription.go +++ /dev/null @@ -1,39 +0,0 @@ -package networkfunction - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AzureTrafficCollectorsBySubscription() *schema.Table { - return &schema.Table{ - Name: "azure_networkfunction_azure_traffic_collectors_by_subscription", - Resolver: fetchAzureTrafficCollectorsBySubscription, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction@v1.0.0#AzureTrafficCollector", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_networkfunction_azure_traffic_collectors_by_subscription", client.Namespacemicrosoft_networkfunction), - Transform: transformers.TransformWithStruct(&armnetworkfunction.AzureTrafficCollector{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAzureTrafficCollectorsBySubscription(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnetworkfunction.NewAzureTrafficCollectorsBySubscriptionClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/networkfunction/azure_traffic_collectors_by_subscription_mock_test.go b/plugins/source/azure/resources/services/networkfunction/azure_traffic_collectors_by_subscription_mock_test.go deleted file mode 100644 index 8656a134951c9e..00000000000000 --- a/plugins/source/azure/resources/services/networkfunction/azure_traffic_collectors_by_subscription_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package networkfunction - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAzureTrafficCollectorsBySubscription(router *mux.Router) error { - var item armnetworkfunction.AzureTrafficCollectorsBySubscriptionClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.NetworkFunction/azureTrafficCollectors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAzureTrafficCollectorsBySubscription(t *testing.T) { - client.MockTestHelper(t, AzureTrafficCollectorsBySubscription(), createAzureTrafficCollectorsBySubscription) -} diff --git a/plugins/source/azure/resources/services/nginx/deployments.go b/plugins/source/azure/resources/services/nginx/deployments.go deleted file mode 100644 index 26907c12738227..00000000000000 --- a/plugins/source/azure/resources/services/nginx/deployments.go +++ /dev/null @@ -1,20 +0,0 @@ -package nginx - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/nginx/armnginx/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Deployments() *schema.Table { - return &schema.Table{ - Name: "azure_nginx_deployments", - Resolver: fetchDeployments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/nginx/armnginx/v2@v2.0.0#Deployment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_nginx_deployments", client.Namespacenginx_nginxplus), - Transform: transformers.TransformWithStruct(&armnginx.Deployment{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} diff --git a/plugins/source/azure/resources/services/nginx/deployments_fetch.go b/plugins/source/azure/resources/services/nginx/deployments_fetch.go deleted file mode 100644 index 0d72b69d416856..00000000000000 --- a/plugins/source/azure/resources/services/nginx/deployments_fetch.go +++ /dev/null @@ -1,26 +0,0 @@ -package nginx - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/nginx/armnginx/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchDeployments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnginx.NewDeploymentsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/nginx/deployments_mock_test.go b/plugins/source/azure/resources/services/nginx/deployments_mock_test.go deleted file mode 100644 index 03fb610cf55dc9..00000000000000 --- a/plugins/source/azure/resources/services/nginx/deployments_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package nginx - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/nginx/armnginx/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDeployments(router *mux.Router) error { - var item armnginx.DeploymentsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Nginx.NginxPlus/nginxDeployments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDeployments(t *testing.T) { - client.MockTestHelper(t, Deployments(), createDeployments) -} diff --git a/plugins/source/azure/resources/services/notificationhubs/namespaces.go b/plugins/source/azure/resources/services/notificationhubs/namespaces.go deleted file mode 100644 index 71bcf77e3e6f1b..00000000000000 --- a/plugins/source/azure/resources/services/notificationhubs/namespaces.go +++ /dev/null @@ -1,39 +0,0 @@ -package notificationhubs - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/notificationhubs/armnotificationhubs" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Namespaces() *schema.Table { - return &schema.Table{ - Name: "azure_notificationhubs_namespaces", - Resolver: fetchNamespaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/notificationhubs/namespaces/list?tabs=HTTP#namespaceresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_notificationhubs_namespaces", client.Namespacemicrosoft_notificationhubs), - Transform: transformers.TransformWithStruct(&armnotificationhubs.NamespaceResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchNamespaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armnotificationhubs.NewNamespacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/notificationhubs/namespaces_mock_test.go b/plugins/source/azure/resources/services/notificationhubs/namespaces_mock_test.go deleted file mode 100644 index 1abbb2d67d5029..00000000000000 --- a/plugins/source/azure/resources/services/notificationhubs/namespaces_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package notificationhubs - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/notificationhubs/armnotificationhubs" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNamespaces(router *mux.Router) error { - var item armnotificationhubs.NamespacesClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestNamespaces(t *testing.T) { - client.MockTestHelper(t, Namespaces(), createNamespaces) -} diff --git a/plugins/source/azure/resources/services/operationalinsights/clusters.go b/plugins/source/azure/resources/services/operationalinsights/clusters.go deleted file mode 100644 index ef1460e43c0ed1..00000000000000 --- a/plugins/source/azure/resources/services/operationalinsights/clusters.go +++ /dev/null @@ -1,39 +0,0 @@ -package operationalinsights - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Clusters() *schema.Table { - return &schema.Table{ - Name: "azure_operationalinsights_clusters", - Resolver: fetchClusters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights@v1.0.0#Cluster", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_operationalinsights_clusters", client.Namespacemicrosoft_operationalinsights), - Transform: transformers.TransformWithStruct(&armoperationalinsights.Cluster{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armoperationalinsights.NewClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/operationalinsights/clusters_mock_test.go b/plugins/source/azure/resources/services/operationalinsights/clusters_mock_test.go deleted file mode 100644 index f17d121431e1dd..00000000000000 --- a/plugins/source/azure/resources/services/operationalinsights/clusters_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package operationalinsights - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createClusters(router *mux.Router) error { - var item armoperationalinsights.ClustersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/clusters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestClusters(t *testing.T) { - client.MockTestHelper(t, Clusters(), createClusters) -} diff --git a/plugins/source/azure/resources/services/operationalinsights/workspaces.go b/plugins/source/azure/resources/services/operationalinsights/workspaces.go deleted file mode 100644 index 4b9ce02db3790a..00000000000000 --- a/plugins/source/azure/resources/services/operationalinsights/workspaces.go +++ /dev/null @@ -1,39 +0,0 @@ -package operationalinsights - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Workspaces() *schema.Table { - return &schema.Table{ - Name: "azure_operationalinsights_workspaces", - Resolver: fetchWorkspaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights@v1.0.0#Workspace", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_operationalinsights_workspaces", client.Namespacemicrosoft_operationalinsights), - Transform: transformers.TransformWithStruct(&armoperationalinsights.Workspace{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWorkspaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armoperationalinsights.NewWorkspacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/operationalinsights/workspaces_mock_test.go b/plugins/source/azure/resources/services/operationalinsights/workspaces_mock_test.go deleted file mode 100644 index 28976f7df6ea52..00000000000000 --- a/plugins/source/azure/resources/services/operationalinsights/workspaces_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package operationalinsights - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWorkspaces(router *mux.Router) error { - var item armoperationalinsights.WorkspacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestWorkspaces(t *testing.T) { - client.MockTestHelper(t, Workspaces(), createWorkspaces) -} diff --git a/plugins/source/azure/resources/services/peering/service_countries.go b/plugins/source/azure/resources/services/peering/service_countries.go deleted file mode 100644 index b73ed83aa1d9e8..00000000000000 --- a/plugins/source/azure/resources/services/peering/service_countries.go +++ /dev/null @@ -1,39 +0,0 @@ -package peering - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ServiceCountries() *schema.Table { - return &schema.Table{ - Name: "azure_peering_service_countries", - Resolver: fetchServiceCountries, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/peering/peering-service-countries/list?tabs=HTTP#peeringservicecountry", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_peering_service_countries", client.Namespacemicrosoft_peering), - Transform: transformers.TransformWithStruct(&armpeering.ServiceCountry{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchServiceCountries(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpeering.NewServiceCountriesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/peering/service_countries_mock_test.go b/plugins/source/azure/resources/services/peering/service_countries_mock_test.go deleted file mode 100644 index e96cb51c3e7b85..00000000000000 --- a/plugins/source/azure/resources/services/peering/service_countries_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package peering - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServiceCountries(router *mux.Router) error { - var item armpeering.ServiceCountriesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceCountries", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServiceCountries(t *testing.T) { - client.MockTestHelper(t, ServiceCountries(), createServiceCountries) -} diff --git a/plugins/source/azure/resources/services/peering/service_providers.go b/plugins/source/azure/resources/services/peering/service_providers.go deleted file mode 100644 index 8efaf810d5c8f9..00000000000000 --- a/plugins/source/azure/resources/services/peering/service_providers.go +++ /dev/null @@ -1,20 +0,0 @@ -package peering - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ServiceProviders() *schema.Table { - return &schema.Table{ - Name: "azure_peering_service_providers", - Resolver: fetchServiceProviders, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/peering/peering-service-providers/list?tabs=HTTP#peeringserviceprovider", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_peering_service_providers", client.Namespacemicrosoft_peering), - Transform: transformers.TransformWithStruct(&armpeering.ServiceProvider{}, transformers.WithPrimaryKeys("Name")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} diff --git a/plugins/source/azure/resources/services/peering/service_providers_fetch.go b/plugins/source/azure/resources/services/peering/service_providers_fetch.go deleted file mode 100644 index 3e8f2b6277bd77..00000000000000 --- a/plugins/source/azure/resources/services/peering/service_providers_fetch.go +++ /dev/null @@ -1,26 +0,0 @@ -package peering - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchServiceProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpeering.NewServiceProvidersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/peering/service_providers_mock_test.go b/plugins/source/azure/resources/services/peering/service_providers_mock_test.go deleted file mode 100644 index 7389e7d4e90e7d..00000000000000 --- a/plugins/source/azure/resources/services/peering/service_providers_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package peering - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServiceProviders(router *mux.Router) error { - var item armpeering.ServiceProvidersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Peering/peeringServiceProviders", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServiceProviders(t *testing.T) { - client.MockTestHelper(t, ServiceProviders(), createServiceProviders) -} diff --git a/plugins/source/azure/resources/services/policy/assignments.go b/plugins/source/azure/resources/services/policy/assignments.go deleted file mode 100644 index 1ec34554037777..00000000000000 --- a/plugins/source/azure/resources/services/policy/assignments.go +++ /dev/null @@ -1,39 +0,0 @@ -package policy - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Assignments() *schema.Table { - return &schema.Table{ - Name: "azure_policy_assignments", - Resolver: fetchAssignments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/policy/policy-assignments/list?tabs=HTTP#policyassignment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_policy_assignments", client.Namespacemicrosoft_authorization), - Transform: transformers.TransformWithStruct(&armpolicy.Assignment{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAssignments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpolicy.NewAssignmentsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/policy/assignments_mock_test.go b/plugins/source/azure/resources/services/policy/assignments_mock_test.go deleted file mode 100644 index bfaf0923e030c1..00000000000000 --- a/plugins/source/azure/resources/services/policy/assignments_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package policy - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAssignments(router *mux.Router) error { - var item armpolicy.AssignmentsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyAssignments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAssignments(t *testing.T) { - client.MockTestHelper(t, Assignments(), createAssignments) -} diff --git a/plugins/source/azure/resources/services/policy/data_policy_manifests.go b/plugins/source/azure/resources/services/policy/data_policy_manifests.go deleted file mode 100644 index ad438de9440c7a..00000000000000 --- a/plugins/source/azure/resources/services/policy/data_policy_manifests.go +++ /dev/null @@ -1,37 +0,0 @@ -package policy - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DataPolicyManifests() *schema.Table { - return &schema.Table{ - Name: "azure_policy_data_policy_manifests", - Resolver: fetchDataPolicyManifests, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy@v0.6.0#DataPolicyManifest", - Transform: transformers.TransformWithStruct(&armpolicy.DataPolicyManifest{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchDataPolicyManifests(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpolicy.NewDataPolicyManifestsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/policy/data_policy_manifests_mock_test.go b/plugins/source/azure/resources/services/policy/data_policy_manifests_mock_test.go deleted file mode 100644 index 6c2ca78cc2978b..00000000000000 --- a/plugins/source/azure/resources/services/policy/data_policy_manifests_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package policy - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDataPolicyManifests(router *mux.Router) error { - var item armpolicy.DataPolicyManifestsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Authorization/dataPolicyManifests", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDataPolicyManifests(t *testing.T) { - client.MockTestHelper(t, DataPolicyManifests(), createDataPolicyManifests) -} diff --git a/plugins/source/azure/resources/services/policy/exemptions.go b/plugins/source/azure/resources/services/policy/exemptions.go deleted file mode 100644 index 717c5082bc0cff..00000000000000 --- a/plugins/source/azure/resources/services/policy/exemptions.go +++ /dev/null @@ -1,39 +0,0 @@ -package policy - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Exemptions() *schema.Table { - return &schema.Table{ - Name: "azure_policy_exemptions", - Resolver: fetchExemptions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/policy/policy-exemptions/list?tabs=HTTP#policyexemption", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_policy_exemptions", client.Namespacemicrosoft_authorization), - Transform: transformers.TransformWithStruct(&armpolicy.Exemption{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchExemptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpolicy.NewExemptionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/policy/exemptions_mock_test.go b/plugins/source/azure/resources/services/policy/exemptions_mock_test.go deleted file mode 100644 index 9c3b771d06eb5d..00000000000000 --- a/plugins/source/azure/resources/services/policy/exemptions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package policy - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExemptions(router *mux.Router) error { - var item armpolicy.ExemptionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyExemptions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestExemptions(t *testing.T) { - client.MockTestHelper(t, Exemptions(), createExemptions) -} diff --git a/plugins/source/azure/resources/services/policy/set_definitions.go b/plugins/source/azure/resources/services/policy/set_definitions.go deleted file mode 100644 index 9a6bf5041cdf6f..00000000000000 --- a/plugins/source/azure/resources/services/policy/set_definitions.go +++ /dev/null @@ -1,39 +0,0 @@ -package policy - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SetDefinitions() *schema.Table { - return &schema.Table{ - Name: "azure_policy_set_definitions", - Resolver: fetchSetDefinitions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/policy/policy-set-definitions/list?tabs=HTTP#policysetdefinition", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_policy_set_definitions", client.Namespacemicrosoft_authorization), - Transform: transformers.TransformWithStruct(&armpolicy.SetDefinition{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchSetDefinitions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpolicy.NewSetDefinitionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/policy/set_definitions_mock_test.go b/plugins/source/azure/resources/services/policy/set_definitions_mock_test.go deleted file mode 100644 index 5f85f1f2e87d6d..00000000000000 --- a/plugins/source/azure/resources/services/policy/set_definitions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package policy - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSetDefinitions(router *mux.Router) error { - var item armpolicy.SetDefinitionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSetDefinitions(t *testing.T) { - client.MockTestHelper(t, SetDefinitions(), createSetDefinitions) -} diff --git a/plugins/source/azure/resources/services/portal/list_tenant_configuration_violations.go b/plugins/source/azure/resources/services/portal/list_tenant_configuration_violations.go deleted file mode 100644 index 5fa375279a18ae..00000000000000 --- a/plugins/source/azure/resources/services/portal/list_tenant_configuration_violations.go +++ /dev/null @@ -1,39 +0,0 @@ -package portal - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ListTenantConfigurationViolations() *schema.Table { - return &schema.Table{ - Name: "azure_portal_list_tenant_configuration_violations", - Resolver: fetchListTenantConfigurationViolations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal@v0.5.0#Violation", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_portal_list_tenant_configuration_violations", client.Namespacemicrosoft_portal), - Transform: transformers.TransformWithStruct(&armportal.Violation{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchListTenantConfigurationViolations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armportal.NewListTenantConfigurationViolationsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/portal/list_tenant_configuration_violations_mock_test.go b/plugins/source/azure/resources/services/portal/list_tenant_configuration_violations_mock_test.go deleted file mode 100644 index 55913da9b96c25..00000000000000 --- a/plugins/source/azure/resources/services/portal/list_tenant_configuration_violations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package portal - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createListTenantConfigurationViolations(router *mux.Router) error { - var item armportal.ListTenantConfigurationViolationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Portal/listTenantConfigurationViolations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestListTenantConfigurationViolations(t *testing.T) { - client.MockTestHelper(t, ListTenantConfigurationViolations(), createListTenantConfigurationViolations) -} diff --git a/plugins/source/azure/resources/services/portal/tenant_configurations.go b/plugins/source/azure/resources/services/portal/tenant_configurations.go deleted file mode 100644 index f60af2388ca91f..00000000000000 --- a/plugins/source/azure/resources/services/portal/tenant_configurations.go +++ /dev/null @@ -1,39 +0,0 @@ -package portal - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func TenantConfigurations() *schema.Table { - return &schema.Table{ - Name: "azure_portal_tenant_configurations", - Resolver: fetchTenantConfigurations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal@v0.5.0#Configuration", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_portal_tenant_configurations", client.Namespacemicrosoft_portal), - Transform: transformers.TransformWithStruct(&armportal.Configuration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchTenantConfigurations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armportal.NewTenantConfigurationsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/portal/tenant_configurations_mock_test.go b/plugins/source/azure/resources/services/portal/tenant_configurations_mock_test.go deleted file mode 100644 index e0d44f3f36dd3c..00000000000000 --- a/plugins/source/azure/resources/services/portal/tenant_configurations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package portal - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTenantConfigurations(router *mux.Router) error { - var item armportal.TenantConfigurationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Portal/tenantConfigurations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestTenantConfigurations(t *testing.T) { - client.MockTestHelper(t, TenantConfigurations(), createTenantConfigurations) -} diff --git a/plugins/source/azure/resources/services/powerbidedicated/capacities.go b/plugins/source/azure/resources/services/powerbidedicated/capacities.go deleted file mode 100644 index e5364ff00331fc..00000000000000 --- a/plugins/source/azure/resources/services/powerbidedicated/capacities.go +++ /dev/null @@ -1,39 +0,0 @@ -package powerbidedicated - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbidedicated/armpowerbidedicated" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Capacities() *schema.Table { - return &schema.Table{ - Name: "azure_powerbidedicated_capacities", - Resolver: fetchCapacities, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/power-bi-embedded/capacities/list?tabs=HTTP#dedicatedcapacity", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_powerbidedicated_capacities", client.Namespacemicrosoft_powerbidedicated), - Transform: transformers.TransformWithStruct(&armpowerbidedicated.DedicatedCapacity{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchCapacities(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armpowerbidedicated.NewCapacitiesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/powerbidedicated/capacities_mock_test.go b/plugins/source/azure/resources/services/powerbidedicated/capacities_mock_test.go deleted file mode 100644 index 8398b48315256f..00000000000000 --- a/plugins/source/azure/resources/services/powerbidedicated/capacities_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package powerbidedicated - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbidedicated/armpowerbidedicated" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createCapacities(router *mux.Router) error { - var item armpowerbidedicated.CapacitiesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.PowerBIDedicated/capacities", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestCapacities(t *testing.T) { - client.MockTestHelper(t, Capacities(), createCapacities) -} diff --git a/plugins/source/azure/resources/services/privatedns/private_zones.go b/plugins/source/azure/resources/services/privatedns/private_zones.go deleted file mode 100644 index e1c60c3ee3ff2b..00000000000000 --- a/plugins/source/azure/resources/services/privatedns/private_zones.go +++ /dev/null @@ -1,43 +0,0 @@ -package privatedns - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateZones() *schema.Table { - return &schema.Table{ - Name: "azure_privatedns_private_zones", - Resolver: fetchPrivateZones, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/privatedns/private-zones/list?tabs=HTTP#privatezone", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_privatedns_private_zones", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armprivatedns.PrivateZone{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{ - recordSets(), - virtualNetworkLinks(), - }, - } -} - -func fetchPrivateZones(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armprivatedns.NewPrivateZonesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/privatedns/private_zones_mock_test.go b/plugins/source/azure/resources/services/privatedns/private_zones_mock_test.go deleted file mode 100644 index 33ccd2544d8c21..00000000000000 --- a/plugins/source/azure/resources/services/privatedns/private_zones_mock_test.go +++ /dev/null @@ -1,46 +0,0 @@ -package privatedns - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateZones(router *mux.Router) error { - var item armprivatedns.PrivateZonesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/privateDnsZones", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - if err := createMockRecordSets(router); err != nil { - return err - } - - return createMockVirtualNetworkLinks(router) -} - -func TestPrivateZones(t *testing.T) { - client.MockTestHelper(t, PrivateZones(), createPrivateZones) -} diff --git a/plugins/source/azure/resources/services/privatedns/record_sets.go b/plugins/source/azure/resources/services/privatedns/record_sets.go deleted file mode 100644 index 6ee6025db690f6..00000000000000 --- a/plugins/source/azure/resources/services/privatedns/record_sets.go +++ /dev/null @@ -1,72 +0,0 @@ -package privatedns - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func recordSets() *schema.Table { - return &schema.Table{ - Name: "azure_privatedns_private_zone_record_sets", - Resolver: fetchRecordSets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/privatedns/record-sets/list?tabs=HTTP#recordset", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_privatedns_private_zone_record_sets", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armprivatedns.RecordSet{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRecordSets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - zone := parent.Item.(*armprivatedns.PrivateZone) - svc, err := armprivatedns.NewRecordSetsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*zone.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *zone.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} - -func createMockRecordSets(router *mux.Router) error { - var item armprivatedns.RecordSetsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/ALL", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/privatedns/virtual_network_links.go b/plugins/source/azure/resources/services/privatedns/virtual_network_links.go deleted file mode 100644 index 8dcfd083a110b7..00000000000000 --- a/plugins/source/azure/resources/services/privatedns/virtual_network_links.go +++ /dev/null @@ -1,72 +0,0 @@ -package privatedns - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func virtualNetworkLinks() *schema.Table { - return &schema.Table{ - Name: "azure_privatedns_private_zone_virtual_network_links", - Resolver: fetchVirtualNetworkLinks, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/dns/privatedns/virtual-network-links/list?tabs=HTTP#virtualnetworklink", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_privatedns_private_zone_virtual_network_links", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armprivatedns.VirtualNetworkLink{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchVirtualNetworkLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - zone := parent.Item.(*armprivatedns.PrivateZone) - svc, err := armprivatedns.NewVirtualNetworkLinksClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*zone.ID) - if err != nil { - return err - } - pager := svc.NewListPager(group, *zone.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} - -func createMockVirtualNetworkLinks(router *mux.Router) error { - var item armprivatedns.VirtualNetworkLinksClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateZoneName}/virtualNetworkLinks", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/providerhub/provider_registrations.go b/plugins/source/azure/resources/services/providerhub/provider_registrations.go deleted file mode 100644 index 5d23d2ea83a756..00000000000000 --- a/plugins/source/azure/resources/services/providerhub/provider_registrations.go +++ /dev/null @@ -1,39 +0,0 @@ -package providerhub - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ProviderRegistrations() *schema.Table { - return &schema.Table{ - Name: "azure_providerhub_provider_registrations", - Resolver: fetchProviderRegistrations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub@v1.0.0#ProviderRegistration", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_providerhub_provider_registrations", client.Namespacemicrosoft_providerhub), - Transform: transformers.TransformWithStruct(&armproviderhub.ProviderRegistration{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchProviderRegistrations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armproviderhub.NewProviderRegistrationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/providerhub/provider_registrations_mock_test.go b/plugins/source/azure/resources/services/providerhub/provider_registrations_mock_test.go deleted file mode 100644 index 04729ed2e4dc6b..00000000000000 --- a/plugins/source/azure/resources/services/providerhub/provider_registrations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package providerhub - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createProviderRegistrations(router *mux.Router) error { - var item armproviderhub.ProviderRegistrationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ProviderHub/providerRegistrations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestProviderRegistrations(t *testing.T) { - client.MockTestHelper(t, ProviderRegistrations(), createProviderRegistrations) -} diff --git a/plugins/source/azure/resources/services/redhatopenshift/open_shift_clusters.go b/plugins/source/azure/resources/services/redhatopenshift/open_shift_clusters.go deleted file mode 100644 index 76490068d1bbbf..00000000000000 --- a/plugins/source/azure/resources/services/redhatopenshift/open_shift_clusters.go +++ /dev/null @@ -1,39 +0,0 @@ -package redhatopenshift - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redhatopenshift/armredhatopenshift" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func OpenShiftClusters() *schema.Table { - return &schema.Table{ - Name: "azure_redhatopenshift_open_shift_clusters", - Resolver: fetchOpenShiftClusters, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/openshift/open-shift-clusters/list?tabs=HTTP#openshiftcluster", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_redhatopenshift_open_shift_clusters", client.Namespacemicrosoft_redhatopenshift), - Transform: transformers.TransformWithStruct(&armredhatopenshift.OpenShiftCluster{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchOpenShiftClusters(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armredhatopenshift.NewOpenShiftClustersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/redhatopenshift/open_shift_clusters_mock_test.go b/plugins/source/azure/resources/services/redhatopenshift/open_shift_clusters_mock_test.go deleted file mode 100644 index df6f68d4b8b311..00000000000000 --- a/plugins/source/azure/resources/services/redhatopenshift/open_shift_clusters_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package redhatopenshift - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redhatopenshift/armredhatopenshift" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createOpenShiftClusters(router *mux.Router) error { - var item armredhatopenshift.OpenShiftClustersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.RedHatOpenShift/openShiftClusters", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestOpenShiftClusters(t *testing.T) { - client.MockTestHelper(t, OpenShiftClusters(), createOpenShiftClusters) -} diff --git a/plugins/source/azure/resources/services/redis/caches.go b/plugins/source/azure/resources/services/redis/caches.go deleted file mode 100644 index f696872cb7c7aa..00000000000000 --- a/plugins/source/azure/resources/services/redis/caches.go +++ /dev/null @@ -1,39 +0,0 @@ -package redis - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Caches() *schema.Table { - return &schema.Table{ - Name: "azure_redis_caches", - Resolver: fetchCaches, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/redis/redis/list-by-subscription?tabs=HTTP#redisresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_redis_caches", client.Namespacemicrosoft_cache), - Transform: transformers.TransformWithStruct(&armredis.ResourceInfo{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchCaches(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armredis.NewClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/redis/caches_mock_test.go b/plugins/source/azure/resources/services/redis/caches_mock_test.go deleted file mode 100644 index 84c0c87b028ec8..00000000000000 --- a/plugins/source/azure/resources/services/redis/caches_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package redis - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createCaches(router *mux.Router) error { - var item armredis.ClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestCaches(t *testing.T) { - client.MockTestHelper(t, Caches(), createCaches) -} diff --git a/plugins/source/azure/resources/services/relay/namespaces.go b/plugins/source/azure/resources/services/relay/namespaces.go deleted file mode 100644 index 156df6a1788a52..00000000000000 --- a/plugins/source/azure/resources/services/relay/namespaces.go +++ /dev/null @@ -1,39 +0,0 @@ -package relay - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Namespaces() *schema.Table { - return &schema.Table{ - Name: "azure_relay_namespaces", - Resolver: fetchNamespaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/relay/namespaces/list?tabs=HTTP#relaynamespace", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_relay_namespaces", client.Namespacemicrosoft_relay), - Transform: transformers.TransformWithStruct(&armrelay.Namespace{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchNamespaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armrelay.NewNamespacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/relay/namespaces_mock_test.go b/plugins/source/azure/resources/services/relay/namespaces_mock_test.go deleted file mode 100644 index a3e2bc64e0aa6f..00000000000000 --- a/plugins/source/azure/resources/services/relay/namespaces_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package relay - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNamespaces(router *mux.Router) error { - var item armrelay.NamespacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestNamespaces(t *testing.T) { - client.MockTestHelper(t, Namespaces(), createNamespaces) -} diff --git a/plugins/source/azure/resources/services/reservations/reservation.go b/plugins/source/azure/resources/services/reservations/reservation.go deleted file mode 100644 index 5a376e8c524c3d..00000000000000 --- a/plugins/source/azure/resources/services/reservations/reservation.go +++ /dev/null @@ -1,37 +0,0 @@ -package reservations - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Reservation() *schema.Table { - return &schema.Table{ - Name: "azure_reservations_reservation", - Resolver: fetchReservation, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/reserved-vm-instances/reservation/list-all?tabs=HTTP#reservationresponse", - Transform: transformers.TransformWithStruct(&armreservations.ReservationResponse{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchReservation(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armreservations.NewReservationClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/reservations/reservation_mock_test.go b/plugins/source/azure/resources/services/reservations/reservation_mock_test.go deleted file mode 100644 index f95e85d52ab8b2..00000000000000 --- a/plugins/source/azure/resources/services/reservations/reservation_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package reservations - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createReservation(router *mux.Router) error { - var item armreservations.ReservationClientListAllResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Capacity/reservations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestReservation(t *testing.T) { - client.MockTestHelper(t, Reservation(), createReservation) -} diff --git a/plugins/source/azure/resources/services/reservations/reservation_order.go b/plugins/source/azure/resources/services/reservations/reservation_order.go deleted file mode 100644 index 27ddc4343d96e1..00000000000000 --- a/plugins/source/azure/resources/services/reservations/reservation_order.go +++ /dev/null @@ -1,39 +0,0 @@ -package reservations - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ReservationOrder() *schema.Table { - return &schema.Table{ - Name: "azure_reservations_reservation_order", - Resolver: fetchReservationOrder, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/reserved-vm-instances/reservation-order/get?tabs=HTTP#reservationorderresponse", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_reservations_reservation_order", client.Namespacemicrosoft_capacity), - Transform: transformers.TransformWithStruct(&armreservations.ReservationOrderResponse{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchReservationOrder(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armreservations.NewReservationOrderClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/reservations/reservation_order_mock_test.go b/plugins/source/azure/resources/services/reservations/reservation_order_mock_test.go deleted file mode 100644 index d1fad9d1e3fede..00000000000000 --- a/plugins/source/azure/resources/services/reservations/reservation_order_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package reservations - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createReservationOrder(router *mux.Router) error { - var item armreservations.ReservationOrderClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Capacity/reservationOrders", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestReservationOrder(t *testing.T) { - client.MockTestHelper(t, ReservationOrder(), createReservationOrder) -} diff --git a/plugins/source/azure/resources/services/resources/links.go b/plugins/source/azure/resources/services/resources/links.go deleted file mode 100644 index 4ad3f072cb9894..00000000000000 --- a/plugins/source/azure/resources/services/resources/links.go +++ /dev/null @@ -1,40 +0,0 @@ -package resources - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlinks" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Links() *schema.Table { - return &schema.Table{ - Name: "azure_resources_links", - Resolver: fetchLinks, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/resource-links/list-at-subscription#resourcelink", - Multiplex: client.SubscriptionMultiplex, - Transform: transformers.TransformWithStruct(&armlinks.ResourceLink{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchLinks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armlinks.NewResourceLinksClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAtSubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/resources/links_mock_test.go b/plugins/source/azure/resources/services/resources/links_mock_test.go deleted file mode 100644 index 7edf52d88c0ff6..00000000000000 --- a/plugins/source/azure/resources/services/resources/links_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package resources - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlinks" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createLinks(router *mux.Router) error { - var item armlinks.ResourceLinksClientListAtSubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Resources/links", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestLinks(t *testing.T) { - client.MockTestHelper(t, Links(), createLinks) -} diff --git a/plugins/source/azure/resources/services/resources/providers.go b/plugins/source/azure/resources/services/resources/providers.go deleted file mode 100644 index 431da53b090f55..00000000000000 --- a/plugins/source/azure/resources/services/resources/providers.go +++ /dev/null @@ -1,42 +0,0 @@ -package resources - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Providers() *schema.Table { - return &schema.Table{ - Name: "azure_resources_providers", - Resolver: fetchProviders, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://docs.microsoft.com/en-us/rest/api/resources/providers/list", - Multiplex: client.SubscriptionMultiplex, - Transform: transformers.TransformWithStruct(&armresources.Provider{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchProviders(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armresources.NewProvidersClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(&armresources.ProvidersClientListOptions{ - Expand: to.Ptr("resourceTypes/aliases"), - }) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/resources/providers_mock_test.go b/plugins/source/azure/resources/services/resources/providers_mock_test.go deleted file mode 100644 index 9116a8119b7e09..00000000000000 --- a/plugins/source/azure/resources/services/resources/providers_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package resources - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createProviders(router *mux.Router) error { - var item armresources.ProvidersClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestProviders(t *testing.T) { - client.MockTestHelper(t, Providers(), createProviders) -} diff --git a/plugins/source/azure/resources/services/resources/resource_groups.go b/plugins/source/azure/resources/services/resources/resource_groups.go deleted file mode 100644 index 7d72270d3ddd24..00000000000000 --- a/plugins/source/azure/resources/services/resources/resource_groups.go +++ /dev/null @@ -1,30 +0,0 @@ -package resources - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ResourceGroups() *schema.Table { - return &schema.Table{ - Name: "azure_resources_resource_groups", - Resolver: fetchResourceGroups, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/resource-groups/list#resourcegroup", - Multiplex: client.SubscriptionMultiplex, - Transform: transformers.TransformWithStruct(&armresources.ResourceGroup{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchResourceGroups(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - - // We already fetched the resource groups for this subscription, no need to fetch again - res <- cl.ResourceGroups[cl.SubscriptionId] - return nil -} diff --git a/plugins/source/azure/resources/services/resources/resource_groups_mock_test.go b/plugins/source/azure/resources/services/resources/resource_groups_mock_test.go deleted file mode 100644 index a146ba4db4ed29..00000000000000 --- a/plugins/source/azure/resources/services/resources/resource_groups_mock_test.go +++ /dev/null @@ -1,18 +0,0 @@ -package resources - -import ( - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/gorilla/mux" -) - -func createResourceGroups(router *mux.Router) error { - // We already fetched the resource groups for this subscription, no need to fetch again - return nil -} - -func TestResourceGroups(t *testing.T) { - client.MockTestHelper(t, ResourceGroups(), createResourceGroups) -} diff --git a/plugins/source/azure/resources/services/resources/resource_mock_test.go b/plugins/source/azure/resources/services/resources/resource_mock_test.go deleted file mode 100644 index 216b6c8286186e..00000000000000 --- a/plugins/source/azure/resources/services/resources/resource_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package resources - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createResources(router *mux.Router) error { - var item armresources.ClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resources", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestResources(t *testing.T) { - client.MockTestHelper(t, Resources(), createResources) -} diff --git a/plugins/source/azure/resources/services/resources/resources.go b/plugins/source/azure/resources/services/resources/resources.go deleted file mode 100644 index c1d9082c5a382e..00000000000000 --- a/plugins/source/azure/resources/services/resources/resources.go +++ /dev/null @@ -1,39 +0,0 @@ -package resources - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Resources() *schema.Table { - return &schema.Table{ - Name: "azure_resources_resources", - Resolver: fetchResources, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/resources/list#genericresourceexpanded", - Multiplex: client.SubscriptionMultiplex, - Transform: transformers.TransformWithStruct(&armresources.GenericResourceExpanded{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armresources.NewClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/saas/resources.go b/plugins/source/azure/resources/services/saas/resources.go deleted file mode 100644 index 1088843676678c..00000000000000 --- a/plugins/source/azure/resources/services/saas/resources.go +++ /dev/null @@ -1,39 +0,0 @@ -package saas - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Resources() *schema.Table { - return &schema.Table{ - Name: "azure_saas_resources", - Resolver: fetchResources, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas@v0.5.0#Resource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_saas_resources", client.Namespacemicrosoft_saas), - Transform: transformers.TransformWithStruct(&armsaas.Resource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchResources(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsaas.NewResourcesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/saas/resources_mock_test.go b/plugins/source/azure/resources/services/saas/resources_mock_test.go deleted file mode 100644 index bbe5d2abfe1857..00000000000000 --- a/plugins/source/azure/resources/services/saas/resources_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package saas - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createResources(router *mux.Router) error { - var item armsaas.ResourcesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.SaaS/saasresources", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestResources(t *testing.T) { - client.MockTestHelper(t, Resources(), createResources) -} diff --git a/plugins/source/azure/resources/services/search/services.go b/plugins/source/azure/resources/services/search/services.go deleted file mode 100644 index 549d86d4ec3a9a..00000000000000 --- a/plugins/source/azure/resources/services/search/services.go +++ /dev/null @@ -1,20 +0,0 @@ -package search - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Services() *schema.Table { - return &schema.Table{ - Name: "azure_search_services", - Resolver: fetchServices, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch@v1.0.0#Service", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_search_services", client.Namespacemicrosoft_search), - Transform: transformers.TransformWithStruct(&armsearch.Service{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} diff --git a/plugins/source/azure/resources/services/search/services_fetch.go b/plugins/source/azure/resources/services/search/services_fetch.go deleted file mode 100644 index 3d2e414ecf8b30..00000000000000 --- a/plugins/source/azure/resources/services/search/services_fetch.go +++ /dev/null @@ -1,26 +0,0 @@ -package search - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsearch.NewServicesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/search/services_mock_test.go b/plugins/source/azure/resources/services/search/services_mock_test.go deleted file mode 100644 index 1872043e371af9..00000000000000 --- a/plugins/source/azure/resources/services/search/services_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package search - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServices(router *mux.Router) error { - var item armsearch.ServicesClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Search/searchServices", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestServices(t *testing.T) { - client.MockTestHelper(t, Services(), createServices) -} diff --git a/plugins/source/azure/resources/services/security/adaptive_application_controls.go b/plugins/source/azure/resources/services/security/adaptive_application_controls.go deleted file mode 100644 index f8f8d693bcabb7..00000000000000 --- a/plugins/source/azure/resources/services/security/adaptive_application_controls.go +++ /dev/null @@ -1,36 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AdaptiveApplicationControls() *schema.Table { - return &schema.Table{ - Name: "azure_security_adaptive_application_controls", - Resolver: fetchAdapterApplicationControls, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/adaptive-application-controls/list?view=rest-defenderforcloud-2020-01-01&tabs=HTTP", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_adaptive_application_controls", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.AdaptiveApplicationControlGroup{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAdapterApplicationControls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAdaptiveApplicationControlsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - r, err := svc.List(ctx, nil) - if err != nil { - return err - } - res <- r.Value - return nil -} diff --git a/plugins/source/azure/resources/services/security/adaptive_application_controls_mock_test.go b/plugins/source/azure/resources/services/security/adaptive_application_controls_mock_test.go deleted file mode 100644 index a2e1dcd4717374..00000000000000 --- a/plugins/source/azure/resources/services/security/adaptive_application_controls_mock_test.go +++ /dev/null @@ -1,36 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAdapterApplicationControls(router *mux.Router) error { - var item armsecurity.AdaptiveApplicationControlsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/applicationWhitelistings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestAdaptiveApplicationControls(t *testing.T) { - client.MockTestHelper(t, AdaptiveApplicationControls(), createAdapterApplicationControls) -} diff --git a/plugins/source/azure/resources/services/security/alerts.go b/plugins/source/azure/resources/services/security/alerts.go deleted file mode 100644 index 9c6a07faaba924..00000000000000 --- a/plugins/source/azure/resources/services/security/alerts.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Alerts() *schema.Table { - return &schema.Table{ - Name: "azure_security_alerts", - Resolver: fetchAlerts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/alerts/list?tabs=HTTP#alert", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_alerts", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Alert{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAlerts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAlertsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/alerts_mock_test.go b/plugins/source/azure/resources/services/security/alerts_mock_test.go deleted file mode 100644 index 5daa1ac7007a07..00000000000000 --- a/plugins/source/azure/resources/services/security/alerts_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAlerts(router *mux.Router) error { - var item armsecurity.AlertsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/alerts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAlerts(t *testing.T) { - client.MockTestHelper(t, Alerts(), createAlerts) -} diff --git a/plugins/source/azure/resources/services/security/alerts_suppression_rules.go b/plugins/source/azure/resources/services/security/alerts_suppression_rules.go deleted file mode 100644 index 78dd9603683ed9..00000000000000 --- a/plugins/source/azure/resources/services/security/alerts_suppression_rules.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AlertsSuppressionRules() *schema.Table { - return &schema.Table{ - Name: "azure_security_alerts_suppression_rules", - Resolver: fetchAlertsSuppressionRules, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/alerts-suppression-rules/list?tabs=HTTP#alertssuppressionrule", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_alerts_suppression_rules", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.AlertsSuppressionRule{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAlertsSuppressionRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAlertsSuppressionRulesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/alerts_suppression_rules_mock_test.go b/plugins/source/azure/resources/services/security/alerts_suppression_rules_mock_test.go deleted file mode 100644 index 00fbbebaa18ae6..00000000000000 --- a/plugins/source/azure/resources/services/security/alerts_suppression_rules_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAlertsSuppressionRules(router *mux.Router) error { - var item armsecurity.AlertsSuppressionRulesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/alertsSuppressionRules", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAlertsSuppressionRules(t *testing.T) { - client.MockTestHelper(t, AlertsSuppressionRules(), createAlertsSuppressionRules) -} diff --git a/plugins/source/azure/resources/services/security/allowed_connections.go b/plugins/source/azure/resources/services/security/allowed_connections.go deleted file mode 100644 index 9f438bb02e4947..00000000000000 --- a/plugins/source/azure/resources/services/security/allowed_connections.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AllowedConnections() *schema.Table { - return &schema.Table{ - Name: "azure_security_allowed_connections", - Resolver: fetchAllowedConnections, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/allowed-connections/list?tabs=HTTP#allowedconnectionsresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_allowed_connections", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.AllowedConnectionsResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAllowedConnections(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAllowedConnectionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/allowed_connections_mock_test.go b/plugins/source/azure/resources/services/security/allowed_connections_mock_test.go deleted file mode 100644 index d602778124351a..00000000000000 --- a/plugins/source/azure/resources/services/security/allowed_connections_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAllowedConnections(router *mux.Router) error { - var item armsecurity.AllowedConnectionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/allowedConnections", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAllowedConnections(t *testing.T) { - client.MockTestHelper(t, AllowedConnections(), createAllowedConnections) -} diff --git a/plugins/source/azure/resources/services/security/applications.go b/plugins/source/azure/resources/services/security/applications.go deleted file mode 100644 index b547dec7b1fe3c..00000000000000 --- a/plugins/source/azure/resources/services/security/applications.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Applications() *schema.Table { - return &schema.Table{ - Name: "azure_security_applications", - Resolver: fetchApplications, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#Application", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_applications", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Application{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchApplications(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewApplicationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/applications_mock_test.go b/plugins/source/azure/resources/services/security/applications_mock_test.go deleted file mode 100644 index 966b2cb05ce4d6..00000000000000 --- a/plugins/source/azure/resources/services/security/applications_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createApplications(router *mux.Router) error { - var item armsecurity.ApplicationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/applications", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestApplications(t *testing.T) { - client.MockTestHelper(t, Applications(), createApplications) -} diff --git a/plugins/source/azure/resources/services/security/assessments.go b/plugins/source/azure/resources/services/security/assessments.go deleted file mode 100644 index b69123612b8cd5..00000000000000 --- a/plugins/source/azure/resources/services/security/assessments.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Assessments() *schema.Table { - return &schema.Table{ - Name: "azure_security_assessments", - Resolver: fetchAssessments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/assessments/list?tabs=HTTP#securityassessment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_assessments", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.AssessmentResponse{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAssessments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAssessmentsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager("/subscriptions/"+cl.SubscriptionId, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/assessments_mock_test.go b/plugins/source/azure/resources/services/security/assessments_mock_test.go deleted file mode 100644 index 9c4bd51e6f33c0..00000000000000 --- a/plugins/source/azure/resources/services/security/assessments_mock_test.go +++ /dev/null @@ -1,41 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAssessments(router *mux.Router) error { - var item armsecurity.AssessmentsMetadataClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/assessments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAssessments(t *testing.T) { - client.MockTestHelper(t, Assessments(), createAssessments) -} diff --git a/plugins/source/azure/resources/services/security/auto_provisioning_settings.go b/plugins/source/azure/resources/services/security/auto_provisioning_settings.go deleted file mode 100644 index 7db7c1662fc473..00000000000000 --- a/plugins/source/azure/resources/services/security/auto_provisioning_settings.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func AutoProvisioningSettings() *schema.Table { - return &schema.Table{ - Name: "azure_security_auto_provisioning_settings", - Resolver: fetchAutoProvisioningSettings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/auto-provisioning-settings/list?tabs=HTTP#autoprovisioningsetting", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_auto_provisioning_settings", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.AutoProvisioningSetting{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAutoProvisioningSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAutoProvisioningSettingsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/auto_provisioning_settings_mock_test.go b/plugins/source/azure/resources/services/security/auto_provisioning_settings_mock_test.go deleted file mode 100644 index f6e7a3df9b5b25..00000000000000 --- a/plugins/source/azure/resources/services/security/auto_provisioning_settings_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAutoProvisioningSettings(router *mux.Router) error { - var item armsecurity.AutoProvisioningSettingsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/autoProvisioningSettings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAutoProvisioningSettings(t *testing.T) { - client.MockTestHelper(t, AutoProvisioningSettings(), createAutoProvisioningSettings) -} diff --git a/plugins/source/azure/resources/services/security/automations.go b/plugins/source/azure/resources/services/security/automations.go deleted file mode 100644 index c742af9728cd20..00000000000000 --- a/plugins/source/azure/resources/services/security/automations.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Automations() *schema.Table { - return &schema.Table{ - Name: "azure_security_automations", - Resolver: fetchAutomations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/automations/list?tabs=HTTP#automation", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_automations", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Automation{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchAutomations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewAutomationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/automations_mock_test.go b/plugins/source/azure/resources/services/security/automations_mock_test.go deleted file mode 100644 index e3c59a27058e64..00000000000000 --- a/plugins/source/azure/resources/services/security/automations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createAutomations(router *mux.Router) error { - var item armsecurity.AutomationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/automations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestAutomations(t *testing.T) { - client.MockTestHelper(t, Automations(), createAutomations) -} diff --git a/plugins/source/azure/resources/services/security/connectors.go b/plugins/source/azure/resources/services/security/connectors.go deleted file mode 100644 index 28c4e14ab4d50d..00000000000000 --- a/plugins/source/azure/resources/services/security/connectors.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Connectors() *schema.Table { - return &schema.Table{ - Name: "azure_security_connectors", - Resolver: fetchConnectors, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#ConnectorSetting", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_connectors", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Connector{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchConnectors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewConnectorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/connectors_mock_test.go b/plugins/source/azure/resources/services/security/connectors_mock_test.go deleted file mode 100644 index 773a7ac07ec974..00000000000000 --- a/plugins/source/azure/resources/services/security/connectors_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createConnectors(router *mux.Router) error { - var item armsecurity.ConnectorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/securityConnectors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestConnectors(t *testing.T) { - client.MockTestHelper(t, Connectors(), createConnectors) -} diff --git a/plugins/source/azure/resources/services/security/contacts.go b/plugins/source/azure/resources/services/security/contacts.go deleted file mode 100644 index 65ed2dbdac55e5..00000000000000 --- a/plugins/source/azure/resources/services/security/contacts.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Contacts() *schema.Table { - return &schema.Table{ - Name: "azure_security_contacts", - Resolver: fetchContacts, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#Contact", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_contacts", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Contact{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchContacts(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewContactsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/contacts_mock_test.go b/plugins/source/azure/resources/services/security/contacts_mock_test.go deleted file mode 100644 index 282c61198b7995..00000000000000 --- a/plugins/source/azure/resources/services/security/contacts_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createContacts(router *mux.Router) error { - var item armsecurity.ContactsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/securityContacts", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestContacts(t *testing.T) { - client.MockTestHelper(t, Contacts(), createContacts) -} diff --git a/plugins/source/azure/resources/services/security/discovered_security_solutions.go b/plugins/source/azure/resources/services/security/discovered_security_solutions.go deleted file mode 100644 index 5ad71ba3140c75..00000000000000 --- a/plugins/source/azure/resources/services/security/discovered_security_solutions.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func DiscoveredSecuritySolutions() *schema.Table { - return &schema.Table{ - Name: "azure_security_discovered_security_solutions", - Resolver: fetchDiscoveredSecuritySolutions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/discovered-security-solutions/list?tabs=HTTP#discoveredsecuritysolution", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_discovered_security_solutions", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.DiscoveredSecuritySolution{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchDiscoveredSecuritySolutions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewDiscoveredSecuritySolutionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/discovered_security_solutions_mock_test.go b/plugins/source/azure/resources/services/security/discovered_security_solutions_mock_test.go deleted file mode 100644 index b5ad3cf0b80cd9..00000000000000 --- a/plugins/source/azure/resources/services/security/discovered_security_solutions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createDiscoveredSecuritySolutions(router *mux.Router) error { - var item armsecurity.DiscoveredSecuritySolutionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/discoveredSecuritySolutions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestDiscoveredSecuritySolutions(t *testing.T) { - client.MockTestHelper(t, DiscoveredSecuritySolutions(), createDiscoveredSecuritySolutions) -} diff --git a/plugins/source/azure/resources/services/security/external_security_solutions.go b/plugins/source/azure/resources/services/security/external_security_solutions.go deleted file mode 100644 index 3fe12acf4a1987..00000000000000 --- a/plugins/source/azure/resources/services/security/external_security_solutions.go +++ /dev/null @@ -1,43 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func ExternalSecuritySolutions() *schema.Table { - return &schema.Table{ - Name: "azure_security_external_security_solutions", - Resolver: fetchExternalSecuritySolutions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/external-security-solutions/list?tabs=HTTP#externalsecuritysolutionlist", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_external_security_solutions", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.ExternalSecuritySolution{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchExternalSecuritySolutions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewExternalSecuritySolutionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - results := make([]armsecurity.ExternalSecuritySolution, len(p.Value)) - for i, r := range p.Value { - results[i] = *r.GetExternalSecuritySolution() - } - res <- results - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/external_security_solutions_mock_test.go b/plugins/source/azure/resources/services/security/external_security_solutions_mock_test.go deleted file mode 100644 index 9f0c7c55fea2fe..00000000000000 --- a/plugins/source/azure/resources/services/security/external_security_solutions_mock_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createExternalSecuritySolutions(router *mux.Router) error { - var item armsecurity.ExternalSecuritySolutionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - var aadSolution armsecurity.AADExternalSecuritySolution - if err := faker.FakeObject(&aadSolution); err != nil { - return err - } - - emptyStr := "" - item.Value = []armsecurity.ExternalSecuritySolutionClassification{&aadSolution} - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/externalSecuritySolutions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestExternalSecuritySolutions(t *testing.T) { - client.MockTestHelper(t, ExternalSecuritySolutions(), createExternalSecuritySolutions) -} diff --git a/plugins/source/azure/resources/services/security/governance_rule.go b/plugins/source/azure/resources/services/security/governance_rule.go deleted file mode 100644 index 8da3103308e9c7..00000000000000 --- a/plugins/source/azure/resources/services/security/governance_rule.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func GovernanceRule() *schema.Table { - return &schema.Table{ - Name: "azure_security_governance_rule", - Resolver: fetchGovernanceRule, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#GovernanceRule", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_governance_rule", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.GovernanceRule{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchGovernanceRule(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewGovernanceRulesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager("subscriptions/"+cl.SubscriptionId, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/governance_rule_mock_test.go b/plugins/source/azure/resources/services/security/governance_rule_mock_test.go deleted file mode 100644 index 8d769086f4c136..00000000000000 --- a/plugins/source/azure/resources/services/security/governance_rule_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createGovernanceRule(router *mux.Router) error { - var item armsecurity.GovernanceRulesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/governanceRules", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestGovernanceRule(t *testing.T) { - client.MockTestHelper(t, GovernanceRule(), createGovernanceRule) -} diff --git a/plugins/source/azure/resources/services/security/jit_network_access_policies.go b/plugins/source/azure/resources/services/security/jit_network_access_policies.go deleted file mode 100644 index 6a8f56346c30d1..00000000000000 --- a/plugins/source/azure/resources/services/security/jit_network_access_policies.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func JitNetworkAccessPolicies() *schema.Table { - return &schema.Table{ - Name: "azure_security_jit_network_access_policies", - Resolver: fetchJitNetworkAccessPolicies, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/jit-network-access-policies/list?tabs=HTTP#jitnetworkaccesspolicy", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_jit_network_access_policies", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.JitNetworkAccessPolicy{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchJitNetworkAccessPolicies(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewJitNetworkAccessPoliciesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/jit_network_access_policies_mock_test.go b/plugins/source/azure/resources/services/security/jit_network_access_policies_mock_test.go deleted file mode 100644 index 2fd666ddc129a1..00000000000000 --- a/plugins/source/azure/resources/services/security/jit_network_access_policies_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createJitNetworkAccessPolicies(router *mux.Router) error { - var item armsecurity.JitNetworkAccessPoliciesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/jitNetworkAccessPolicies", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestJitNetworkAccessPolicies(t *testing.T) { - client.MockTestHelper(t, JitNetworkAccessPolicies(), createJitNetworkAccessPolicies) -} diff --git a/plugins/source/azure/resources/services/security/locations.go b/plugins/source/azure/resources/services/security/locations.go deleted file mode 100644 index 1b0138aba5b35a..00000000000000 --- a/plugins/source/azure/resources/services/security/locations.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Locations() *schema.Table { - return &schema.Table{ - Name: "azure_security_locations", - Resolver: fetchLocations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/locations/get?tabs=HTTP#asclocation", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_locations", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.AscLocation{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchLocations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewLocationsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/locations_mock_test.go b/plugins/source/azure/resources/services/security/locations_mock_test.go deleted file mode 100644 index 2258d4b635c587..00000000000000 --- a/plugins/source/azure/resources/services/security/locations_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createLocations(router *mux.Router) error { - var item armsecurity.LocationsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestLocations(t *testing.T) { - client.MockTestHelper(t, Locations(), createLocations) -} diff --git a/plugins/source/azure/resources/services/security/pricings.go b/plugins/source/azure/resources/services/security/pricings.go deleted file mode 100644 index a6899aab93b6a1..00000000000000 --- a/plugins/source/azure/resources/services/security/pricings.go +++ /dev/null @@ -1,20 +0,0 @@ -package security - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Pricings() *schema.Table { - return &schema.Table{ - Name: "azure_security_pricings", - Resolver: fetchPricings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/pricings/list?tabs=HTTP#pricing", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_pricings", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Pricing{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} diff --git a/plugins/source/azure/resources/services/security/pricings_fetch.go b/plugins/source/azure/resources/services/security/pricings_fetch.go deleted file mode 100644 index af5c9470621403..00000000000000 --- a/plugins/source/azure/resources/services/security/pricings_fetch.go +++ /dev/null @@ -1,23 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchPricings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewPricingsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - result, err := svc.List(ctx, nil) - if err != nil { - return err - } - res <- result.Value - return nil -} diff --git a/plugins/source/azure/resources/services/security/pricings_mock_test.go b/plugins/source/azure/resources/services/security/pricings_mock_test.go deleted file mode 100644 index a8d563e49825f8..00000000000000 --- a/plugins/source/azure/resources/services/security/pricings_mock_test.go +++ /dev/null @@ -1,37 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPricings(router *mux.Router) error { - var item armsecurity.PricingsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestPricings(t *testing.T) { - client.MockTestHelper(t, Pricings(), createPricings) -} diff --git a/plugins/source/azure/resources/services/security/regulatory_compliance_standards.go b/plugins/source/azure/resources/services/security/regulatory_compliance_standards.go deleted file mode 100644 index 9abe049d492fb0..00000000000000 --- a/plugins/source/azure/resources/services/security/regulatory_compliance_standards.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func RegulatoryComplianceStandards() *schema.Table { - return &schema.Table{ - Name: "azure_security_regulatory_compliance_standards", - Resolver: fetchRegulatoryComplianceStandards, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/regulatory-compliance-standards/list?tabs=HTTP#regulatorycompliancestandard", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_regulatory_compliance_standards", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.RegulatoryComplianceStandard{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchRegulatoryComplianceStandards(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewRegulatoryComplianceStandardsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/regulatory_compliance_standards_mock_test.go b/plugins/source/azure/resources/services/security/regulatory_compliance_standards_mock_test.go deleted file mode 100644 index ac291bb4ee3f67..00000000000000 --- a/plugins/source/azure/resources/services/security/regulatory_compliance_standards_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createRegulatoryComplianceStandards(router *mux.Router) error { - var item armsecurity.RegulatoryComplianceStandardsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/regulatoryComplianceStandards", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestRegulatoryComplianceStandards(t *testing.T) { - client.MockTestHelper(t, RegulatoryComplianceStandards(), createRegulatoryComplianceStandards) -} diff --git a/plugins/source/azure/resources/services/security/secure_score_control_definitions.go b/plugins/source/azure/resources/services/security/secure_score_control_definitions.go deleted file mode 100644 index bbc6ab0dd6f479..00000000000000 --- a/plugins/source/azure/resources/services/security/secure_score_control_definitions.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SecureScoreControlDefinitions() *schema.Table { - return &schema.Table{ - Name: "azure_security_secure_score_control_definitions", - Resolver: fetchSecureScoreControlDefinitions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/secure-score-control-definitions/list?tabs=HTTP#securescorecontroldefinitionitem", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_secure_score_control_definitions", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.SecureScoreControlDefinitionItem{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchSecureScoreControlDefinitions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewSecureScoreControlDefinitionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/secure_score_control_definitions_mock_test.go b/plugins/source/azure/resources/services/security/secure_score_control_definitions_mock_test.go deleted file mode 100644 index 1e86d65fc4a672..00000000000000 --- a/plugins/source/azure/resources/services/security/secure_score_control_definitions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSecureScoreControlDefinitions(router *mux.Router) error { - var item armsecurity.SecureScoreControlDefinitionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/providers/Microsoft.Security/secureScoreControlDefinitions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSecureScoreControlDefinitions(t *testing.T) { - client.MockTestHelper(t, SecureScoreControlDefinitions(), createSecureScoreControlDefinitions) -} diff --git a/plugins/source/azure/resources/services/security/secure_score_controls.go b/plugins/source/azure/resources/services/security/secure_score_controls.go deleted file mode 100644 index 504fbe6d727235..00000000000000 --- a/plugins/source/azure/resources/services/security/secure_score_controls.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SecureScoreControls() *schema.Table { - return &schema.Table{ - Name: "azure_security_secure_score_controls", - Resolver: fetchSecureScoreControls, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/secure-score-controls/list?tabs=HTTP#securescorecontroldetails", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_secure_score_controls", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.SecureScoreControlDetails{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSecureScoreControls(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewSecureScoreControlsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/secure_score_controls_mock_test.go b/plugins/source/azure/resources/services/security/secure_score_controls_mock_test.go deleted file mode 100644 index e7ca9297d35a90..00000000000000 --- a/plugins/source/azure/resources/services/security/secure_score_controls_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSecureScoreControls(router *mux.Router) error { - var item armsecurity.SecureScoreControlsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScoreControls", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSecureScoreControls(t *testing.T) { - client.MockTestHelper(t, SecureScoreControls(), createSecureScoreControls) -} diff --git a/plugins/source/azure/resources/services/security/secure_scores.go b/plugins/source/azure/resources/services/security/secure_scores.go deleted file mode 100644 index a9f8e26e6b1155..00000000000000 --- a/plugins/source/azure/resources/services/security/secure_scores.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SecureScores() *schema.Table { - return &schema.Table{ - Name: "azure_security_secure_scores", - Resolver: fetchSecureScores, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/secure-scores/list?tabs=HTTP#securescoreitem", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_secure_scores", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.SecureScoreItem{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSecureScores(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewSecureScoresClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/secure_scores_mock_test.go b/plugins/source/azure/resources/services/security/secure_scores_mock_test.go deleted file mode 100644 index 750ec24c0f68c6..00000000000000 --- a/plugins/source/azure/resources/services/security/secure_scores_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSecureScores(router *mux.Router) error { - var item armsecurity.SecureScoresClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/secureScores", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSecureScores(t *testing.T) { - client.MockTestHelper(t, SecureScores(), createSecureScores) -} diff --git a/plugins/source/azure/resources/services/security/settings.go b/plugins/source/azure/resources/services/security/settings.go deleted file mode 100644 index f5af6c71527828..00000000000000 --- a/plugins/source/azure/resources/services/security/settings.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Settings() *schema.Table { - return &schema.Table{ - Name: "azure_security_settings", - Resolver: fetchSettings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/settings/list?tabs=HTTP#settingslist", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_settings", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Setting{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewSettingsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/settings_mock_test.go b/plugins/source/azure/resources/services/security/settings_mock_test.go deleted file mode 100644 index 36511a74f5126f..00000000000000 --- a/plugins/source/azure/resources/services/security/settings_mock_test.go +++ /dev/null @@ -1,48 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSettings(router *mux.Router) error { - var d armsecurity.DataExportSettings - if err := faker.FakeObject(&d); err != nil { - return err - } - - item := armsecurity.SettingsClientListResponse{ - SettingsList: armsecurity.SettingsList{ - Value: []armsecurity.SettingClassification{ - &d, - }, - }, - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/settings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestSettings(t *testing.T) { - client.MockTestHelper(t, Settings(), createSettings) -} diff --git a/plugins/source/azure/resources/services/security/solutions.go b/plugins/source/azure/resources/services/security/solutions.go deleted file mode 100644 index dca71e8967fe5b..00000000000000 --- a/plugins/source/azure/resources/services/security/solutions.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Solutions() *schema.Table { - return &schema.Table{ - Name: "azure_security_solutions", - Resolver: fetchSolutions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity@v0.9.0#Solution", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_solutions", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Solution{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSolutions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewSolutionsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/solutions_mock_test.go b/plugins/source/azure/resources/services/security/solutions_mock_test.go deleted file mode 100644 index 0e621d51de549c..00000000000000 --- a/plugins/source/azure/resources/services/security/solutions_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSolutions(router *mux.Router) error { - var item armsecurity.SolutionsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/securitySolutions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSolutions(t *testing.T) { - client.MockTestHelper(t, Solutions(), createSolutions) -} diff --git a/plugins/source/azure/resources/services/security/sub_assessments.go b/plugins/source/azure/resources/services/security/sub_assessments.go deleted file mode 100644 index ab3a18c0d25581..00000000000000 --- a/plugins/source/azure/resources/services/security/sub_assessments.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func SubAssessments() *schema.Table { - return &schema.Table{ - Name: "azure_security_sub_assessments", - Resolver: fetchSubAssessments, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/sub-assessments/list-all?tabs=HTTP#securitysubassessment", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_sub_assessments", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.SubAssessment{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchSubAssessments(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewSubAssessmentsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListAllPager("/subscriptions/"+cl.SubscriptionId, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/sub_assessments_mock_test.go b/plugins/source/azure/resources/services/security/sub_assessments_mock_test.go deleted file mode 100644 index ddd7a44d06c85e..00000000000000 --- a/plugins/source/azure/resources/services/security/sub_assessments_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubAssessments(router *mux.Router) error { - var item armsecurity.SubAssessmentsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/subAssessments", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestSubAssessments(t *testing.T) { - client.MockTestHelper(t, SubAssessments(), createSubAssessments) -} diff --git a/plugins/source/azure/resources/services/security/tasks.go b/plugins/source/azure/resources/services/security/tasks.go deleted file mode 100644 index 49db2d98ec12d9..00000000000000 --- a/plugins/source/azure/resources/services/security/tasks.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Tasks() *schema.Table { - return &schema.Table{ - Name: "azure_security_tasks", - Resolver: fetchTasks, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/tasks/list?tabs=HTTP#securitytask", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_tasks", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.Task{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchTasks(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewTasksClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/tasks_mock_test.go b/plugins/source/azure/resources/services/security/tasks_mock_test.go deleted file mode 100644 index 63d746d8b44afd..00000000000000 --- a/plugins/source/azure/resources/services/security/tasks_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTasks(router *mux.Router) error { - var item armsecurity.TasksClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/tasks", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestTasks(t *testing.T) { - client.MockTestHelper(t, Tasks(), createTasks) -} diff --git a/plugins/source/azure/resources/services/security/topology.go b/plugins/source/azure/resources/services/security/topology.go deleted file mode 100644 index a4961f4ddeeb9e..00000000000000 --- a/plugins/source/azure/resources/services/security/topology.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Topology() *schema.Table { - return &schema.Table{ - Name: "azure_security_topology", - Resolver: fetchTopology, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/topology/list?tabs=HTTP#topologyresource", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_topology", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.TopologyResource{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionIDPK}, - } -} - -func fetchTopology(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewTopologyClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/topology_mock_test.go b/plugins/source/azure/resources/services/security/topology_mock_test.go deleted file mode 100644 index cf7802b7ef9a66..00000000000000 --- a/plugins/source/azure/resources/services/security/topology_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTopology(router *mux.Router) error { - var item armsecurity.TopologyClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/topologies", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestTopology(t *testing.T) { - client.MockTestHelper(t, Topology(), createTopology) -} diff --git a/plugins/source/azure/resources/services/security/workspace_settings.go b/plugins/source/azure/resources/services/security/workspace_settings.go deleted file mode 100644 index 5f4fe4518b8d33..00000000000000 --- a/plugins/source/azure/resources/services/security/workspace_settings.go +++ /dev/null @@ -1,39 +0,0 @@ -package security - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func WorkspaceSettings() *schema.Table { - return &schema.Table{ - Name: "azure_security_workspace_settings", - Resolver: fetchWorkspaceSettings, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/defenderforcloud/workspace-settings/list?tabs=HTTP#workspacesetting", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_security_workspace_settings", client.Namespacemicrosoft_security), - Transform: transformers.TransformWithStruct(&armsecurity.WorkspaceSetting{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWorkspaceSettings(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsecurity.NewWorkspaceSettingsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/security/workspace_settings_mock_test.go b/plugins/source/azure/resources/services/security/workspace_settings_mock_test.go deleted file mode 100644 index 2e639da3e377e0..00000000000000 --- a/plugins/source/azure/resources/services/security/workspace_settings_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package security - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWorkspaceSettings(router *mux.Router) error { - var item armsecurity.WorkspaceSettingsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Security/workspaceSettings", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestWorkspaceSettings(t *testing.T) { - client.MockTestHelper(t, WorkspaceSettings(), createWorkspaceSettings) -} diff --git a/plugins/source/azure/resources/services/servicebus/namespaces.go b/plugins/source/azure/resources/services/servicebus/namespaces.go deleted file mode 100644 index 7235ea2adac546..00000000000000 --- a/plugins/source/azure/resources/services/servicebus/namespaces.go +++ /dev/null @@ -1,40 +0,0 @@ -package servicebus - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Namespaces() *schema.Table { - return &schema.Table{ - Name: "azure_servicebus_namespaces", - Resolver: fetchNamespaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/servicebus/stable/namespaces/list?tabs=HTTP#sbnamespace", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_servicebus_namespaces", client.Namespacemicrosoft_servicebus), - Transform: transformers.TransformWithStruct(&armservicebus.SBNamespace{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{topics()}, - } -} - -func fetchNamespaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armservicebus.NewNamespacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/servicebus/namespaces_mock_test.go b/plugins/source/azure/resources/services/servicebus/namespaces_mock_test.go deleted file mode 100644 index 2444b04daa25f6..00000000000000 --- a/plugins/source/azure/resources/services/servicebus/namespaces_mock_test.go +++ /dev/null @@ -1,52 +0,0 @@ -package servicebus - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createNamespaces(router *mux.Router) error { - var item armservicebus.NamespacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - err := createTopics(router) - if err != nil { - return err - } - - err = createTopicAuthorizationRules(router) - if err != nil { - return err - } - - return createTopicRuleAccessKeys(router) -} - -func TestNamespaces(t *testing.T) { - client.MockTestHelper(t, Namespaces(), createNamespaces) -} diff --git a/plugins/source/azure/resources/services/servicebus/topic_authorization_rules.go b/plugins/source/azure/resources/services/servicebus/topic_authorization_rules.go deleted file mode 100644 index 4c7bde876be2dd..00000000000000 --- a/plugins/source/azure/resources/services/servicebus/topic_authorization_rules.go +++ /dev/null @@ -1,74 +0,0 @@ -package servicebus - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func topicAuthorizationRules() *schema.Table { - return &schema.Table{ - Name: "azure_servicebus_namespace_topic_authorization_rules", - Resolver: fetchTopicAuthorizationRules, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics%20%E2%80%93%20authorization%20rules/list-authorization-rules?tabs=HTTP#sbauthorizationrule", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_servicebus_namespaces", client.Namespacemicrosoft_servicebus), - Transform: transformers.TransformWithStruct(&armservicebus.SBAuthorizationRule{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{topicRuleAccessKeys()}, - } -} - -func fetchTopicAuthorizationRules(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - namespace := parent.Parent.Item.(*armservicebus.SBNamespace) - topic := parent.Item.(*armservicebus.SBTopic) - svc, err := armservicebus.NewTopicsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*namespace.ID) - if err != nil { - return err - } - pager := svc.NewListAuthorizationRulesPager(group, *namespace.Name, *topic.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} - -func createTopicAuthorizationRules(router *mux.Router) error { - var item armservicebus.TopicsClientListAuthorizationRulesResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/servicebus/topic_rules_access_keys.go b/plugins/source/azure/resources/services/servicebus/topic_rules_access_keys.go deleted file mode 100644 index ecdbead3a1f150..00000000000000 --- a/plugins/source/azure/resources/services/servicebus/topic_rules_access_keys.go +++ /dev/null @@ -1,77 +0,0 @@ -package servicebus - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" - "github.com/apache/arrow/go/v15/arrow" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func topicRuleAccessKeys() *schema.Table { - return &schema.Table{ - Name: "azure_servicebus_namespace_topic_rule_access_keys", - Resolver: fetchTopicRuleAccessKeys, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics%20%E2%80%93%20authorization%20rules/list-keys?tabs=HTTP#accesskeys", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_servicebus_namespaces", client.Namespacemicrosoft_servicebus), - Transform: transformers.TransformWithStruct(&armservicebus.AccessKeys{}, transformers.WithPrimaryKeys("KeyName")), - Columns: schema.ColumnList{ - client.SubscriptionID, - schema.Column{ - Name: "rule_id", - Type: arrow.BinaryTypes.String, - Resolver: schema.ParentColumnResolver("id"), - PrimaryKey: true, - }, - }, - } -} - -func fetchTopicRuleAccessKeys(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - namespace := parent.Parent.Parent.Item.(*armservicebus.SBNamespace) - topic := parent.Parent.Item.(*armservicebus.SBTopic) - rule := parent.Item.(*armservicebus.SBAuthorizationRule) - svc, err := armservicebus.NewTopicsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*rule.ID) - if err != nil { - return err - } - keys, err := svc.ListKeys(ctx, group, *namespace.Name, *topic.Name, *rule.Name, nil) - if err != nil { - return err - } - res <- keys.AccessKeys - return nil -} - -func createTopicRuleAccessKeys(router *mux.Router) error { - var item armservicebus.TopicsClientListKeysResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/servicebus/topics.go b/plugins/source/azure/resources/services/servicebus/topics.go deleted file mode 100644 index 29f5fbf35f797a..00000000000000 --- a/plugins/source/azure/resources/services/servicebus/topics.go +++ /dev/null @@ -1,73 +0,0 @@ -package servicebus - -import ( - "context" - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" - "github.com/gorilla/mux" -) - -func topics() *schema.Table { - return &schema.Table{ - Name: "azure_servicebus_namespace_topics", - Resolver: fetchTopics, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/servicebus/stable/topics/list-by-namespace?tabs=HTTP#sbtopic", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_servicebus_namespaces", client.Namespacemicrosoft_servicebus), - Transform: transformers.TransformWithStruct(&armservicebus.SBTopic{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - Relations: []*schema.Table{topicAuthorizationRules()}, - } -} - -func fetchTopics(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - namespace := parent.Item.(*armservicebus.SBNamespace) - svc, err := armservicebus.NewTopicsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - group, err := client.ParseResourceGroup(*namespace.ID) - if err != nil { - return err - } - pager := svc.NewListByNamespacePager(group, *namespace.Name, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} - -func createTopics(router *mux.Router) error { - var item armservicebus.TopicsClientListByNamespaceResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} diff --git a/plugins/source/azure/resources/services/streamanalytics/streaming_jobs.go b/plugins/source/azure/resources/services/streamanalytics/streaming_jobs.go deleted file mode 100644 index 52cd3e95152feb..00000000000000 --- a/plugins/source/azure/resources/services/streamanalytics/streaming_jobs.go +++ /dev/null @@ -1,39 +0,0 @@ -package streamanalytics - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func StreamingJobs() *schema.Table { - return &schema.Table{ - Name: "azure_streamanalytics_streaming_jobs", - Resolver: fetchStreamingJobs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/streamanalytics/2020-03-01/streaming-jobs/list?tabs=HTTP#streamingjob", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_streamanalytics_streaming_jobs", client.Namespacemicrosoft_streamanalytics), - Transform: transformers.TransformWithStruct(&armstreamanalytics.StreamingJob{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchStreamingJobs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armstreamanalytics.NewStreamingJobsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/streamanalytics/streaming_jobs_mock_test.go b/plugins/source/azure/resources/services/streamanalytics/streaming_jobs_mock_test.go deleted file mode 100644 index ab8f90870c4be5..00000000000000 --- a/plugins/source/azure/resources/services/streamanalytics/streaming_jobs_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package streamanalytics - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createStreamingJobs(router *mux.Router) error { - var item armstreamanalytics.StreamingJobsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/streamingjobs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestStreamingJobs(t *testing.T) { - client.MockTestHelper(t, StreamingJobs(), createStreamingJobs) -} diff --git a/plugins/source/azure/resources/services/subscription/locations.go b/plugins/source/azure/resources/services/subscription/locations.go deleted file mode 100644 index b20371954aa294..00000000000000 --- a/plugins/source/azure/resources/services/subscription/locations.go +++ /dev/null @@ -1,53 +0,0 @@ -package subscription - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/apache/arrow/go/v15/arrow" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func locations() *schema.Table { - return &schema.Table{ - Name: "azure_subscription_subscription_locations", - Resolver: fetchLocations, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/subscriptions/list-locations?tabs=HTTP#location", - Transform: transformers.TransformWithStruct(&armsubscriptions.Location{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{ - client.SubscriptionID, - { - Name: "latitude", - Type: arrow.BinaryTypes.String, - Resolver: schema.PathResolver("Metadata.Latitude"), - }, - { - Name: "longitude", - Type: arrow.BinaryTypes.String, - Resolver: schema.PathResolver("Metadata.Longitude"), - }, - }, - } -} - -func fetchLocations(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - p := parent.Item.(*armsubscriptions.Subscription) - cl := meta.(*client.Client) - - svc, err := armsubscriptions.NewClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListLocationsPager(*p.SubscriptionID, nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/subscription/locations_mock_test.go b/plugins/source/azure/resources/services/subscription/locations_mock_test.go deleted file mode 100644 index 7840090dd9e18f..00000000000000 --- a/plugins/source/azure/resources/services/subscription/locations_mock_test.go +++ /dev/null @@ -1,30 +0,0 @@ -package subscription - -import ( - "encoding/json" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createLocations(router *mux.Router) error { - var item armsubscriptions.ClientListLocationsResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/sub-id/locations", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} diff --git a/plugins/source/azure/resources/services/subscription/subscription_mock_test.go b/plugins/source/azure/resources/services/subscription/subscription_mock_test.go deleted file mode 100644 index feb992cf0ae4a6..00000000000000 --- a/plugins/source/azure/resources/services/subscription/subscription_mock_test.go +++ /dev/null @@ -1,44 +0,0 @@ -package subscription - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createSubscriptions(router *mux.Router) error { - var item armsubscriptions.ClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - item.Value[0].ID = to.Ptr("/subscriptions/sub-id") - item.Value[0].SubscriptionID = to.Ptr("sub-id") - - router.HandleFunc("/subscriptions", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return createLocations(router) -} - -func TestSubscriptions(t *testing.T) { - client.MockTestHelper(t, Subscriptions(), createSubscriptions) -} diff --git a/plugins/source/azure/resources/services/subscription/subscriptions.go b/plugins/source/azure/resources/services/subscription/subscriptions.go deleted file mode 100644 index 039ec72de0b796..00000000000000 --- a/plugins/source/azure/resources/services/subscription/subscriptions.go +++ /dev/null @@ -1,22 +0,0 @@ -package subscription - -import ( - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Subscriptions() *schema.Table { - return &schema.Table{ - Name: "azure_subscription_subscriptions", - Resolver: fetchSubscriptions, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/subscriptions/list?tabs=HTTP#subscription", - Transform: transformers.TransformWithStruct(&armsubscriptions.Subscription{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - Relations: []*schema.Table{ - locations(), - }, - } -} diff --git a/plugins/source/azure/resources/services/subscription/subscriptions_fetch.go b/plugins/source/azure/resources/services/subscription/subscriptions_fetch.go deleted file mode 100644 index ae78edf208ff13..00000000000000 --- a/plugins/source/azure/resources/services/subscription/subscriptions_fetch.go +++ /dev/null @@ -1,33 +0,0 @@ -package subscription - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" -) - -func fetchSubscriptions(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - // if we already fetched it then no need to run it again. - if len(cl.SubscriptionsObjects) != 0 { - res <- cl.SubscriptionsObjects - return nil - } - - svc, err := armsubscriptions.NewClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - - return nil -} diff --git a/plugins/source/azure/resources/services/subscription/tenants.go b/plugins/source/azure/resources/services/subscription/tenants.go deleted file mode 100644 index 9fa9338090b511..00000000000000 --- a/plugins/source/azure/resources/services/subscription/tenants.go +++ /dev/null @@ -1,38 +0,0 @@ -package subscription - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Tenants() *schema.Table { - return &schema.Table{ - Name: "azure_subscription_tenants", - Resolver: fetchTenants, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/resources/tenants/list?tabs=HTTP#tenantiddescription", - Transform: transformers.TransformWithStruct(&armsubscriptions.TenantIDDescription{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{}, - } -} - -func fetchTenants(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsubscriptions.NewTenantsClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/subscription/tenants_mock_test.go b/plugins/source/azure/resources/services/subscription/tenants_mock_test.go deleted file mode 100644 index 076a4252bbbe13..00000000000000 --- a/plugins/source/azure/resources/services/subscription/tenants_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package subscription - -import ( - "encoding/json" - "net/http" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTenants(router *mux.Router) error { - var item armsubscriptions.TenantsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/tenants", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - return nil -} - -func TestTenants(t *testing.T) { - client.MockTestHelper(t, Tenants(), createTenants) -} diff --git a/plugins/source/azure/resources/services/support/services.go b/plugins/source/azure/resources/services/support/services.go deleted file mode 100644 index 35866968654930..00000000000000 --- a/plugins/source/azure/resources/services/support/services.go +++ /dev/null @@ -1,37 +0,0 @@ -package support - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Services() *schema.Table { - return &schema.Table{ - Name: "azure_support_services", - Resolver: fetchServices, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/support/services/list?tabs=HTTP#service", - Transform: transformers.TransformWithStruct(&armsupport.Service{}, transformers.WithPrimaryKeys("ID")), - } -} - -func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsupport.NewServicesClient(cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/support/services_mock_test.go b/plugins/source/azure/resources/services/support/services_mock_test.go deleted file mode 100644 index ba27e7f0ca8c13..00000000000000 --- a/plugins/source/azure/resources/services/support/services_mock_test.go +++ /dev/null @@ -1,39 +0,0 @@ -package support - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServices(router *mux.Router) error { - var item armsupport.ServicesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/providers/Microsoft.Support/services", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServices(t *testing.T) { - client.MockTestHelper(t, Services(), createServices) -} diff --git a/plugins/source/azure/resources/services/support/tickets.go b/plugins/source/azure/resources/services/support/tickets.go deleted file mode 100644 index 62efb7582589b2..00000000000000 --- a/plugins/source/azure/resources/services/support/tickets.go +++ /dev/null @@ -1,39 +0,0 @@ -package support - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Tickets() *schema.Table { - return &schema.Table{ - Name: "azure_support_tickets", - Resolver: fetchTickets, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/support/support-tickets/list?tabs=HTTP#supportticketdetails", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_support_tickets", client.Namespacemicrosoft_support), - Transform: transformers.TransformWithStruct(&armsupport.TicketDetails{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchTickets(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsupport.NewTicketsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/support/tickets_mock_test.go b/plugins/source/azure/resources/services/support/tickets_mock_test.go deleted file mode 100644 index c2fc7b0922697d..00000000000000 --- a/plugins/source/azure/resources/services/support/tickets_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package support - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createTickets(router *mux.Router) error { - var item armsupport.TicketsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Support/supportTickets", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestTickets(t *testing.T) { - client.MockTestHelper(t, Tickets(), createTickets) -} diff --git a/plugins/source/azure/resources/services/synapse/private_link_hubs.go b/plugins/source/azure/resources/services/synapse/private_link_hubs.go deleted file mode 100644 index 88b28eaa2a69b4..00000000000000 --- a/plugins/source/azure/resources/services/synapse/private_link_hubs.go +++ /dev/null @@ -1,39 +0,0 @@ -package synapse - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func PrivateLinkHubs() *schema.Table { - return &schema.Table{ - Name: "azure_synapse_private_link_hubs", - Resolver: fetchPrivateLinkHubs, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/synapse/private-link-hubs/list?tabs=HTTP#privatelinkhub", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_synapse_private_link_hubs", client.Namespacemicrosoft_synapse), - Transform: transformers.TransformWithStruct(&armsynapse.PrivateLinkHub{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchPrivateLinkHubs(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsynapse.NewPrivateLinkHubsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/synapse/private_link_hubs_mock_test.go b/plugins/source/azure/resources/services/synapse/private_link_hubs_mock_test.go deleted file mode 100644 index 995b5ec65c4657..00000000000000 --- a/plugins/source/azure/resources/services/synapse/private_link_hubs_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package synapse - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createPrivateLinkHubs(router *mux.Router) error { - var item armsynapse.PrivateLinkHubsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/privateLinkHubs", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestPrivateLinkHubs(t *testing.T) { - client.MockTestHelper(t, PrivateLinkHubs(), createPrivateLinkHubs) -} diff --git a/plugins/source/azure/resources/services/synapse/workspaces.go b/plugins/source/azure/resources/services/synapse/workspaces.go deleted file mode 100644 index 250113cec596f2..00000000000000 --- a/plugins/source/azure/resources/services/synapse/workspaces.go +++ /dev/null @@ -1,39 +0,0 @@ -package synapse - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Workspaces() *schema.Table { - return &schema.Table{ - Name: "azure_synapse_workspaces", - Resolver: fetchWorkspaces, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/synapse/workspaces/list?tabs=HTTP#workspace", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_synapse_workspaces", client.Namespacemicrosoft_synapse), - Transform: transformers.TransformWithStruct(&armsynapse.Workspace{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchWorkspaces(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armsynapse.NewWorkspacesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/synapse/workspaces_mock_test.go b/plugins/source/azure/resources/services/synapse/workspaces_mock_test.go deleted file mode 100644 index 49e618edf407ab..00000000000000 --- a/plugins/source/azure/resources/services/synapse/workspaces_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package synapse - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createWorkspaces(router *mux.Router) error { - var item armsynapse.WorkspacesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/workspaces", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestWorkspaces(t *testing.T) { - client.MockTestHelper(t, Workspaces(), createWorkspaces) -} diff --git a/plugins/source/azure/resources/services/trafficmanager/profiles.go b/plugins/source/azure/resources/services/trafficmanager/profiles.go deleted file mode 100644 index 9a99f6ae2daf44..00000000000000 --- a/plugins/source/azure/resources/services/trafficmanager/profiles.go +++ /dev/null @@ -1,39 +0,0 @@ -package trafficmanager - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trafficmanager/armtrafficmanager" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Profiles() *schema.Table { - return &schema.Table{ - Name: "azure_trafficmanager_profiles", - Resolver: fetchProfiles, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/trafficmanager/profiles/list-by-subscription?tabs=HTTP#profile", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_trafficmanager_profiles", client.Namespacemicrosoft_network), - Transform: transformers.TransformWithStruct(&armtrafficmanager.Profile{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchProfiles(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armtrafficmanager.NewProfilesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListBySubscriptionPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/trafficmanager/profiles_mock_test.go b/plugins/source/azure/resources/services/trafficmanager/profiles_mock_test.go deleted file mode 100644 index 03e999e5743c98..00000000000000 --- a/plugins/source/azure/resources/services/trafficmanager/profiles_mock_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package trafficmanager - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trafficmanager/armtrafficmanager" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createProfiles(router *mux.Router) error { - var item armtrafficmanager.ProfilesClientListBySubscriptionResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles", - func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestProfiles(t *testing.T) { - client.MockTestHelper(t, Profiles(), createProfiles) -} diff --git a/plugins/source/azure/resources/services/windowsiot/services.go b/plugins/source/azure/resources/services/windowsiot/services.go deleted file mode 100644 index deca9f59549dca..00000000000000 --- a/plugins/source/azure/resources/services/windowsiot/services.go +++ /dev/null @@ -1,39 +0,0 @@ -package windowsiot - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindowsiot" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Services() *schema.Table { - return &schema.Table{ - Name: "azure_windowsiot_services", - Resolver: fetchServices, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindowsiot@v1.0.0#DeviceService", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_windowsiot_services", client.Namespacemicrosoft_windowsiot), - Transform: transformers.TransformWithStruct(&armwindowsiot.DeviceService{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchServices(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armwindowsiot.NewServicesClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/windowsiot/services_mock_test.go b/plugins/source/azure/resources/services/windowsiot/services_mock_test.go deleted file mode 100644 index 8d94a43fe9c7b1..00000000000000 --- a/plugins/source/azure/resources/services/windowsiot/services_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package windowsiot - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindowsiot" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createServices(router *mux.Router) error { - var item armwindowsiot.ServicesClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.WindowsIoT/deviceServices", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestServices(t *testing.T) { - client.MockTestHelper(t, Services(), createServices) -} diff --git a/plugins/source/azure/resources/services/workloads/monitors.go b/plugins/source/azure/resources/services/workloads/monitors.go deleted file mode 100644 index e80286c5150ad8..00000000000000 --- a/plugins/source/azure/resources/services/workloads/monitors.go +++ /dev/null @@ -1,39 +0,0 @@ -package workloads - -import ( - "context" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - "github.com/cloudquery/plugin-sdk/v4/schema" - "github.com/cloudquery/plugin-sdk/v4/transformers" -) - -func Monitors() *schema.Table { - return &schema.Table{ - Name: "azure_workloads_monitors", - Resolver: fetchMonitors, - PostResourceResolver: client.LowercaseIDResolver, - Description: "https://learn.microsoft.com/en-us/rest/api/workloads/sap-monitor/list?tabs=HTTP#monitor", - Multiplex: client.SubscriptionMultiplexRegisteredNamespace("azure_workloads_monitors", client.Namespacemicrosoft_workloads), - Transform: transformers.TransformWithStruct(&armworkloads.Monitor{}, transformers.WithPrimaryKeys("ID")), - Columns: schema.ColumnList{client.SubscriptionID}, - } -} - -func fetchMonitors(ctx context.Context, meta schema.ClientMeta, parent *schema.Resource, res chan<- any) error { - cl := meta.(*client.Client) - svc, err := armworkloads.NewMonitorsClient(cl.SubscriptionId, cl.Creds, cl.Options) - if err != nil { - return err - } - pager := svc.NewListPager(nil) - for pager.More() { - p, err := pager.NextPage(ctx) - if err != nil { - return err - } - res <- p.Value - } - return nil -} diff --git a/plugins/source/azure/resources/services/workloads/monitors_mock_test.go b/plugins/source/azure/resources/services/workloads/monitors_mock_test.go deleted file mode 100644 index ae9c384ef00ebe..00000000000000 --- a/plugins/source/azure/resources/services/workloads/monitors_mock_test.go +++ /dev/null @@ -1,42 +0,0 @@ -package workloads - -import ( - "encoding/json" - "net/http" - - "testing" - - "github.com/cloudquery/cloudquery/plugins/source/azure/client" - - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" - "github.com/cloudquery/plugin-sdk/v4/faker" - "github.com/gorilla/mux" -) - -func createMonitors(router *mux.Router) error { - var item armworkloads.MonitorsClientListResponse - if err := faker.FakeObject(&item); err != nil { - return err - } - - emptyStr := "" - item.NextLink = &emptyStr - - router.HandleFunc("/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/monitors", func(w http.ResponseWriter, r *http.Request) { - b, err := json.Marshal(&item) - if err != nil { - http.Error(w, "unable to marshal request: "+err.Error(), http.StatusBadRequest) - return - } - if _, err := w.Write(b); err != nil { - http.Error(w, "failed to write", http.StatusBadRequest) - return - } - }) - - return nil -} - -func TestMonitors(t *testing.T) { - client.MockTestHelper(t, Monitors(), createMonitors) -} diff --git a/plugins/source/cloudflare/go.mod b/plugins/source/cloudflare/go.mod index 12a744216f31ba..1db90020f6492c 100644 --- a/plugins/source/cloudflare/go.mod +++ b/plugins/source/cloudflare/go.mod @@ -6,7 +6,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudflare/cloudflare-go v0.84.0 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/golang/mock v1.6.0 github.com/rs/zerolog v1.31.0 github.com/thoas/go-funk v0.9.3 @@ -30,7 +30,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -52,7 +52,7 @@ require ( github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -69,8 +69,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -91,8 +91,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -122,7 +122,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/cloudflare/go.sum b/plugins/source/cloudflare/go.sum index d03f41eaa61ee8..36fee7159c4ade 100644 --- a/plugins/source/cloudflare/go.sum +++ b/plugins/source/cloudflare/go.sum @@ -53,12 +53,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -102,8 +102,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -122,8 +122,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -165,11 +165,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -249,10 +249,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -373,8 +373,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/datadog/go.mod b/plugins/source/datadog/go.mod index a58f777a2ba87c..b6eb2a33e9bf7a 100644 --- a/plugins/source/datadog/go.mod +++ b/plugins/source/datadog/go.mod @@ -6,7 +6,7 @@ require ( github.com/DataDog/datadog-api-client-go/v2 v2.17.0 github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/golang/mock v1.6.0 github.com/invopop/jsonschema v0.12.0 github.com/rs/zerolog v1.31.0 @@ -34,7 +34,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -55,7 +55,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -69,8 +69,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -90,8 +90,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -112,7 +112,7 @@ require ( golang.org/x/crypto v0.19.0 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.14.0 // indirect + golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect @@ -122,7 +122,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/datadog/go.sum b/plugins/source/datadog/go.sum index 98f8d38ec4c700..9435a05a92aa8f 100644 --- a/plugins/source/datadog/go.sum +++ b/plugins/source/datadog/go.sum @@ -55,12 +55,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -104,8 +104,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -124,8 +124,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -160,11 +160,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -244,10 +244,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -326,8 +326,8 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/oauth2 v0.14.0 h1:P0Vrf/2538nmC0H+pEQ3MNFRRnVR7RlqyVw+bvm26z0= -golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= +golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -384,8 +384,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/digitalocean/go.mod b/plugins/source/digitalocean/go.mod index b7c62bf068b6ef..d1573d4d66d800 100644 --- a/plugins/source/digitalocean/go.mod +++ b/plugins/source/digitalocean/go.mod @@ -5,12 +5,12 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/avast/retry-go/v4 v4.5.1 - github.com/aws/aws-sdk-go-v2 v1.25.2 - github.com/aws/aws-sdk-go-v2/config v1.27.4 - github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1 + github.com/aws/aws-sdk-go-v2 v1.25.3 + github.com/aws/aws-sdk-go-v2/config v1.27.7 + github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4 github.com/aws/smithy-go v1.20.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/digitalocean/godo v1.99.0 github.com/golang/mock v1.6.0 github.com/pkg/errors v0.9.1 @@ -29,19 +29,19 @@ require ( github.com/apache/arrow/go/v13 v13.0.0-20230731205701-112f94971882 // indirect github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 // indirect - github.com/aws/aws-sdk-go-v2/credentials v1.17.4 // indirect - github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 // indirect + github.com/aws/aws-sdk-go-v2/credentials v1.17.7 // indirect + github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 // indirect github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect - github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.2 // indirect + github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 // indirect - github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.2 // indirect - github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 // indirect - github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 // indirect - github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 // indirect + github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3 // indirect + github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 // indirect + github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 // indirect + github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 // indirect github.com/aymerick/douceur v0.2.0 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/buger/jsonparser v1.1.1 // indirect @@ -50,7 +50,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -72,7 +72,7 @@ require ( github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -87,8 +87,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -109,8 +109,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -132,7 +132,7 @@ require ( golang.org/x/crypto v0.19.0 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.14.0 // indirect + golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect @@ -142,7 +142,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/digitalocean/go.sum b/plugins/source/digitalocean/go.sum index 96ac2f43e2265f..a87abc1894cddf 100644 --- a/plugins/source/digitalocean/go.sum +++ b/plugins/source/digitalocean/go.sum @@ -25,40 +25,40 @@ github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7D github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= github.com/avast/retry-go/v4 v4.5.1 h1:AxIx0HGi4VZ3I02jr78j5lZ3M6x1E0Ivxa6b0pUUh7o= github.com/avast/retry-go/v4 v4.5.1/go.mod h1:/sipNsvNB3RRuT5iNcb6h73nw3IBmXJ/H3XrCQYSOpc= -github.com/aws/aws-sdk-go-v2 v1.25.2 h1:/uiG1avJRgLGiQM9X3qJM8+Qa6KRGK5rRPuXE0HUM+w= -github.com/aws/aws-sdk-go-v2 v1.25.2/go.mod h1:Evoc5AsmtveRt1komDwIsjHFyrP5tDuF1D1U+6z6pNo= +github.com/aws/aws-sdk-go-v2 v1.25.3 h1:xYiLpZTQs1mzvz5PaI6uR0Wh57ippuEthxS4iK5v0n0= +github.com/aws/aws-sdk-go-v2 v1.25.3/go.mod h1:35hUlJVYd+M++iLI3ALmVwMOyRYMmRqUXpTtRGW+K9I= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 h1:gTK2uhtAPtFcdRRJilZPx8uJLL2J85xK11nKtWL0wfU= github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1/go.mod h1:sxpLb+nZk7tIfCWChfd+h4QwHNUR57d8hA1cleTkjJo= -github.com/aws/aws-sdk-go-v2/config v1.27.4 h1:AhfWb5ZwimdsYTgP7Od8E9L1u4sKmDW2ZVeLcf2O42M= -github.com/aws/aws-sdk-go-v2/config v1.27.4/go.mod h1:zq2FFXK3A416kiukwpsd+rD4ny6JC7QSkp4QdN1Mp2g= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4 h1:h5Vztbd8qLppiPwX+y0Q6WiwMZgpd9keKe2EAENgAuI= -github.com/aws/aws-sdk-go-v2/credentials v1.17.4/go.mod h1:+30tpwrkOgvkJL1rUZuRLoxcJwtI/OkeBLYnHxJtVe0= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2 h1:AK0J8iYBFeUk2Ax7O8YpLtFsfhdOByh2QIkHmigpRYk= -github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.2/go.mod h1:iRlGzMix0SExQEviAyptRWRGdYNo3+ufW/lCzvKVTUc= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2 h1:bNo4LagzUKbjdxE0tIcR9pMzLR2U/Tgie1Hq1HQ3iH8= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.2/go.mod h1:wRQv0nN6v9wDXuWThpovGQjqF1HFdcgWjporw14lS8k= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2 h1:EtOU5jsPdIQNP+6Q2C5e3d65NKT1PeCiQk+9OdzO12Q= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.2/go.mod h1:tyF5sKccmDz0Bv4NrstEr+/9YkSPJHrcO7UsUKf7pWM= +github.com/aws/aws-sdk-go-v2/config v1.27.7 h1:JSfb5nOQF01iOgxFI5OIKWwDiEXWTyTgg1Mm1mHi0A4= +github.com/aws/aws-sdk-go-v2/config v1.27.7/go.mod h1:PH0/cNpoMO+B04qET699o5W92Ca79fVtbUnvMIZro4I= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7 h1:WJd+ubWKoBeRh7A5iNMnxEOs982SyVKOJD+K8HIezu4= +github.com/aws/aws-sdk-go-v2/credentials v1.17.7/go.mod h1:UQi7LMR0Vhvs+44w5ec8Q+VS+cd10cjwgHwiVkE0YGU= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3 h1:p+y7FvkK2dxS+FEwRIDHDe//ZX+jDhP8HHE50ppj4iI= +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.15.3/go.mod h1:/fYB+FZbDlwlAiynK9KDXlzZl3ANI9JkD0Uhz5FjNT4= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3 h1:ifbIbHZyGl1alsAhPIYsHOg5MuApgqOvVeI8wIugXfs= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.3/go.mod h1:oQZXg3c6SNeY6OZrDY+xHcF4VGIEoNotX2B4PrDeoJI= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3 h1:Qvodo9gHG9F3E8SfYOspPeBt0bjSbsevK8WhRAUHcoY= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.3/go.mod h1:vCKrdLXtybdf/uQd/YfVR2r5pcbNuEYKzMQpcxmeSJw= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.2 h1:en92G0Z7xlksoOylkUhuBSfJgijC7rHVLRdnIlHEs0E= -github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.2/go.mod h1:HgtQ/wN5G+8QSlK62lbOtNwQ3wTSByJ4wH2rCkPt+AE= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3 h1:mDnFOE2sVkyphMWtTH+stv0eW3k0OTx94K63xpxHty4= +github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3/go.mod h1:V8MuRVcCRt5h1S+Fwu8KbC7l/gBGo3yBAyUbJM2IJOk= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1 h1:EyBZibRTVAs6ECHZOw5/wlylS9OcTzwyjeQMudmREjE= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.1/go.mod h1:JKpmtYhhPs7D97NL/ltqz7yCkERFW5dOlHyVl66ZYF8= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.2 h1:zSdTXYLwuXDNPUS+V41i1SFDXG7V0ITp0D9UT9Cvl18= -github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.2/go.mod h1:v8m8k+qVy95nYi7d56uP1QImleIIY25BPiNJYzPBdFE= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2 h1:5ffmXjPtwRExp1zc7gENLgCPyHFbhEPwVTkTiH9niSk= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.2/go.mod h1:Ru7vg1iQ7cR4i7SZ/JTLYN9kaXtbL69UdgG0OQWQxW0= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.2 h1:1oY1AVEisRI4HNuFoLdRUB0hC63ylDAN6Me3MrfclEg= -github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.2/go.mod h1:KZ03VgvZwSjkT7fOetQ/wF3MZUvYFirlI1H5NklUNsY= -github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1 h1:juZ+uGargZOrQGNxkVHr9HHR/0N+Yu8uekQnV7EAVRs= -github.com/aws/aws-sdk-go-v2/service/s3 v1.51.1/go.mod h1:SoR0c7Jnq8Tpmt0KSLXIavhjmaagRqQpe9r70W3POJg= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1 h1:utEGkfdQ4L6YW/ietH7111ZYglLJvS+sLriHJ1NBJEQ= -github.com/aws/aws-sdk-go-v2/service/sso v1.20.1/go.mod h1:RsYqzYr2F2oPDdpy+PdhephuZxTfjHQe7SOBcZGoAU8= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1 h1:9/GylMS45hGGFCcMrUZDVayQE1jYSIN6da9jo7RAYIw= -github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.1/go.mod h1:YjAPFn4kGFqKC54VsHs5fn5B6d+PCY2tziEa3U/GB5Y= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1 h1:3I2cBEYgKhrWlwyZgfpSO2BpaMY1LHPqXYk/QGlu2ew= -github.com/aws/aws-sdk-go-v2/service/sts v1.28.1/go.mod h1:uQ7YYKZt3adCRrdCBREm1CD3efFLOUNH77MrUCvx5oA= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5 h1:mbWNpfRUTT6bnacmvOTKXZjR/HycibdWzNpfbrbLDIs= +github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5/go.mod h1:FCOPWGjsshkkICJIn9hq9xr6dLKtyaWpuUojiN3W1/8= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5 h1:K/NXvIftOlX+oGgWGIa3jDyYLDNsdVhsjHmsBH2GLAQ= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.5/go.mod h1:cl9HGLV66EnCmMNzq4sYOti+/xo8w34CsgzVtm2GgsY= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3 h1:4t+QEX7BsXz98W8W1lNvMAG+NX8qHz2CjLBxQKku40g= +github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3/go.mod h1:oFcjjUq5Hm09N9rpxTdeMeLeQcxS7mIkBkL8qUKng+A= +github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4 h1:lW5xUzOPGAMY7HPuNF4FdyBwRc3UJ/e8KsapbesVeNU= +github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4/go.mod h1:MGTaf3x/+z7ZGugCGvepnx2DS6+caCYYqKhzVoLNYPk= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2 h1:XOPfar83RIRPEzfihnp+U6udOveKZJvPQ76SKWrLRHc= +github.com/aws/aws-sdk-go-v2/service/sso v1.20.2/go.mod h1:Vv9Xyk1KMHXrR3vNQe8W5LMFdTjSeWk0gBZBzvf3Qa0= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2 h1:pi0Skl6mNl2w8qWZXcdOyg197Zsf4G97U7Sso9JXGZE= +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.2/go.mod h1:JYzLoEVeLXk+L4tn1+rrkfhkxl6mLDEVaDSvGq9og90= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4 h1:Ppup1nVNAOWbBOrcoOxaxPeEnSFB2RnnQdguhXpmeQk= +github.com/aws/aws-sdk-go-v2/service/sts v1.28.4/go.mod h1:+K1rNPVyGxkRuv9NNiaZ4YhBFuyw2MMA9SlIJ1Zlpz8= github.com/aws/smithy-go v1.20.1 h1:4SZlSlMr36UEqC7XOyRVb27XMeZubNcBNN+9IgEPIQw= github.com/aws/smithy-go v1.20.1/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= @@ -89,12 +89,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -140,8 +140,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -161,8 +161,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -197,11 +197,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -281,10 +281,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -363,8 +363,8 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/oauth2 v0.14.0 h1:P0Vrf/2538nmC0H+pEQ3MNFRRnVR7RlqyVw+bvm26z0= -golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= +golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -421,8 +421,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/firestore/CHANGELOG.md b/plugins/source/firestore/CHANGELOG.md index 07c29e3e48e8cd..c1d1daa0eb13f2 100644 --- a/plugins/source/firestore/CHANGELOG.md +++ b/plugins/source/firestore/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.1.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-firestore-v3.1.3...plugins-source-firestore-v3.1.4) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [3.1.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-firestore-v3.1.2...plugins-source-firestore-v3.1.3) (2024-03-05) diff --git a/plugins/source/firestore/go.mod b/plugins/source/firestore/go.mod index 0c227bc078e919..4e1de9de30dada 100644 --- a/plugins/source/firestore/go.mod +++ b/plugins/source/firestore/go.mod @@ -6,7 +6,7 @@ require ( cloud.google.com/go/firestore v1.14.0 github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/invopop/jsonschema v0.11.0 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 @@ -36,7 +36,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -76,8 +76,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -97,8 +97,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -134,7 +134,7 @@ require ( google.golang.org/genproto v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/firestore/go.sum b/plugins/source/firestore/go.sum index 2b67c57236efcf..a1eddcf0cd5392 100644 --- a/plugins/source/firestore/go.sum +++ b/plugins/source/firestore/go.sum @@ -65,15 +65,15 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101 h1:7To3pQ+pZo0i3dsWEbinPNFs5gPSBOsJtx3wTT94VBY= -github.com/cncf/xds/go v0.0.0-20231109132714-523115ebc101/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa h1:jQCWAUqqlij9Pgj2i/PB79y4KOPYVyFYdROxgaCwdTQ= +github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -85,8 +85,8 @@ github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymF github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.0.2 h1:QkIBuU5k+x7/QXPvPPnWXWlCdaBFApVqftFV6k087DA= -github.com/envoyproxy/protoc-gen-validate v1.0.2/go.mod h1:GpiZQP3dDbg4JouG/NNS7QWXpgx6x8QiMKdmN72jogE= +github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= +github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/fatih/structs v1.1.0 h1:Q7juDM0QtcnhCpeyLGQKyg4TOIghuNXrkL32pHAUMxo= @@ -126,8 +126,8 @@ github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -206,11 +206,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -291,10 +291,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -464,8 +464,8 @@ google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyac google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= diff --git a/plugins/source/github/CHANGELOG.md b/plugins/source/github/CHANGELOG.md index 69300aca175200..fa00dfd9c51e3b 100644 --- a/plugins/source/github/CHANGELOG.md +++ b/plugins/source/github/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [8.1.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-github-v8.1.1...plugins-source-github-v8.1.2) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [8.1.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-github-v8.1.0...plugins-source-github-v8.1.1) (2024-03-05) diff --git a/plugins/source/github/go.mod b/plugins/source/github/go.mod index 3a741cad12ba9c..f298569def13bc 100644 --- a/plugins/source/github/go.mod +++ b/plugins/source/github/go.mod @@ -6,7 +6,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/bradleyfalzon/ghinstallation/v2 v2.9.0 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/ghodss/yaml v1.0.0 github.com/gofri/go-github-ratelimit v1.0.3 github.com/golang/mock v1.6.0 @@ -34,7 +34,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -57,7 +57,7 @@ require ( github.com/google/flatbuffers v23.5.26+incompatible // indirect github.com/google/go-github/v57 v57.0.0 // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -71,8 +71,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -93,8 +93,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -124,7 +124,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/github/go.sum b/plugins/source/github/go.sum index a6d042a5415ee8..41e44caa2d6552 100644 --- a/plugins/source/github/go.sum +++ b/plugins/source/github/go.sum @@ -53,12 +53,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -106,8 +106,8 @@ github.com/gofri/go-github-ratelimit v1.0.3 h1:Ocs2jaYokZDzgvqaajX+g04dqFyVqL0JQ github.com/gofri/go-github-ratelimit v1.0.3/go.mod h1:OnCi5gV+hAG/LMR7llGhU7yHt44se9sYgKPnafoL7RY= github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -130,8 +130,8 @@ github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -166,11 +166,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -250,10 +250,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -374,8 +374,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/gitlab/CHANGELOG.md b/plugins/source/gitlab/CHANGELOG.md index e5c231e8d881a2..c346878235ee50 100644 --- a/plugins/source/gitlab/CHANGELOG.md +++ b/plugins/source/gitlab/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [4.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-gitlab-v4.2.2...plugins-source-gitlab-v4.2.3) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [4.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-gitlab-v4.2.1...plugins-source-gitlab-v4.2.2) (2024-03-05) diff --git a/plugins/source/gitlab/go.mod b/plugins/source/gitlab/go.mod index b2f0e4cb04c7fb..fcb56fc1e8ccf0 100644 --- a/plugins/source/gitlab/go.mod +++ b/plugins/source/gitlab/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/julienschmidt/httprouter v1.3.0 github.com/rs/zerolog v1.31.0 github.com/xanzy/go-gitlab v0.83.0 @@ -29,7 +29,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -51,7 +51,7 @@ require ( github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -69,8 +69,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -91,8 +91,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -115,7 +115,7 @@ require ( golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.14.0 // indirect + golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect @@ -125,7 +125,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/gitlab/go.sum b/plugins/source/gitlab/go.sum index ff3d29af279276..dd2ffac0aa6d9d 100644 --- a/plugins/source/gitlab/go.sum +++ b/plugins/source/gitlab/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -101,8 +101,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= @@ -120,8 +120,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -165,11 +165,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -254,10 +254,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -335,8 +335,8 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/oauth2 v0.14.0 h1:P0Vrf/2538nmC0H+pEQ3MNFRRnVR7RlqyVw+bvm26z0= -golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= +golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -395,8 +395,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/hackernews/CHANGELOG.md b/plugins/source/hackernews/CHANGELOG.md index 55dbd841386329..9e35d7a45e8c14 100644 --- a/plugins/source/hackernews/CHANGELOG.md +++ b/plugins/source/hackernews/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [3.0.25](https://github.com/cloudquery/cloudquery/compare/plugins-source-hackernews-v3.0.24...plugins-source-hackernews-v3.0.25) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) +* **deps:** Update module google.golang.org/grpc to v1.62.1 ([#17099](https://github.com/cloudquery/cloudquery/issues/17099)) ([4a3e667](https://github.com/cloudquery/cloudquery/commit/4a3e667c4352f7479b432a4164fe3df973313530)) + ## [3.0.24](https://github.com/cloudquery/cloudquery/compare/plugins-source-hackernews-v3.0.23...plugins-source-hackernews-v3.0.24) (2024-03-04) diff --git a/plugins/source/hackernews/go.mod b/plugins/source/hackernews/go.mod index b340c7ec0f0cfd..49ee00213aaade 100644 --- a/plugins/source/hackernews/go.mod +++ b/plugins/source/hackernews/go.mod @@ -4,13 +4,13 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/golang/mock v1.6.0 github.com/hermanschaaf/hackernews v1.0.1 github.com/rs/zerolog v1.31.0 github.com/thoas/go-funk v0.9.3 golang.org/x/sync v0.6.0 - google.golang.org/grpc v1.61.1 + google.golang.org/grpc v1.62.1 ) require ( @@ -31,7 +31,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -52,7 +52,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -67,8 +67,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -89,8 +89,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect diff --git a/plugins/source/hackernews/go.sum b/plugins/source/hackernews/go.sum index 6cb308397721e7..20845e6a0e676f 100644 --- a/plugins/source/hackernews/go.sum +++ b/plugins/source/hackernews/go.sum @@ -47,12 +47,12 @@ github.com/chenzhuoyu/iasm v0.9.1 h1:tUHQJXo3NhBqw6s33wkGn9SP3bvrWLdlVIJ3hQBL7P0 github.com/chenzhuoyu/iasm v0.9.1/go.mod h1:Xjy2NpN3h7aUqeqM+woSuuvxmIe6+DDsiNLIrkAmYog= github.com/cloudquery/cloudquery-api-go v1.7.5 h1:rd5OQx7qRQASEzU9c8Wopzau7GMVCGj2PylRxSqHd0s= github.com/cloudquery/cloudquery-api-go v1.7.5/go.mod h1:03fojQg0UpdgqXZ9tzZ5gF5CPad/F0sok66bsX6u4RA= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -96,8 +96,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -115,8 +115,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -155,11 +155,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -239,10 +239,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -363,8 +363,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk= +google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/hubspot/CHANGELOG.md b/plugins/source/hubspot/CHANGELOG.md index e8841f9babdc99..fb706a90e975d6 100644 --- a/plugins/source/hubspot/CHANGELOG.md +++ b/plugins/source/hubspot/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.1.4](https://github.com/cloudquery/cloudquery/compare/plugins-source-hubspot-v3.1.3...plugins-source-hubspot-v3.1.4) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [3.1.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-hubspot-v3.1.2...plugins-source-hubspot-v3.1.3) (2024-03-05) diff --git a/plugins/source/hubspot/go.mod b/plugins/source/hubspot/go.mod index 97e22f49c4ebcc..b415bad9636961 100644 --- a/plugins/source/hubspot/go.mod +++ b/plugins/source/hubspot/go.mod @@ -6,7 +6,7 @@ require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/clarkmcc/go-hubspot v0.0.0-20240203002710-abe38a19e3dd github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 @@ -31,7 +31,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -52,7 +52,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -67,8 +67,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -88,8 +88,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -111,7 +111,7 @@ require ( golang.org/x/crypto v0.19.0 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.14.0 // indirect + golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect @@ -120,7 +120,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/hubspot/go.sum b/plugins/source/hubspot/go.sum index 30ac7e08c53704..5b9923dc9967cc 100644 --- a/plugins/source/hubspot/go.sum +++ b/plugins/source/hubspot/go.sum @@ -53,12 +53,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -102,8 +102,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= @@ -120,8 +120,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -156,11 +156,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -240,10 +240,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -319,8 +319,8 @@ golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/oauth2 v0.14.0 h1:P0Vrf/2538nmC0H+pEQ3MNFRRnVR7RlqyVw+bvm26z0= -golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= +golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -374,8 +374,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/k8s/CHANGELOG.md b/plugins/source/k8s/CHANGELOG.md index fccdbfa19f7687..064fb2ea6aa8e5 100644 --- a/plugins/source/k8s/CHANGELOG.md +++ b/plugins/source/k8s/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [6.0.6](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.5...plugins-source-k8s-v6.0.6) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/apache/arrow/go/v15 to v15.0.1 ([#17101](https://github.com/cloudquery/cloudquery/issues/17101)) ([1a462f6](https://github.com/cloudquery/cloudquery/commit/1a462f6729beac8b40ef98220486fe2f79332ccb)) +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [6.0.5](https://github.com/cloudquery/cloudquery/compare/plugins-source-k8s-v6.0.4...plugins-source-k8s-v6.0.5) (2024-03-05) diff --git a/plugins/source/k8s/go.mod b/plugins/source/k8s/go.mod index e3ef982d957650..f4fd6a5245ab74 100644 --- a/plugins/source/k8s/go.mod +++ b/plugins/source/k8s/go.mod @@ -3,9 +3,9 @@ module github.com/cloudquery/cloudquery/plugins/source/k8s go 1.21.5 require ( - github.com/apache/arrow/go/v15 v15.0.0 + github.com/apache/arrow/go/v15 v15.0.1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/golang/mock v1.6.0 github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49 github.com/rs/zerolog v1.31.0 @@ -35,7 +35,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -62,7 +62,7 @@ require ( github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect github.com/google/gofuzz v1.2.0 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.0 // indirect @@ -78,8 +78,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -102,8 +102,8 @@ require ( github.com/spf13/cobra v1.8.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -136,7 +136,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/plugins/source/k8s/go.sum b/plugins/source/k8s/go.sum index b34044317594f3..defc17ad8a2af9 100644 --- a/plugins/source/k8s/go.sum +++ b/plugins/source/k8s/go.sum @@ -19,8 +19,8 @@ github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1 github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/apache/arrow/go/v13 v13.0.0 h1:kELrvDQuKZo8csdWYqBQfyi431x6Zs/YJTEgUuSVcWk= github.com/apache/arrow/go/v13 v13.0.0/go.mod h1:W69eByFNO0ZR30q1/7Sr9d83zcVZmF2MiP3fFYAWJOc= -github.com/apache/arrow/go/v15 v15.0.0 h1:1zZACWf85oEZY5/kd9dsQS7i+2G5zVQcbKTHgslqHNA= -github.com/apache/arrow/go/v15 v15.0.0/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= +github.com/apache/arrow/go/v15 v15.0.1 h1:mq61hYtKBel8wCYrOM4yY4YzJ05IA2qZUrevXe5IbZQ= +github.com/apache/arrow/go/v15 v15.0.1/go.mod h1:DGXsR3ajT524njufqf95822i+KTh+yea1jass9YXgjA= github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -137,8 +137,8 @@ github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y= github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -176,11 +176,11 @@ github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -267,10 +267,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -421,8 +421,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/k8s/test/policy_cq_config.yml b/plugins/source/k8s/test/policy_cq_config.yml index d3f1e9e04a728d..71a3c50ab01fcf 100644 --- a/plugins/source/k8s/test/policy_cq_config.yml +++ b/plugins/source/k8s/test/policy_cq_config.yml @@ -12,6 +12,6 @@ spec: name: postgresql path: cloudquery/postgresql registry: cloudquery - version: "v7.3.7" # latest version of postgresql plugin + version: "v7.4.0" # latest version of postgresql plugin spec: connection_string: ${CQ_DSN} \ No newline at end of file diff --git a/plugins/source/notion/CHANGELOG.md b/plugins/source/notion/CHANGELOG.md index 1b941f4b9e0099..4a6b4b915353f8 100644 --- a/plugins/source/notion/CHANGELOG.md +++ b/plugins/source/notion/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.1.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-notion-v1.1.2...plugins-source-notion-v1.1.3) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [1.1.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-notion-v1.1.1...plugins-source-notion-v1.1.2) (2024-03-05) diff --git a/plugins/source/notion/go.mod b/plugins/source/notion/go.mod index 21562b480cc1ab..15a966ce7c546e 100644 --- a/plugins/source/notion/go.mod +++ b/plugins/source/notion/go.mod @@ -4,7 +4,7 @@ go 1.21.5 require ( github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/rs/zerolog v1.31.0 ) @@ -27,7 +27,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -48,7 +48,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -63,8 +63,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -85,8 +85,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -117,7 +117,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/notion/go.sum b/plugins/source/notion/go.sum index 58525479cae039..185d6116954c22 100644 --- a/plugins/source/notion/go.sum +++ b/plugins/source/notion/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -117,8 +117,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -153,11 +153,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -237,10 +237,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -354,8 +354,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/okta/CHANGELOG.md b/plugins/source/okta/CHANGELOG.md index d506a687134e64..b8d93a1f8ee238 100644 --- a/plugins/source/okta/CHANGELOG.md +++ b/plugins/source/okta/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [4.1.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-okta-v4.1.2...plugins-source-okta-v4.1.3) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) +* **deps:** Update module github.com/go-jose/go-jose/v3 to v3.0.3 [SECURITY] ([#17091](https://github.com/cloudquery/cloudquery/issues/17091)) ([ab419ee](https://github.com/cloudquery/cloudquery/commit/ab419ee505530642882537ae7e951b81116f2aa4)) + ## [4.1.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-okta-v4.1.1...plugins-source-okta-v4.1.2) (2024-03-05) diff --git a/plugins/source/okta/go.mod b/plugins/source/okta/go.mod index e44a54bd316a4c..b22a22738a0eb7 100644 --- a/plugins/source/okta/go.mod +++ b/plugins/source/okta/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/gorilla/mux v1.8.0 github.com/invopop/jsonschema v0.12.0 github.com/okta/okta-sdk-golang/v4 v4.0.0 @@ -32,7 +32,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -43,7 +43,7 @@ require ( github.com/ghodss/yaml v1.0.0 // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/gin-gonic/gin v1.9.1 // indirect - github.com/go-jose/go-jose/v3 v3.0.1 // indirect + github.com/go-jose/go-jose/v3 v3.0.3 // indirect github.com/go-logr/logr v1.3.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-playground/locales v0.14.1 // indirect @@ -54,7 +54,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -69,8 +69,8 @@ require ( github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect github.com/kelseyhightower/envconfig v1.4.0 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -91,8 +91,8 @@ require ( github.com/sirupsen/logrus v1.9.3 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect @@ -114,7 +114,7 @@ require ( golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.14.0 // indirect + golang.org/x/oauth2 v0.16.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.17.0 // indirect golang.org/x/text v0.14.0 // indirect @@ -124,7 +124,7 @@ require ( google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/okta/go.sum b/plugins/source/okta/go.sum index 1ce97c4558df4a..cea6f862bf516d 100644 --- a/plugins/source/okta/go.sum +++ b/plugins/source/okta/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -82,8 +82,8 @@ github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg= github.com/gin-gonic/gin v1.9.1/go.mod h1:hPrL7YrpYKXt5YId3A/Tnip5kqbEAP+KLuI3SUcPTeU= github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= -github.com/go-jose/go-jose/v3 v3.0.1 h1:pWmKFVtt+Jl0vBZTIpz/eAKwsm6LkIxDVVbFHKkchhA= -github.com/go-jose/go-jose/v3 v3.0.1/go.mod h1:RNkWWRld676jZEYoV3+XK8L2ZnNSvIsxFMht0mSX+u8= +github.com/go-jose/go-jose/v3 v3.0.3 h1:fFKWeig/irsp7XD2zBxvnmA/XaRWp5V3CBsZXJF7G7k= +github.com/go-jose/go-jose/v3 v3.0.3/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= @@ -102,8 +102,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= @@ -114,15 +114,15 @@ github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 h1:k4Tw0nt6lwr github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47/go.mod h1:JDGcbDT52eL4fju3sZ4TeHGsQwhG9nbDV21aMyhwPoA= github.com/google/flatbuffers v23.5.26+incompatible h1:M9dgRyhJemaM4Sw8+66GHBu8ioaQmyPLg1b8VwK5WJg= github.com/google/flatbuffers v23.5.26+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= @@ -163,11 +163,11 @@ github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -244,7 +244,6 @@ github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpE github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= @@ -252,10 +251,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -313,7 +312,6 @@ golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUu golang.org/x/arch v0.6.0 h1:S0JTfE48HbRj80+4tbvZDYsJ3tGv6BUU3XxyZ7CirAc= golang.org/x/arch v0.6.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= @@ -322,6 +320,7 @@ golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUF golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= @@ -330,13 +329,16 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= -golang.org/x/oauth2 v0.14.0 h1:P0Vrf/2538nmC0H+pEQ3MNFRRnVR7RlqyVw+bvm26z0= -golang.org/x/oauth2 v0.14.0/go.mod h1:lAtNWgaWfL4cm7j2OV8TxGi9Qb7ECORx8DktCY74OwM= +golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= +golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -353,16 +355,22 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= @@ -371,6 +379,7 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.9/go.mod h1:nABZi5QlRsZVlzPpHl034qft6wpY4eDcsTt5AaioBiU= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -387,8 +396,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/oracle/go.mod b/plugins/source/oracle/go.mod index 5640c10825e29a..eff8164efd531c 100644 --- a/plugins/source/oracle/go.mod +++ b/plugins/source/oracle/go.mod @@ -5,7 +5,7 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/oracle/oci-go-sdk/v65 v65.28.3 github.com/rs/zerolog v1.31.0 github.com/stretchr/testify v1.8.4 @@ -30,7 +30,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -52,7 +52,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -67,8 +67,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -89,8 +89,8 @@ require ( github.com/sony/gobreaker v0.5.0 // indirect github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -120,7 +120,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/oracle/go.sum b/plugins/source/oracle/go.sum index 297814109371eb..3ae1df7c60d6b8 100644 --- a/plugins/source/oracle/go.sum +++ b/plugins/source/oracle/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -102,8 +102,8 @@ github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MG github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -119,8 +119,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -155,11 +155,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -245,10 +245,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -363,8 +363,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/pagerduty/CHANGELOG.md b/plugins/source/pagerduty/CHANGELOG.md index 2cf0df27521607..f5c3339ea8f199 100644 --- a/plugins/source/pagerduty/CHANGELOG.md +++ b/plugins/source/pagerduty/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.2.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-pagerduty-v3.2.2...plugins-source-pagerduty-v3.2.3) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [3.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-pagerduty-v3.2.1...plugins-source-pagerduty-v3.2.2) (2024-03-05) diff --git a/plugins/source/pagerduty/go.mod b/plugins/source/pagerduty/go.mod index a1a6616f99a78c..f3dba48d88d1c6 100644 --- a/plugins/source/pagerduty/go.mod +++ b/plugins/source/pagerduty/go.mod @@ -6,7 +6,7 @@ require ( github.com/PagerDuty/go-pagerduty v1.6.0 github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/rs/zerolog v1.31.0 golang.org/x/time v0.5.0 gopkg.in/yaml.v3 v3.0.1 @@ -30,7 +30,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -52,7 +52,7 @@ require ( github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect github.com/google/go-querystring v1.1.0 // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -67,8 +67,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -89,8 +89,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -120,7 +120,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/pagerduty/go.sum b/plugins/source/pagerduty/go.sum index 055cb4626245c0..bb4fac67ff9e1f 100644 --- a/plugins/source/pagerduty/go.sum +++ b/plugins/source/pagerduty/go.sum @@ -55,12 +55,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb h1:/l8fbvLOCNlgkHp8VUKTTL+Tk9gs5y/K3Yx/bRfReNk= github.com/cloudquery/jsonschema v0.0.0-20240202134451-d771afde32fb/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -105,8 +105,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -125,8 +125,8 @@ github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -163,11 +163,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -255,10 +255,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -375,8 +375,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/square/CHANGELOG.md b/plugins/source/square/CHANGELOG.md index 294bbb3a8f63cc..d7d15ad9083be5 100644 --- a/plugins/source/square/CHANGELOG.md +++ b/plugins/source/square/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-square-v1.2.1...plugins-source-square-v1.2.2) (2024-03-05) + + +### Bug Fixes + +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.15 ([#16991](https://github.com/cloudquery/cloudquery/issues/16991)) ([9cbfb42](https://github.com/cloudquery/cloudquery/commit/9cbfb4209797a74b812fa9547e81f84076f1dc68)) + ## [1.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-square-v1.2.0...plugins-source-square-v1.2.1) (2024-02-27) diff --git a/plugins/source/square/requirements.txt b/plugins/source/square/requirements.txt index b7aba0aba56427..4cd5d1e2127f1e 100644 --- a/plugins/source/square/requirements.txt +++ b/plugins/source/square/requirements.txt @@ -1,5 +1,5 @@ black==24.2.0 -cloudquery-plugin-sdk==0.1.15 +cloudquery-plugin-sdk==0.1.16 pyarrow==15.0.0 squareup==29.0.0.20230720 pytest==8.0.2 diff --git a/plugins/source/test/CHANGELOG.md b/plugins/source/test/CHANGELOG.md index ffecf8205029cf..e569cded1f1f4f 100644 --- a/plugins/source/test/CHANGELOG.md +++ b/plugins/source/test/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [4.2.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-test-v4.2.1...plugins-source-test-v4.2.2) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + +## [4.2.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-test-v4.2.0...plugins-source-test-v4.2.1) (2024-03-05) + + +### Bug Fixes + +* Fix test plugin init ([#17037](https://github.com/cloudquery/cloudquery/issues/17037)) ([12fdada](https://github.com/cloudquery/cloudquery/commit/12fdada03cc7e468e8743ff6f68af043f042d2ee)) + ## [4.2.0](https://github.com/cloudquery/cloudquery/compare/plugins-source-test-v4.1.0...plugins-source-test-v4.2.0) (2024-03-05) diff --git a/plugins/source/test/go.mod b/plugins/source/test/go.mod index 1692977750578d..c75e3ded21766c 100644 --- a/plugins/source/test/go.mod +++ b/plugins/source/test/go.mod @@ -5,8 +5,9 @@ go 1.21.5 require ( github.com/apache/arrow/go/v15 v15.0.0-20240114144300-7e703aae55c1 github.com/cloudquery/codegen v0.3.12 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/rs/zerolog v1.31.0 + golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 ) require ( @@ -27,7 +28,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/cloudquery/cloudquery-api-go v1.7.5 // indirect - github.com/cloudquery/plugin-pb-go v1.19.0 // indirect + github.com/cloudquery/plugin-pb-go v1.19.1 // indirect github.com/cloudquery/plugin-sdk/v2 v2.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deepmap/oapi-codegen v1.16.2 // indirect @@ -48,7 +49,7 @@ require ( github.com/golang/snappy v0.0.4 // indirect github.com/gomarkdown/markdown v0.0.0-20231222211730-1d6d20845b47 // indirect github.com/google/flatbuffers v23.5.26+incompatible // indirect - github.com/google/uuid v1.5.0 // indirect + github.com/google/uuid v1.6.0 // indirect github.com/gorilla/css v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.0.1 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect @@ -63,8 +64,8 @@ require ( github.com/kataras/pio v0.0.13 // indirect github.com/kataras/sitemap v0.0.6 // indirect github.com/kataras/tunnel v0.0.4 // indirect - github.com/klauspost/compress v1.17.5 // indirect - github.com/klauspost/cpuid/v2 v2.2.6 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/klauspost/cpuid/v2 v2.2.7 // indirect github.com/labstack/echo/v4 v4.11.4 // indirect github.com/labstack/gommon v0.4.2 // indirect github.com/leodido/go-urn v1.2.4 // indirect @@ -85,8 +86,8 @@ require ( github.com/spf13/cobra v1.6.1 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/stretchr/testify v1.8.4 // indirect - github.com/tdewolff/minify/v2 v2.20.16 // indirect - github.com/tdewolff/parse/v2 v2.7.11 // indirect + github.com/tdewolff/minify/v2 v2.20.18 // indirect + github.com/tdewolff/parse/v2 v2.7.12 // indirect github.com/thoas/go-funk v0.9.3 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect @@ -106,7 +107,6 @@ require ( go.opentelemetry.io/proto/otlp v1.0.0 // indirect golang.org/x/arch v0.6.0 // indirect golang.org/x/crypto v0.19.0 // indirect - golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/net v0.21.0 // indirect golang.org/x/sync v0.6.0 // indirect @@ -117,7 +117,7 @@ require ( golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 // indirect - google.golang.org/grpc v1.61.1 // indirect + google.golang.org/grpc v1.62.0 // indirect google.golang.org/protobuf v1.32.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/plugins/source/test/go.sum b/plugins/source/test/go.sum index 7bfa6799e9c7dd..990cb66e6045f4 100644 --- a/plugins/source/test/go.sum +++ b/plugins/source/test/go.sum @@ -51,12 +51,12 @@ github.com/cloudquery/codegen v0.3.12 h1:9BaYdwbMJU1HVT/BHI+ykhOhBGeXt8AjpvBiXN1 github.com/cloudquery/codegen v0.3.12/go.mod h1:utqjurr58U8uqcPJe0rZjh06i0Eq9uAPGOmyIjq/1w8= github.com/cloudquery/jsonschema v0.0.0-20240220112440-ae1722096d67 h1:ohoQ4S0wgrQGEW2yMV9sc77V0b6PaNuzHjv6GEDoYwQ= github.com/cloudquery/jsonschema v0.0.0-20240220112440-ae1722096d67/go.mod h1:0SoZ/U7yJlNOR+fWsBSeTvTbGXB6DK01tzJ7m2Xfg34= -github.com/cloudquery/plugin-pb-go v1.19.0 h1:QqdIoblmD+42Lv99cIJqkN34vvOWaX6j7So63UBu4yc= -github.com/cloudquery/plugin-pb-go v1.19.0/go.mod h1:YSEBZV1O043VqV1OQDtujdOqX9t5IjOwdXP94EersEU= +github.com/cloudquery/plugin-pb-go v1.19.1 h1:JmvVuHlTVC4AUMyGa6K0I2pwv56z7W+OaiJQGT3EjgM= +github.com/cloudquery/plugin-pb-go v1.19.1/go.mod h1:1bJ9XHgqibq4atoYwAu24dsxRTZsv94jEmJ1oHaMQYs= github.com/cloudquery/plugin-sdk/v2 v2.7.0 h1:hRXsdEiaOxJtsn/wZMFQC9/jPfU1MeMK3KF+gPGqm7U= github.com/cloudquery/plugin-sdk/v2 v2.7.0/go.mod h1:pAX6ojIW99b/Vg4CkhnsGkRIzNaVEceYMR+Bdit73ug= -github.com/cloudquery/plugin-sdk/v4 v4.32.0 h1:Y4aEJGhtJCW4uCg4uUAMrOSRoGgqhmPLk7L20oJTN8E= -github.com/cloudquery/plugin-sdk/v4 v4.32.0/go.mod h1:Dmc2C1rRJJ44Axe//FuiDDTfqORj3SJxqkNx6jM/suA= +github.com/cloudquery/plugin-sdk/v4 v4.32.1 h1:fTqzXNy79AZTl0Ng7+bX4I0G2DD0BzkdRTnoROBsgRw= +github.com/cloudquery/plugin-sdk/v4 v4.32.1/go.mod h1:BjBVpyjz50HuR8jeJi+roMoFGk3T/C01aci6QxVMM08= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -100,8 +100,8 @@ github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJA github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo= -github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= @@ -117,8 +117,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= -github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.1 h1:ntNaBIghp6JmvWnxbZKANoLyuXTPZ4cAMlo6RyhlbO8= github.com/gorilla/css v1.0.1/go.mod h1:BvnYkspnSzMmwRK+b8/xgNPLiIuNZr6vbZBTPQ2A3b0= github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= @@ -153,11 +153,11 @@ github.com/kataras/sitemap v0.0.6 h1:w71CRMMKYMJh6LR2wTgnk5hSgjVNB9KL60n5e2KHvLY github.com/kataras/sitemap v0.0.6/go.mod h1:dW4dOCNs896OR1HmG+dMLdT7JjDk7mYBzoIRwuj5jA4= github.com/kataras/tunnel v0.0.4 h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA= github.com/kataras/tunnel v0.0.4/go.mod h1:9FkU4LaeifdMWqZu7o20ojmW4B7hdhv2CMLwfnHGpYw= -github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= -github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= -github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= -github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= +github.com/klauspost/cpuid/v2 v2.2.7 h1:ZWSB3igEs+d0qvnxR/ZBzXVmxkgt8DdzP6m9pfuVLDM= +github.com/klauspost/cpuid/v2 v2.2.7/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= github.com/knz/go-libedit v1.10.1/go.mod h1:MZTVkCWyz0oBc7JOWP3wNAzd002ZbM/5hgShxwh4x8M= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= @@ -237,10 +237,10 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/tdewolff/minify/v2 v2.20.16 h1:/C8dtRkxLTIyUlKlBz46gDiktCrE8a6+c1gTrnPFz+U= -github.com/tdewolff/minify/v2 v2.20.16/go.mod h1:/FvxV9KaTrFu35J9I2FhRvWSBxcHj8sDSdwBFh5voxM= -github.com/tdewolff/parse/v2 v2.7.11 h1:v+W45LnzmjndVlfqPCT5gGjAAZKd1GJGOPJveTIkBY8= -github.com/tdewolff/parse/v2 v2.7.11/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= +github.com/tdewolff/minify/v2 v2.20.18 h1:y+s6OzlZwFqApgNXWNtaMuEMEPbHT72zrCyb9Az35Xo= +github.com/tdewolff/minify/v2 v2.20.18/go.mod h1:ulkFoeAVWMLEyjuDz1ZIWOA31g5aWOawCFRp9R/MudM= +github.com/tdewolff/parse/v2 v2.7.12 h1:tgavkHc2ZDEQVKy1oWxwIyh5bP4F5fEh/JmBwPP/3LQ= +github.com/tdewolff/parse/v2 v2.7.12/go.mod h1:3FbJWZp3XT9OWVN3Hmfp0p/a08v4h8J9W1aghka0soA= github.com/tdewolff/test v1.0.11-0.20231101010635-f1265d231d52/go.mod h1:6DAvZliBAAnD7rhVgwaM7DE5/d9NMOAJ09SqYqeK4QE= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739 h1:IkjBCtQOOjIn03u/dMQK9g+Iw9ewps4mCl1nB8Sscbo= github.com/tdewolff/test v1.0.11-0.20240106005702-7de5f7df4739/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8= @@ -354,8 +354,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641 h1: google.golang.org/genproto/googleapis/api v0.0.0-20240228224816-df926f6c8641/go.mod h1:wLupoVsUfYPgOMwjzhYFbaVklw/INms+dqTp0tc1fv8= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641 h1:DKU1r6Tj5s1vlU/moGhuGz7E3xRfwjdAfDzbsaQJtEY= google.golang.org/genproto/googleapis/rpc v0.0.0-20240228224816-df926f6c8641/go.mod h1:UCOku4NytXMJuLQE5VuqA5lX3PcHCBo8pxNyvkf4xBs= -google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY= -google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs= +google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk= +google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I= diff --git a/plugins/source/test/resources/plugin/client.go b/plugins/source/test/resources/plugin/client.go index f96ad639a26998..03cf05932cd263 100644 --- a/plugins/source/test/resources/plugin/client.go +++ b/plugins/source/test/resources/plugin/client.go @@ -82,6 +82,17 @@ func (*Client) Close(_ context.Context) error { } func Configure(_ context.Context, logger zerolog.Logger, spec []byte, opts plugin.NewClientOptions) (plugin.Client, error) { + if opts.NoConnection { + config := &client.Spec{} + config.SetDefaults() + + return &Client{ + logger: logger, + options: opts, + tables: getTables(*config), + }, nil + } + config := &client.Spec{} if err := json.Unmarshal(spec, config); err != nil { return nil, fmt.Errorf("failed to unmarshal spec: %w", err) @@ -91,14 +102,6 @@ func Configure(_ context.Context, logger zerolog.Logger, spec []byte, opts plugi return nil, fmt.Errorf("failed to validate spec: %w", err) } - if opts.NoConnection { - return &Client{ - logger: logger, - options: opts, - tables: getTables(*config), - }, nil - } - for _, env := range config.RequiredEnv { parts := strings.Split(env, "=") if len(parts) != 2 { diff --git a/plugins/source/typeform/CHANGELOG.md b/plugins/source/typeform/CHANGELOG.md index fddc2a5e6ac6d1..41ec51c28d09d6 100644 --- a/plugins/source/typeform/CHANGELOG.md +++ b/plugins/source/typeform/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [1.3.3](https://github.com/cloudquery/cloudquery/compare/plugins-source-typeform-v1.3.2...plugins-source-typeform-v1.3.3) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.16 ([#17105](https://github.com/cloudquery/cloudquery/issues/17105)) ([cb24442](https://github.com/cloudquery/cloudquery/commit/cb24442f1fa14bedd1a5cb119b16807b60eac750)) + +## [1.3.2](https://github.com/cloudquery/cloudquery/compare/plugins-source-typeform-v1.3.1...plugins-source-typeform-v1.3.2) (2024-03-05) + + +### Bug Fixes + +* **deps:** Update dependency cloudquery-plugin-sdk to v0.1.15 ([#16991](https://github.com/cloudquery/cloudquery/issues/16991)) ([9cbfb42](https://github.com/cloudquery/cloudquery/commit/9cbfb4209797a74b812fa9547e81f84076f1dc68)) + ## [1.3.1](https://github.com/cloudquery/cloudquery/compare/plugins-source-typeform-v1.3.0...plugins-source-typeform-v1.3.1) (2024-02-27) diff --git a/plugins/source/typeform/plugin/plugin.py b/plugins/source/typeform/plugin/plugin.py index c8e35b69bdf584..ddf7c6ba84efda 100644 --- a/plugins/source/typeform/plugin/plugin.py +++ b/plugins/source/typeform/plugin/plugin.py @@ -11,7 +11,7 @@ from plugin.client import Client, Spec PLUGIN_NAME = "typeform" -PLUGIN_VERSION = "1.3.1" # {x-release-please-version} +PLUGIN_VERSION = "1.3.3" # {x-release-please-version} class TypeformPlugin(plugin.Plugin): diff --git a/plugins/source/typeform/requirements.txt b/plugins/source/typeform/requirements.txt index 80eabbf8fd57db..506dc7f46bf9b0 100644 --- a/plugins/source/typeform/requirements.txt +++ b/plugins/source/typeform/requirements.txt @@ -1,4 +1,4 @@ -cloudquery-plugin-sdk==0.1.15 +cloudquery-plugin-sdk==0.1.16 pyarrow==15.0.0 requests==2.31.0 pytest==8.0.2 diff --git a/scaffold/CHANGELOG.md b/scaffold/CHANGELOG.md index 19b43a93d3f62c..6826db13b3c85f 100644 --- a/scaffold/CHANGELOG.md +++ b/scaffold/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.0.6](https://github.com/cloudquery/cloudquery/compare/scaffold-v3.0.5...scaffold-v3.0.6) (2024-03-12) + + +### Bug Fixes + +* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.32.1 ([#17044](https://github.com/cloudquery/cloudquery/issues/17044)) ([d3592e7](https://github.com/cloudquery/cloudquery/commit/d3592e7f3ae600655778eb508aeccfa4e5b74e8c)) + ## [3.0.5](https://github.com/cloudquery/cloudquery/compare/scaffold-v3.0.4...scaffold-v3.0.5) (2024-03-05) diff --git a/scaffold/cmd/templates/source/go.mod.tpl b/scaffold/cmd/templates/source/go.mod.tpl index 3a5586dc8d278e..73a12f97530b8c 100644 --- a/scaffold/cmd/templates/source/go.mod.tpl +++ b/scaffold/cmd/templates/source/go.mod.tpl @@ -5,7 +5,7 @@ go 1.21.4 require ( github.com/apache/arrow/go/v15 bcaeaa8c2d97 github.com/cloudquery/plugin-pb-go v1.19.2 - github.com/cloudquery/plugin-sdk/v4 v4.32.0 + github.com/cloudquery/plugin-sdk/v4 v4.32.1 github.com/rs/zerolog v1.29.0 ) diff --git a/website/pages/docs/advanced-topics/_meta.json b/website/pages/docs/advanced-topics/_meta.json index 7416c183aed735..8f57c7d44cbcc4 100644 --- a/website/pages/docs/advanced-topics/_meta.json +++ b/website/pages/docs/advanced-topics/_meta.json @@ -7,5 +7,6 @@ "running-cloudquery-in-parallel": "Running CloudQuery in Parallel", "security": "Security", "managing-incremental-tables": "Managing Incremental Tables", + "using-an-offline-license": "Using an Offline License", "arrow-string-representation": "Arrow String Representation" } diff --git a/website/pages/docs/advanced-topics/performance-tuning.mdx b/website/pages/docs/advanced-topics/performance-tuning.mdx index 17228a58cf4694..ae5503cd42513a 100644 --- a/website/pages/docs/advanced-topics/performance-tuning.mdx +++ b/website/pages/docs/advanced-topics/performance-tuning.mdx @@ -81,6 +81,40 @@ We might want table `A`, but not need table `B` or `C`. We have two options: The `concurrency` setting, available for all source plugins as part of the [source spec](/docs/reference/source-spec#concurrency), controls the approximate number of concurrent requests that will be made while performing a sync. Setting this to a low number will reduce the number of concurrent requests, reducing the memory used and making the sync less likely to hit rate limits. The trade-off is that syncs will take longer to complete. +## Adjust Batch Size + +Most destination plugins have batching related settings that can be adjusted to improve performance. Tuning these can improve performance, but it can also increase the memory usage of the sync process. Here are the batching related settings you will come across: + +- `batch_size`: The number of rows that are inserted into the destination at once. The default value for this setting is usually between 1000 to 10000 rows, depending on the destination plugin. + +- `batch_size_bytes`: Maximum size of items that may be grouped together to be written in a single write. This is useful for limiting the memory usage of the sync process. The default value for this varies between 4 MB to 100 MB, depending on the destination plugin. + +- `batch_timeout`: Maximum interval between batch writes. Even if data stops coming in, the batch will be written after this interval. The default value for this setting is usually between 10 seconds and 1 minute, depending on the destination plugin. + +Some destination plugins (such as file or S3 destinations) start a new object or file for every batch, and some simply buffer the data in memory to be written at once. + +:::callout{type="info"} +You should check the documentation for the destination plugin you are using to see what the default values are and consider how they can be adjusted to suit your use case. +::: + +Here's a conservative example for the PostgreSQL destination plugin that reduces the overall memory usage, but may also increase the time it takes to sync: + +```yaml +kind: destination +spec: + name: "postgresql" + path: "cloudquery/postgresql" + registry: "cloudquery" + version: "VERSION_DESTINATION_POSTGRESQL" + spec: + connection_string: "postgres://user:pass@localhost:5432/mydb?sslmode=disable" # replace with your connection string + batch_size: 10000 # 10000 rows, default + batch_size_bytes: 4194304 # 4 MB, dramatically tuned down from the 100 MB default + batch_timeout: "30s" # 30 seconds, tuned down from 60 seconds +``` + +With this configuration, the PostgreSQL destination plugin will write 10,000 rows at a time, or 4 MB of data at a time, or every 30 seconds, whichever comes first. + ## Use a Different Scheduler By default, CloudQuery syncs will fetch all tables in parallel, writing data to the destination(s) as they come in. However, the `concurrency` setting, mentioned above, places a limit on how many **table-clients** can be synced at a time. What "table-client" means depends on the source plugin and the table. In AWS, for example, a client is usually a combination of account and region. Get all the combinations of accounts and regions for all tables, and you have all the table-clients for a sync. For the GCP source plugin, clients generally map to projects. diff --git a/website/pages/docs/advanced-topics/using-an-offline-license.md b/website/pages/docs/advanced-topics/using-an-offline-license.md new file mode 100644 index 00000000000000..bcb06c3b90b84c --- /dev/null +++ b/website/pages/docs/advanced-topics/using-an-offline-license.md @@ -0,0 +1,69 @@ +--- +title: Using an Offline License +description: Short walkthrough on how to use an offline license with CloudQuery +--- + +# Offline Licensing + +If you're using CloudQuery in an environment that doesn't have internet access, you can use an offline license with CloudQuery. +This guide will walk you through the process of obtaining and using an offline license. + +## Obtaining an Offline License + +To obtain an offline license, you'll need to contact our sales team by filling out the form in our [pricing page](https://www.cloudquery.io/pricing). + +The license will be assigned to your organization and will be valid for a specific period of time. +If you need to use CloudQuery in a different organization or after the license has expired, you'll need to obtain a new license. + +## Offline License File + +Once you've obtained an offline license, you'll receive a file with a `.cqlicense` extension. Using this file you will be able to run [cloudquery sync](/docs/reference/cli/cloudquery_sync) and [cloudquery migrate](/docs/reference/cli/cloudquery_migrate) commands without a connection to the CloudQuery API. + +## Using the Offline License + +To use the offline license, you'll need to place the `.cqlicense` file (or files, as you may have more than one) into a common directory. Then, when running `migrate` or `sync` commands, include the `--license` flag with the path to the directory containing the license files, or directly point it to a single license file. + +For example: + +```bash +mv mycompany.cqlicense /path/to/license/directory/ +cloudquery sync --license /path/to/license/directory ./aws.yml ./pg.yml +``` + +or: + +```bash +mv mycompany.cqlicense ~ +cloudquery sync --license ~/mycompany.cqlicense ./aws.yml ./pg.yml +```` + +## Limitations of Using an Offline License + +The offline license may be used only for [sync](/docs/reference/cli/cloudquery_sync) and [migrate](/docs/reference/cli/cloudquery_migrate) commands. +If you are setting up a new environment, you will need to have the plugins downloaded into a `.cq` directory: automatic plugin downloads will **not** work with an offline license. +You will need to enable internet access and [login](/docs/reference/cli/cloudquery_login) (or, [generate](/docs/deployment/generate-api-key) and use an API key) and run `cloudquery plugin install` manually to install the plugins first. You may also just run a `sync` or `migrate` which will download the plugins, and then you can use the offline license for subsequent runs. + +## Inspecting the License File + +The license file is a JSON object and will contain a `license` field, which is base64 encoded data, and a `signature` field to ensure the authenticity of the file contents. +You can check the details of the license file using this command (requires the `jq` tool to decode JSON): + +```bash +cat mycompany.cqlicense | jq -r .license | base64 -d | jq . +``` + +The result will look like this: + +```json +{ + "licensed_to": "Your Company Name", + "plugins": [ + "cloudquery/*" + ], + "issued_at": "2024-03-06T12:00:00Z", + "valid_from": "2024-03-06T12:00:00Z", + "expires_at": "2024-09-06T12:00:00Z" +} +``` + +If you have any questions about the contents of the license file, please contact our support team. diff --git a/website/pages/docs/quickstart/_meta.json b/website/pages/docs/quickstart/_meta.json index ba637a0049c94d..f3c6438a075b5c 100644 --- a/website/pages/docs/quickstart/_meta.json +++ b/website/pages/docs/quickstart/_meta.json @@ -2,6 +2,7 @@ "macOS": "macOS", "linux": "Linux", "windows": "Windows", + "managed": "Managed Syncs", "index": { "display": "hidden" } diff --git a/website/pages/docs/quickstart/index.md b/website/pages/docs/quickstart/index.md index cd43c9bd944743..cb8f6a7e60c3d6 100644 --- a/website/pages/docs/quickstart/index.md +++ b/website/pages/docs/quickstart/index.md @@ -8,6 +8,7 @@ title: Quickstart Please see the following platform-specific guides: +- [Managed Syncs](/docs/quickstart/managed) - [Linux](/docs/quickstart/linux) - [MacOS](/docs/quickstart/macos) -- [Windows](/docs/quickstart/windows) \ No newline at end of file +- [Windows](/docs/quickstart/windows) diff --git a/website/pages/docs/quickstart/managed.mdx b/website/pages/docs/quickstart/managed.mdx new file mode 100644 index 00000000000000..08fd544a355cc2 --- /dev/null +++ b/website/pages/docs/quickstart/managed.mdx @@ -0,0 +1,110 @@ +--- +title: Quickstart - Managed Syncs +description: A quickstart guide for running managed syncs in CloudQuery Cloud +--- + +## What Are Managed Syncs + +:::callout{type="info"} +Managed Syncs is currently in beta. Not all functionality may be available. See the [limitations](#limitations-of-managed-syncs-compared-to-self-hosted) section below. +::: + +Managed syncs are a great way to get started with CloudQuery and syncing data from source to destination without the need to deploy your own infrastructure. You only need to select a source and destination plugin and CloudQuery will take care of the rest. + +With Managed Syncs, you can: + +- Sync data from any [CloudQuery official source](https://hub.cloudquery.io/plugins/source?authors=official) to any [CloudQuery official destination](https://hub.cloudquery.io/plugins/destination?authors=official). +- Schedule syncs to run at regular intervals. +- Monitor syncs and view logs in the CloudQuery Cloud dashboard. +- Use the CloudQuery Cloud API to manage the syncs and connect to your other data pipelines. + +## Prerequisites + +To run a sync, you will need to know where you want to store the data (a database or a data warehouse), and what sources you want CloduQuery to connect to and sync data from. + +If you don't have a database available, we recommend that you try a managed service such as [Neon](https://neon.tech/), [ClickHouse](https://clickhouse.com/), or [MongoDB Atlas](https://www.mongodb.com/atlas/database). All offer a free tier or a free trial sufficient for your initial experiments. + +## Creating Your First Sync + +First, head to [CloudQuery Cloud](https://cloud.cloudquery.io) and sign up for an account. After the sign up, you will be asked to specify team name. Team name is important if you later decide to create your own plugins. Please note that the team name cannot be changed later. + +After you have signed up and created a team, you can create your first sync from the Syncs tab. + +[![Create Sync](/images/docs/quickstart/empty-syncs.png)](/images/docs/quickstart/empty-syncs.png) + +Clicking the button will start a wizard that will walk you through the whole process. + +### Configure a Destination + +First, you need to configure where the data will be stored. Choose a CloudQuery plugin from the list of available destinations. PostgreSQL is a good choice for most use cases and is usually the easiest to get started with. + +[![Configure Destination](/images/docs/quickstart/destination.png)](/images/docs/quickstart/destination.png) + +In the screenshot above, you see different configuration options for the PostgreSQL destination plugin. You can select a version and provide the detailed configuration in the YML format for the plugin. The YML format and the specification is the same as the one you would use in the self-hosted syncs and you can learn about the details and all the different options in the individual plugin documentation. + +For a sync to a cloud-based PostgreSQL database, you will only need to provide a connection string. The YML configuration for the destination plugin references the connection string using an [environment variable](/docs/advanced-topics/environment-variable-substitution): + +```yaml +connection_string: "${POSTGRESQL_CONNECTION_STRING}" +``` + +To provide the value for the environment variable, set it in the secrets section below: + +[![Configure Destination](/images/docs/quickstart/secrets.png)](/images/docs/quickstart/secrets.png) + +:::callout{type="warning"} +Using the secrets section is the recommended way to provide sensitive information such as connection strings. Do not hardcode sensitive information in the YML configuration as the configuration is stored in plaintext in the CloudQuery Cloud database and may be exposed in logs. +::: + +Click **Continue** to proceed to the next step. + +### Configure a Source + +Next, configure how CloudQuery should connect to the source of your data. Select a source plugin from the dropdown. + +[![Select a source](/images/docs/quickstart/source-1.png)](/images/docs/quickstart/source-1.png) + +Once you select your source plugin, its example YML configuration will load: + +[![Source Configuration](/images/docs/quickstart/source-2.png)](/images/docs/quickstart/source-2.png) + +Again, see the plugin documentation for details on the configuration options. + +For most sources, you will need to provide an API key, access token, or a connection string. You can provide these in the secrets section as you did for the destination plugin. + +Click **Continue** to proceed to the next step. + +### Configure Sync Options and Schedule + +On the last page, you can configure the sync name, schedule, and allocated resources. + +#### Schedule + +You can configure the syncs to run Daily, Weekly, Monthly, or at a custom schedule using the cron syntax. + +If you configure syncs to run Daily, they will run at midnight every day. Weekly syncs will run at midnight on Mondays, and monthly syncs will run at midnight on the first day of each month (all in UTC timezone). + +#### Allocated Resources + +You can choose to allocate vCPU and vRAM resources. Some plugins may need more vRAM or vCPU to run efficiently. The default values are usually sufficient for most use cases. + +#### Run the Sync + +After you have configured the sync options, you can either save the sync and run it immediately, or you can schedule it. If you run it immediately, the next execution will happen at the specified schedule. + +When the sync is running, you can observe the execution as it happens in the Sync Run Details view. The data is being streamed to your database during this process. + +[![Running Sync](/images/docs/quickstart/running.png)](/images/docs/quickstart/running.png) + +Errors and warnings are displayed in the logs section. Only errors that prevent the full sync are considered as breaking. This means that a sync is considered successful even if it has some errors or warnings due to the fact that some tables may not be accessible. + +## API Access + +Managed syncs can be controlled using API. To use the API, you will need to [generate an API key](/docs/deployment/generate-api-key). For the list of available endpoints, see our [API Reference](https://api-docs.cloudquery.io/#tag/syncs). + +## Limitations of Managed Syncs Compared to Self-hosted + +- Backend Options are not available. This is a limitation during beta phase and will be removed before the general availability. +- Docker-based plugins cannot be used with Managed Syncs. This is a limitation during beta phase and will be removed before the general availability. +- Not all authentication mechanisms that work on self-hosted syncs work with Managed Syncs. We are continuously adding support for more authentication mechanisms. +- Community and custom plugins cannot be used with Managed Syncs. This is by design and will not be removed in the near future. \ No newline at end of file diff --git a/website/pages/how-to-guides/attack-surface-management-with-graph.mdx b/website/pages/how-to-guides/attack-surface-management-with-graph.mdx index 9dfa5d13f889dd..d4f3eb7dee1346 100644 --- a/website/pages/how-to-guides/attack-surface-management-with-graph.mdx +++ b/website/pages/how-to-guides/attack-surface-management-with-graph.mdx @@ -29,7 +29,9 @@ Refer to Neo4j's installation documentation (https://neo4j.com/docs/operations-m ### Step 1: Install or Deploy CloudQuery -To get started with CloudQuery, check out our [quickstart guide](/docs/quickstart) and [AWS source plugin](https://hub.cloudquery.io/plugins/source/cloudquery/aws) for how to configure CloudQuery and run it locally on your machine. +You can get started with CloudQuery without any installation or deployment using our [Managed Syncs](/docs/quickstart/managed). + +To use CloudQuery locally, check out our [quickstart guide](/docs/quickstart) and [AWS source plugin](https://hub.cloudquery.io/plugins/source/cloudquery/aws) for how to configure CloudQuery. ### Step 2: Sync Data from CloudQuery to Neo4j diff --git a/website/pages/how-to-guides/open-source-cspm.mdx b/website/pages/how-to-guides/open-source-cspm.mdx index d13079061f7fbf..2a056df9f6d439 100644 --- a/website/pages/how-to-guides/open-source-cspm.mdx +++ b/website/pages/how-to-guides/open-source-cspm.mdx @@ -30,9 +30,11 @@ CSPMs are probably the biggest offenders of yet-another-dashboard syndrome, and ### Step 1: Install or deploy CloudQuery -If it’s your first time using CloudQuery we suggest you first run it locally to get familiar with the tool. Take a look at our [quick start guide](/docs/quickstart). +You can get started with CloudQuery without any installation or deployment using our [Managed Syncs](/docs/quickstart/managed). -If you are already familiar with CloudQuery, take a look at how to deploy it with [Kubernetes](/docs/deployment/kubernetes), on [AWS ECS using Fargate](/docs/deployment/ecs) or with [Google Cloud Run](/docs/deployment/cloud-run). For more deployment guides, see our [Deployment Overview](/docs/deployment/overview). +If you prefer to run it locally to get familiar with the tool, take a look at our [quick start guide](/docs/quickstart). + +If you are already familiar with CloudQuery, take a look at how run a , deploy it with [Kubernetes](/docs/deployment/kubernetes), on [AWS ECS using Fargate](/docs/deployment/ecs) or with [Google Cloud Run](/docs/deployment/cloud-run). For more deployment guides, see our [Deployment Overview](/docs/deployment/overview). ### Step 2: Install Grafana diff --git a/website/public/images/docs/quickstart/destination.png b/website/public/images/docs/quickstart/destination.png new file mode 100644 index 00000000000000..563db1f6dfefa1 Binary files /dev/null and b/website/public/images/docs/quickstart/destination.png differ diff --git a/website/public/images/docs/quickstart/empty-syncs.png b/website/public/images/docs/quickstart/empty-syncs.png new file mode 100644 index 00000000000000..7975ba77436e47 Binary files /dev/null and b/website/public/images/docs/quickstart/empty-syncs.png differ diff --git a/website/public/images/docs/quickstart/running.png b/website/public/images/docs/quickstart/running.png new file mode 100644 index 00000000000000..28e849bc747ffa Binary files /dev/null and b/website/public/images/docs/quickstart/running.png differ diff --git a/website/public/images/docs/quickstart/secrets.png b/website/public/images/docs/quickstart/secrets.png new file mode 100644 index 00000000000000..85ae018f436c22 Binary files /dev/null and b/website/public/images/docs/quickstart/secrets.png differ diff --git a/website/public/images/docs/quickstart/source-1.png b/website/public/images/docs/quickstart/source-1.png new file mode 100644 index 00000000000000..49d1235a8eee53 Binary files /dev/null and b/website/public/images/docs/quickstart/source-1.png differ diff --git a/website/public/images/docs/quickstart/source-2.png b/website/public/images/docs/quickstart/source-2.png new file mode 100644 index 00000000000000..d1b121615deaf8 Binary files /dev/null and b/website/public/images/docs/quickstart/source-2.png differ diff --git a/website/versions/cli.json b/website/versions/cli.json index 0e1f94d078f2b3..45aab207ba72c1 100644 --- a/website/versions/cli.json +++ b/website/versions/cli.json @@ -1 +1 @@ -{ "latest": "cli-v5.8.2" } +{ "latest": "cli-v5.8.3" } diff --git a/website/versions/scaffold.json b/website/versions/scaffold.json index a870a3ceeb20c3..cef8f0b784a447 100644 --- a/website/versions/scaffold.json +++ b/website/versions/scaffold.json @@ -1 +1 @@ -{ "latest": "scaffold-v3.0.5" } +{ "latest": "scaffold-v3.0.6" }