Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.02k stars 136 forks source link

[BigQuery] How to instantiate request #326

Closed FEC-bendingspoons closed 2 years ago

FEC-bendingspoons commented 2 years ago

Hello!

I am trying to use the insert_all method: https://github.com/Byron/google-apis-rs/blob/beb110a941186f938996b3e928824f04f59183d3/gen/bigquery2/src/api.rs#L4841

This requires me to instantiate a TableDataInsertAllRequest struct: https://github.com/Byron/google-apis-rs/blob/beb110a941186f938996b3e928824f04f59183d3/gen/bigquery2/src/api.rs#L3093

This requires me to instantiate a vector of TableDataInsertAllRequestRows: https://github.com/Byron/google-apis-rs/blob/beb110a941186f938996b3e928824f04f59183d3/gen/bigquery2/src/api.rs#L3853

This require me to provide a JsonObject for each row: https://github.com/Byron/google-apis-rs/blob/beb110a941186f938996b3e928824f04f59183d3/gen/bigquery2/src/api.rs#L2035

But it has private members and no initializer that I can see. How can I create it? What am I missing?