yandex-cloud / cq-source-yc

Yandex Cloud CloudQuery source plugin
https://hub.cloudquery.io/plugins/source/yandex-cloud/yc
Apache License 2.0
18 stars 11 forks source link

fix(storage_buckets): remove id unique constraint #34

Closed kabachook closed 1 year ago

kabachook commented 1 year ago

ID was primary key, hence was unique constraint, but Cloud API always returns null Id. Therefore only one row could exist in yandex_storage_bucket table

Not all fields were accessible via yandex.cloud.storage.v1.BucketService.List API call, so we iterate each bucket with yandex.cloud.storage.v1.BucketService.Get(View: VIEW_FULL)