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

Closed Byron closed 2 years ago

Byron commented 2 years ago

Discussed in https://github.com/Byron/google-apis-rs/discussions/327

Originally posted by **FEC-bendingspoons** March 27, 2022 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?
Byron commented 2 years ago

Reported to be working in linked discussion.