Skip to content

feat(gcp-resources): Add Cloud IoT#6355

Merged
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom
erezrokah:feat/gcp_cloudiot
Jan 5, 2023
Merged

feat(gcp-resources): Add Cloud IoT#6355
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom
erezrokah:feat/gcp_cloudiot

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Jan 4, 2023

Summary

Relevant API https://cloud.google.com/iot/docs/reference/cloudiot/rest

Notes

  • We need to set a location to get registries, couldn't find an automatic way to list those (not even in the old API), so those are hard coded
  • ListDevices only provides id and num_id fields by default, so we need to set a field mask to get all the other fields. I couldn't find a way to "wildcard" all fields, so I'm using the table columns information to generate the mask
  • DeviceConfig and DeviceState don't have a built-in field that can be used as a primary key, so I added the parent device_name as one
  • This service is designated to be retired on August 16, 2023. I still think we should add it since the code works and it can help people migrate off the service

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cloudquery-web 🔄 Building (Inspect) Jan 4, 2023 at 5:22PM (UTC)

@cq-bot cq-bot added gcp labels Jan 4, 2023
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 4, 2023

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

  • Table gcp_cloudiot_device_configs was added
  • Table gcp_cloudiot_device_registries was added
  • Table gcp_cloudiot_device_states was added
  • Table gcp_cloudiot_devices was added

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jan 4, 2023
@kodiakhq kodiakhq bot merged commit 28d6dcd into cloudquery:main Jan 5, 2023
kodiakhq bot pushed a commit that referenced this pull request Jan 5, 2023
🤖 I have created a release *beep* *boop*
---


## [5.5.0](plugins-source-gcp-v5.4.0...plugins-source-gcp-v5.5.0) (2023-01-05)


### Features

* **gcp-resources:** Add Bigtable admin resources ([#6250](#6250)) ([3fedb35](3fedb35))
* **gcp-resources:** Add Billing Budgets ([#6251](#6251)) ([8327d51](8327d51))
* **gcp-resources:** Add Binary Authorization ([#6309](#6309)) ([ff0713a](ff0713a))
* **gcp-resources:** Add Certificate Manager ([#6311](#6311)) ([63a5681](63a5681))
* **gcp-resources:** Add Cloud Deploy ([#6321](#6321)) ([154d1e9](154d1e9))
* **gcp-resources:** Add Cloud IoT ([#6355](#6355)) ([28d6dcd](28d6dcd))
* **gcp-resources:** Add Error Reporting ([#6326](#6326)) ([1fae862](1fae862))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.17.2 ([#6260](#6260)) ([805972a](805972a))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.18.0 ([#6339](#6339)) ([158365a](158365a))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.19.0 ([#6363](#6363)) ([ae6967c](ae6967c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.20.0 ([#6376](#6376)) ([d6187ec](d6187ec))

---
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

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants