Skip to content

feat(resources): Add support for GCP organization and project tags#14638

Merged
kodiakhq[bot] merged 6 commits intocloudquery:mainfrom
DougEverly:feat/gcp_tag_resources
Oct 19, 2023
Merged

feat(resources): Add support for GCP organization and project tags#14638
kodiakhq[bot] merged 6 commits intocloudquery:mainfrom
DougEverly:feat/gcp_tag_resources

Conversation

@DougEverly
Copy link
Copy Markdown
Contributor

Sync GCP Organization and Project Tags

  • Sync tagKeys and tagValues for organizations
  • Sync tagKeys, tagValues, and tagBindings for projects.

@cq-bot
Copy link
Copy Markdown
Contributor

cq-bot commented Oct 17, 2023

This PR has the following changes to source plugin(s) tables:

  • Table gcp_resourcemanager_organization_tag_keys was added
  • Table gcp_resourcemanager_organization_tag_values was added
  • Table gcp_resourcemanager_project_tag_bindings was added
  • Table gcp_resourcemanager_project_tag_keys was added
  • Table gcp_resourcemanager_project_tag_values was added

@DougEverly DougEverly changed the title feat(gcp): add support for organization and project tags feat(resources): add support for GCP organization and project tags Oct 17, 2023
@erezrokah erezrokah changed the title feat(resources): add support for GCP organization and project tags feat(resources): Add support for GCP organization and project tags Oct 18, 2023
@erezrokah erezrokah requested review from erezrokah and removed request for disq and yevgenypats October 18, 2023 06:33
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* Use gcp_resourcemanager_organization_ and gcp_resourcemanager_project_ prefixes for consistency.
* Added mock tests.
* Consolidated table, fetch, and mock code.
Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @DougEverly, thanks for adding the tests and following up on my comments. I pushed a small commit to remove a Printf and fix a typo

@erezrokah erezrokah added priority merge automerge Automatically merge once required checks pass labels Oct 19, 2023
@kodiakhq kodiakhq bot merged commit 8fa403f into cloudquery:main Oct 19, 2023
kodiakhq bot pushed a commit that referenced this pull request Oct 19, 2023
🤖 I have created a release *beep* *boop*
---


## [9.8.0](plugins-source-gcp-v9.7.0...plugins-source-gcp-v9.8.0) (2023-10-19)


### This Release has the Following Changes to Tables
- Table `gcp_resourcemanager_organization_tag_keys` was added
- Table `gcp_resourcemanager_organization_tag_values` was added
- Table `gcp_resourcemanager_project_tag_bindings` was added
- Table `gcp_resourcemanager_project_tag_keys` was added
- Table `gcp_resourcemanager_project_tag_values` was added

### Features

* Move gcp to dbt (only 1 section) ([#14458](#14458)) ([46c28e7](46c28e7))
* **resources:** Add support for GCP organization and project tags ([#14638](#14638)) ([8fa403f](8fa403f))


### Bug Fixes

* Add descriptions to spec JSON schema  ([#14671](#14671)) ([30090e8](30090e8))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to d401686 ([#14459](#14459)) ([7ce40f8](7ce40f8))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to dbcb149 ([#14537](#14537)) ([68686f4](68686f4))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.6 ([#14475](#14475)) ([83fe7ca](83fe7ca))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.8 ([#14503](#14503)) ([4056593](4056593))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.9 ([#14627](#14627)) ([c1d244c](c1d244c))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.3.0 ([#14635](#14635)) ([00b380c](00b380c))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.4.0 ([#14639](#14639)) ([f139c0e](f139c0e))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.6 ([#14466](#14466)) ([32b5a90](32b5a90))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.8 ([#14532](#14532)) ([1ecef25](1ecef25))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.9 ([#14660](#14660)) ([68ab0bb](68ab0bb))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.2 ([#14378](#14378)) ([a2e0c46](a2e0c46))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.3 ([#14436](#14436)) ([d529e2d](d529e2d))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.4 ([#14489](#14489)) ([9bb45dc](9bb45dc))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.5 ([#14516](#14516)) ([2d905bf](2d905bf))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.14.0 ([#14577](#14577)) ([223c4c1](223c4c1))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.0 ([#14622](#14622)) ([b497a6b](b497a6b))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.2 ([#14662](#14662)) ([e274fe4](e274fe4))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.3 ([#14679](#14679)) ([0513c19](0513c19))
* **deps:** Update module golang.org/x/net to v0.17.0 [SECURITY] ([#14500](#14500)) ([9e603d5](9e603d5))
* Proper validation for `project_filter` mutually exclusive with `folder_ids` ([#14448](#14448)) ([4cb898e](4cb898e))
* Set plugin metadata ([#14715](#14715)) ([39935e2](39935e2))
* Update plugin-SDK to v4.16.0 ([#14702](#14702)) ([0dcb545](0dcb545))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@DougEverly DougEverly deleted the feat/gcp_tag_resources branch October 19, 2023 15:18
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
…loudquery#14638)



#### Sync GCP Organization and Project Tags

* Sync tagKeys and tagValues for organizations
* Sync tagKeys, tagValues, and tagBindings for projects.

<!--
hydratim pushed a commit to hydratim/cloudquery that referenced this pull request Oct 20, 2023
🤖 I have created a release *beep* *boop*
---


## [9.8.0](cloudquery/cloudquery@plugins-source-gcp-v9.7.0...plugins-source-gcp-v9.8.0) (2023-10-19)


### This Release has the Following Changes to Tables
- Table `gcp_resourcemanager_organization_tag_keys` was added
- Table `gcp_resourcemanager_organization_tag_values` was added
- Table `gcp_resourcemanager_project_tag_bindings` was added
- Table `gcp_resourcemanager_project_tag_keys` was added
- Table `gcp_resourcemanager_project_tag_values` was added

### Features

* Move gcp to dbt (only 1 section) ([cloudquery#14458](cloudquery#14458)) ([46c28e7](cloudquery@46c28e7))
* **resources:** Add support for GCP organization and project tags ([cloudquery#14638](cloudquery#14638)) ([8fa403f](cloudquery@8fa403f))


### Bug Fixes

* Add descriptions to spec JSON schema  ([cloudquery#14671](cloudquery#14671)) ([30090e8](cloudquery@30090e8))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to d401686 ([cloudquery#14459](cloudquery#14459)) ([7ce40f8](cloudquery@7ce40f8))
* **deps:** Update github.com/cloudquery/arrow/go/v14 digest to dbcb149 ([cloudquery#14537](cloudquery#14537)) ([68686f4](cloudquery@68686f4))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.6 ([cloudquery#14475](cloudquery#14475)) ([83fe7ca](cloudquery@83fe7ca))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.8 ([cloudquery#14503](cloudquery#14503)) ([4056593](cloudquery@4056593))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.2.9 ([cloudquery#14627](cloudquery#14627)) ([c1d244c](cloudquery@c1d244c))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.3.0 ([cloudquery#14635](cloudquery#14635)) ([00b380c](cloudquery@00b380c))
* **deps:** Update module github.com/cloudquery/cloudquery-api-go to v1.4.0 ([cloudquery#14639](cloudquery#14639)) ([f139c0e](cloudquery@f139c0e))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.6 ([cloudquery#14466](cloudquery#14466)) ([32b5a90](cloudquery@32b5a90))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.8 ([cloudquery#14532](cloudquery#14532)) ([1ecef25](cloudquery@1ecef25))
* **deps:** Update module github.com/cloudquery/codegen to v0.3.9 ([cloudquery#14660](cloudquery#14660)) ([68ab0bb](cloudquery@68ab0bb))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.2 ([cloudquery#14378](cloudquery#14378)) ([a2e0c46](cloudquery@a2e0c46))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.3 ([cloudquery#14436](cloudquery#14436)) ([d529e2d](cloudquery@d529e2d))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.4 ([cloudquery#14489](cloudquery#14489)) ([9bb45dc](cloudquery@9bb45dc))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.12.5 ([cloudquery#14516](cloudquery#14516)) ([2d905bf](cloudquery@2d905bf))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.14.0 ([cloudquery#14577](cloudquery#14577)) ([223c4c1](cloudquery@223c4c1))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.0 ([cloudquery#14622](cloudquery#14622)) ([b497a6b](cloudquery@b497a6b))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.2 ([cloudquery#14662](cloudquery#14662)) ([e274fe4](cloudquery@e274fe4))
* **deps:** Update module github.com/cloudquery/plugin-sdk/v4 to v4.15.3 ([cloudquery#14679](cloudquery#14679)) ([0513c19](cloudquery@0513c19))
* **deps:** Update module golang.org/x/net to v0.17.0 [SECURITY] ([cloudquery#14500](cloudquery#14500)) ([9e603d5](cloudquery@9e603d5))
* Proper validation for `project_filter` mutually exclusive with `folder_ids` ([cloudquery#14448](cloudquery#14448)) ([4cb898e](cloudquery@4cb898e))
* Set plugin metadata ([cloudquery#14715](cloudquery#14715)) ([39935e2](cloudquery@39935e2))
* Update plugin-SDK to v4.16.0 ([cloudquery#14702](cloudquery#14702)) ([0dcb545](cloudquery@0dcb545))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants