Skip to content

feat(gcp-resources): Add Batch#6128

Merged
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
erezrokah:feat/gcp_batch
Jan 1, 2023
Merged

feat(gcp-resources): Add Batch#6128
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
erezrokah:feat/gcp_batch

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Dec 29, 2022

Summary

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

This is a bit of an interesting case. Tasks are a relation of an internal field of Job. Meaning to list Tasks we need Job.TaskGroups.

My current solution is to list Jobs twice, and save one table for Jobs, another for TaskGroups, and making Tasks a relation of TaskGroups.

If you have a better idea, please let me know (maybe we can add SDK support for it, haven't seen it somewhere else though).
We can also make Tasks a relation of Jobs directly, but then we won't be able to parallelize the API calls

@github-actions
Copy link
Copy Markdown

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

  • Table gcp_batch_jobs was added
  • Table gcp_batch_task_groups was added
  • Table gcp_batch_tasks was added

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Dec 29, 2022
@erezrokah erezrokah added automerge Automatically merge once required checks pass and removed automerge Automatically merge once required checks pass labels Dec 29, 2022
@kodiakhq kodiakhq bot merged commit 43cd3be into cloudquery:main Jan 1, 2023
kodiakhq bot pushed a commit that referenced this pull request Jan 3, 2023
🤖 I have created a release *beep* *boop*
---


## [5.4.0](plugins-source-gcp-v5.3.1...plugins-source-gcp-v5.4.0) (2023-01-03)


### Features

* **gcp-codegen:** Make ListFunction optional ([#5971](#5971)) ([5717f05](5717f05))
* **gcp-resources:** Add AppEngine resources ([#5972](#5972)) ([d6b6c6a](d6b6c6a))
* **gcp-resources:** Add Artifact Registry ([#6020](#6020)) ([76faa06](76faa06))
* **gcp-resources:** Add Bare Metal Solution ([#6044](#6044)) ([9a80b27](9a80b27))
* **gcp-resources:** Add Batch ([#6128](#6128)) ([43cd3be](43cd3be))
* **gcp-resources:** Add BeyondCorp ([#6133](#6133)) ([48aafd0](48aafd0))
* **gcp-resources:** Add Vertex-AI ([#5762](#5762)) ([d22b69d](d22b69d))
* **gcp:** Auto generate services list ([#5961](#5961)) ([0467de5](0467de5))


### Bug Fixes

* **deps:** Update google.golang.org/genproto digest to f9683d7 ([#6170](#6170)) ([0df29be](0df29be))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.14.0 ([#6025](#6025)) ([35b2cfc](35b2cfc))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.15.0 ([#6071](#6071)) ([684b525](684b525))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.15.1 ([#6079](#6079)) ([650659c](650659c))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.16.0 ([#6098](#6098)) ([7bacdf3](7bacdf3))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.16.1 ([#6214](#6214)) ([53b2415](53b2415))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.17.0 ([#6256](#6256)) ([b19f6cd](b19f6cd))

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