diff --git a/unmnemonic_devices_vrs/Cargo.lock b/unmnemonic_devices_vrs/Cargo.lock index a84f3039..1e0e3307 100644 --- a/unmnemonic_devices_vrs/Cargo.lock +++ b/unmnemonic_devices_vrs/Cargo.lock @@ -8,11 +8,20 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ - "getrandom", + "getrandom 0.2.8", "once_cell", "version_check", ] +[[package]] +name = "aho-corasick" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" +dependencies = [ + "memchr", +] + [[package]] name = "android_system_properties" version = "0.1.5" @@ -22,6 +31,33 @@ dependencies = [ "libc", ] +[[package]] +name = "anyhow" +version = "1.0.75" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6" + +[[package]] +name = "assert-json-diff" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e4f2b81832e72834d7518d8487a0396a28cc408186a2e8854c0f98011faf12" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener", + "futures-core", +] + [[package]] name = "async-trait" version = "0.1.67" @@ -30,7 +66,7 @@ checksum = "86ea188f25f0255d8f92797797c97ebf5631fa88178beb1a46fdf5622c9a00e4" dependencies = [ "proc-macro2", "quote", - "syn 2.0.7", + "syn 2.0.16", ] [[package]] @@ -111,9 +147,15 @@ dependencies = [ [[package]] name = "base64" -version = "0.21.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64" +version = "0.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ba43ea6f343b788c8764558649e08df62f86c6ef251fdaeb1ffd010a9ae50a2" [[package]] name = "base64ct" @@ -190,6 +232,7 @@ dependencies = [ "iana-time-zone", "num-integer", "num-traits", + "serde", "winapi", ] @@ -203,6 +246,15 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "concurrent-queue" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f057a694a54f12365049b0958a1685bb52d567f5593b355fbf685838e873d400" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "const-oid" version = "0.9.2" @@ -302,7 +354,7 @@ dependencies = [ "proc-macro2", "quote", "scratch", - "syn 2.0.7", + "syn 2.0.16", ] [[package]] @@ -319,9 +371,63 @@ checksum = "2345488264226bf682893e25de0769f3360aac9957980ec49361b083ddaa5bc5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.7", + "syn 2.0.16", ] +[[package]] +name = "darling" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0209d94da627ab5605dcccf08bb18afa5009cfbef48d8a8b7d7bdbc79be25c5e" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "177e3443818124b357d8e76f53be906d60937f0d3a90773a664fa63fa253e621" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.16", +] + +[[package]] +name = "darling_macro" +version = "0.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "836a9bbc7ad63342d6d6e7b815ccab164bc77a2d95d84bc3117a8c0d5c98e2d5" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.16", +] + +[[package]] +name = "deadpool" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "421fe0f90f2ab22016f32a9881be5134fdd71c65298917084b0c7477cbc3856e" +dependencies = [ + "async-trait", + "deadpool-runtime", + "num_cpus", + "retain_mut", + "tokio", +] + +[[package]] +name = "deadpool-runtime" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63dfa964fe2a66f3fde91fc70b267fe193d822c7e603e2a675a49a7f46ad3f49" + [[package]] name = "der" version = "0.6.1" @@ -333,6 +439,15 @@ dependencies = [ "zeroize", ] +[[package]] +name = "deranged" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f32d04922c60427da6f9fef14d042d9edddef64cb9d4ce0d64d0685fbeb1fd3" +dependencies = [ + "serde", +] + [[package]] name = "digest" version = "0.10.6" @@ -477,6 +592,21 @@ dependencies = [ "new_debug_unreachable", ] +[[package]] +name = "futures" +version = "0.3.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "531ac96c6ff5fd7c62263c5e3c67a603af4fcaee2e1a0ae5565ba3a11e69e549" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + [[package]] name = "futures-channel" version = "0.3.27" @@ -521,6 +651,32 @@ version = "0.3.28" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" +[[package]] +name = "futures-lite" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49a9d51ce47660b1e808d3c990b4709f2f415d928835a17dfd16991515c46bce" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "memchr", + "parking", + "pin-project-lite", + "waker-fn", +] + +[[package]] +name = "futures-macro" +version = "0.3.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eb14ed937631bd8b8b8977f2c198443447a8355b6e3ca599f38c975e5a963b6" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "futures-sink" version = "0.3.28" @@ -533,14 +689,22 @@ version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd65540d33b37b16542a0438c12e6aeead10d4ac5d05bd3f805b8f35ab592879" +[[package]] +name = "futures-timer" +version = "3.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" + [[package]] name = "futures-util" version = "0.3.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3ef6b17e481503ec85211fed8f39d1970f128935ca1f814cd32ac4a6842e84ab" dependencies = [ + "futures-channel", "futures-core", "futures-io", + "futures-macro", "futures-sink", "futures-task", "memchr", @@ -559,6 +723,17 @@ dependencies = [ "version_check", ] +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + [[package]] name = "getrandom" version = "0.2.8" @@ -567,7 +742,7 @@ checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", ] [[package]] @@ -712,6 +887,27 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0bfe8eed0a9285ef776bb792479ea3834e8b94e13d615c2f66d03dd50a435a29" +[[package]] +name = "http-types" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9b187a72d63adbfba487f48095306ac823049cb504ee195541e91c7775f5ad" +dependencies = [ + "anyhow", + "async-channel", + "base64 0.13.1", + "futures-lite", + "http", + "infer", + "pin-project-lite", + "rand 0.7.3", + "serde", + "serde_json", + "serde_qs", + "serde_urlencoded", + "url", +] + [[package]] name = "httparse" version = "1.8.0" @@ -785,6 +981,12 @@ dependencies = [ "cxx-build", ] +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + [[package]] name = "idna" version = "0.3.0" @@ -803,8 +1005,15 @@ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown", + "serde", ] +[[package]] +name = "infer" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64e9829a50b42bb782c1df523f78d332fe371b10c661e78b7a3c34b0198e9fac" + [[package]] name = "instant" version = "0.1.12" @@ -980,6 +1189,16 @@ version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "mime_guess" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef" +dependencies = [ + "mime", + "unicase", +] + [[package]] name = "minimal-lexical" version = "0.2.1" @@ -994,7 +1213,7 @@ checksum = "5b9d9a46eff5b4ff64b45a9e316a6d1e0bc719ef429cbec4dc630684212bfdf9" dependencies = [ "libc", "log", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.45.0", ] @@ -1079,7 +1298,7 @@ dependencies = [ "num-integer", "num-iter", "num-traits", - "rand", + "rand 0.8.5", "smallvec", "zeroize", ] @@ -1152,6 +1371,19 @@ version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +[[package]] +name = "openapi" +version = "1.50.1" +dependencies = [ + "reqwest", + "serde", + "serde_derive", + "serde_json", + "serde_with", + "url", + "uuid", +] + [[package]] name = "openssl" version = "0.10.48" @@ -1203,6 +1435,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" +[[package]] +name = "parking" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e52c774a4c39359c1d1c52e43f73dd91a75a614652c825408eec30c95a9b2067" + [[package]] name = "parking_lot" version = "0.12.1" @@ -1277,7 +1515,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.7", + "syn 2.0.16", ] [[package]] @@ -1317,7 +1555,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ "phf_shared", - "rand", + "rand 0.8.5", ] [[package]] @@ -1403,9 +1641,9 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "proc-macro2" -version = "1.0.53" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba466839c78239c09faf015484e5cc04860f88242cff4d03eb038f04b4699b73" +checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" dependencies = [ "unicode-ident", ] @@ -1419,6 +1657,19 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + [[package]] name = "rand" version = "0.8.5" @@ -1426,8 +1677,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", - "rand_core", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", ] [[package]] @@ -1437,7 +1698,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", ] [[package]] @@ -1446,7 +1716,16 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.8", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", ] [[package]] @@ -1473,18 +1752,47 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom", + "getrandom 0.2.8", "redox_syscall 0.2.16", "thiserror", ] +[[package]] +name = "regex" +version = "1.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12de2eff854e5fa4b1295edd650e227e9d8fb0c9e90b12e7f36d6a6811791a29" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49530408a136e16e5b486e883fbb6ba058e8e4e8ae6621a77b048b314336e629" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" + [[package]] name = "reqwest" version = "0.11.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27b71749df584b7f4cac2c426c127a7c785a5106cc98f7a8feb044115f0fa254" dependencies = [ - "base64", + "base64 0.21.4", "bytes", "encoding_rs", "futures-core", @@ -1498,6 +1806,7 @@ dependencies = [ "js-sys", "log", "mime", + "mime_guess", "native-tls", "once_cell", "percent-encoding", @@ -1515,6 +1824,12 @@ dependencies = [ "winreg", ] +[[package]] +name = "retain_mut" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4389f1d5789befaf6029ebd9f7dac4af7f7e3d61b69d4f30e2ac02b57e7712b0" + [[package]] name = "rsa" version = "0.8.2" @@ -1529,7 +1844,7 @@ dependencies = [ "num-traits", "pkcs1", "pkcs8", - "rand_core", + "rand_core 0.6.4", "signature", "subtle", "zeroize", @@ -1642,7 +1957,7 @@ checksum = "e801c1712f48475582b7696ac71e0ca34ebb30e09338425384269d9717c62cad" dependencies = [ "proc-macro2", "quote", - "syn 2.0.7", + "syn 2.0.16", ] [[package]] @@ -1665,6 +1980,17 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_qs" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7715380eec75f029a4ef7de39a9200e0a63823176b759d055b613f5a87df6a6" +dependencies = [ + "percent-encoding", + "serde", + "thiserror", +] + [[package]] name = "serde_spanned" version = "0.6.1" @@ -1686,6 +2012,34 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_with" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07ff71d2c147a7b57362cead5e22f772cd52f6ab31cfcd9edcd7f6aeb2a0afbe" +dependencies = [ + "base64 0.13.1", + "chrono", + "hex", + "indexmap", + "serde", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "881b6f881b17d13214e5d494c939ebab463d01264ce1811e9d4ac3a882e7695f" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.16", +] + [[package]] name = "sha1" version = "0.10.5" @@ -1733,7 +2087,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fe458c98333f9c8152221191a77e2a44e8325d0193484af2e9421a53019e57d" dependencies = [ "digest", - "rand_core", + "rand_core 0.6.4", ] [[package]] @@ -1914,7 +2268,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b5b5fc45f1630f2b1ea8d98126d6e4490220591c1cc5b6c34395a828a6ce70c9" dependencies = [ "atoi", - "base64", + "base64 0.21.4", "bitflags", "byteorder", "bytes", @@ -1938,7 +2292,7 @@ dependencies = [ "memchr", "once_cell", "percent-encoding", - "rand", + "rand 0.8.5", "rsa", "serde", "sha1", @@ -1959,7 +2313,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21a60330e228f5d1d0b02e4c1c99743e0196030b9891c628361a82acfd16391a" dependencies = [ "atoi", - "base64", + "base64 0.21.4", "bitflags", "byteorder", "chrono", @@ -1978,7 +2332,7 @@ dependencies = [ "md-5", "memchr", "once_cell", - "rand", + "rand 0.8.5", "serde", "serde_json", "sha1", @@ -2053,6 +2407,12 @@ dependencies = [ "unicode-normalization", ] +[[package]] +name = "strsim" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" + [[package]] name = "subtle" version = "2.4.1" @@ -2072,9 +2432,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.7" +version = "2.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a9a90d19f27bb60792270bb90225f96d97fc5705395134b2ca1dcbb3acc27f4" +checksum = "a6f671d4b5ffdb8eadec19c0ae67fe2639df8684bd7bc4b83d986b8db549cf01" dependencies = [ "proc-macro2", "quote", @@ -2137,7 +2497,7 @@ checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.7", + "syn 2.0.16", ] [[package]] @@ -2150,6 +2510,34 @@ dependencies = [ "once_cell", ] +[[package]] +name = "time" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a79d09ac6b08c1ab3906a2f7cc2e81a0e27c7ae89c63812df75e52bef0751e07" +dependencies = [ + "deranged", + "itoa", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" + +[[package]] +name = "time-macros" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75c65469ed6b3a4809d987a41eb1dc918e9bc1d92211cbad7ae82931846f7451" +dependencies = [ + "time-core", +] + [[package]] name = "tinyvec" version = "1.6.0" @@ -2389,6 +2777,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" +[[package]] +name = "unicase" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" +dependencies = [ + "version_check", +] + [[package]] name = "unicode-bidi" version = "0.3.13" @@ -2434,10 +2831,12 @@ version = "0.1.0" dependencies = [ "axum", "axum-template", + "base64 0.21.4", "chrono", "handlebars", "http", "mime", + "openapi", "reqwest", "select", "serde", @@ -2451,6 +2850,7 @@ dependencies = [ "tracing-subscriber", "urlencoding", "uuid", + "wiremock", ] [[package]] @@ -2462,6 +2862,7 @@ dependencies = [ "form_urlencoded", "idna", "percent-encoding", + "serde", ] [[package]] @@ -2482,7 +2883,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b55a3fef2a1e3b3a00ce878640918820d3c51081576ac657d23af9fc7928fdb" dependencies = [ - "getrandom", + "getrandom 0.2.8", "serde", ] @@ -2504,6 +2905,12 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +[[package]] +name = "waker-fn" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3c4517f54858c779bbcbf228f4fca63d121bf85fbecb2dc578cdf4a39395690" + [[package]] name = "walkdir" version = "2.3.3" @@ -2524,6 +2931,12 @@ dependencies = [ "try-lock", ] +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + [[package]] name = "wasi" version = "0.11.0+wasi-snapshot-preview1" @@ -2751,6 +3164,28 @@ dependencies = [ "winapi", ] +[[package]] +name = "wiremock" +version = "0.5.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f71803d3a1c80377a06221e0530be02035d5b3e854af56c6ece7ac20ac441d" +dependencies = [ + "assert-json-diff", + "async-trait", + "base64 0.21.4", + "deadpool", + "futures", + "futures-timer", + "http-types", + "hyper", + "log", + "once_cell", + "regex", + "serde", + "serde_json", + "tokio", +] + [[package]] name = "xml5ever" version = "0.17.0" diff --git a/unmnemonic_devices_vrs/Cargo.toml b/unmnemonic_devices_vrs/Cargo.toml index 55690094..aeb9864e 100644 --- a/unmnemonic_devices_vrs/Cargo.toml +++ b/unmnemonic_devices_vrs/Cargo.toml @@ -17,6 +17,7 @@ chrono = { version = "0.4.22", default-features = false, features = ["clock"] } handlebars = { version = "4", features = ["dir_source"] } http = "0.2.9" mime = "0.3.16" +reqwest = { version = "0.11", features = ["json"] } tokio = { version = "1.0", features = ["full"] } toml = "0.7.3" tower-http = { version = "0.4", features = ["trace"] } @@ -33,6 +34,8 @@ sqlx = { version = "0.7.0-alpha.2", features = [ "uuid", ] } urlencoding = "2.1.2" +base64 = "0.21.4" +openapi = { version = "1.50.1", path = "twilio-rust" } [dependencies.uuid] version = "1.3.1" @@ -40,4 +43,4 @@ features = ["serde", "v4"] [dev-dependencies] speculoos = "0.11" -reqwest = "0.11" +wiremock = "0.5.19" diff --git a/unmnemonic_devices_vrs/src/config.rs b/unmnemonic_devices_vrs/src/config.rs new file mode 100644 index 00000000..64887993 --- /dev/null +++ b/unmnemonic_devices_vrs/src/config.rs @@ -0,0 +1,49 @@ +use std::collections::HashMap; + +#[derive(Debug, Default)] +pub struct Config { + pub database_url: String, + pub twilio_account_sid: String, + pub twilio_auth_token: String, + pub twilio_url: String, +} + +pub trait ConfigProvider { + fn get_config(&self) -> &Config; +} + +pub struct EnvVarProvider(Config); + +impl EnvVarProvider { + pub fn new(args: HashMap) -> Self { + let config = Config { + database_url: args + .get("DATABASE_URL") + .expect("Missing database URL") + .to_string(), + twilio_account_sid: args + .get("TWILIO_ACCOUNT_SID") + .expect("Missing Twilio account SID") + .to_string(), + twilio_auth_token: args + .get("TWILIO_AUTH_TOKEN") + .expect("Missing Twilio auth token") + .to_string(), + twilio_url: "https://api.twilio.com".to_string(), + }; + + EnvVarProvider(config) + } +} + +impl ConfigProvider for EnvVarProvider { + fn get_config(&self) -> &Config { + &self.0 + } +} + +impl Default for EnvVarProvider { + fn default() -> Self { + Self::new(HashMap::new()) + } +} diff --git a/unmnemonic_devices_vrs/src/lib.rs b/unmnemonic_devices_vrs/src/lib.rs index b567c708..45c88267 100644 --- a/unmnemonic_devices_vrs/src/lib.rs +++ b/unmnemonic_devices_vrs/src/lib.rs @@ -1,3 +1,4 @@ +pub mod config; pub mod helpers; pub mod render_xml; pub mod routes; @@ -17,9 +18,15 @@ use crate::routes::*; pub type AppEngine = Engine>; +pub struct InjectableServices { + pub db: PgPool, + pub twilio_address: String, +} + #[derive(Clone)] pub struct AppState { db: PgPool, + twilio_address: String, engine: AppEngine, prompts: Prompts, } @@ -30,7 +37,7 @@ pub struct Prompts { tables: HashMap>, } -pub async fn app(db: PgPool) -> Router { +pub async fn app(services: InjectableServices) -> Router { let mut hbs = Handlebars::new(); hbs.register_templates_directory(".hbs", "src/templates") .expect("Failed to register templates directory"); @@ -42,7 +49,8 @@ pub async fn app(db: PgPool) -> Router { toml::from_str(&prompts_string).expect("Failed to parse the prompts file"); let shared_state = AppState { - db, + db: services.db, + twilio_address: services.twilio_address, engine: Engine::from(hbs), prompts, }; @@ -83,6 +91,9 @@ pub async fn app(db: PgPool) -> Router { .route("/teams/:id", post(post_team)) .route("/teams/:id/confirm", get(get_confirm_team)) .route("/teams/:id/confirm", post(post_confirm_team)) + // + // admin routes + .route("/calls", get(get_calls)) .with_state(shared_state) .layer(tower_http::trace::TraceLayer::new_for_http()) } diff --git a/unmnemonic_devices_vrs/src/main.rs b/unmnemonic_devices_vrs/src/main.rs index 9427e75c..833112ca 100644 --- a/unmnemonic_devices_vrs/src/main.rs +++ b/unmnemonic_devices_vrs/src/main.rs @@ -2,12 +2,16 @@ use axum::Server; use sqlx::PgPool; use std::env; use std::net::{SocketAddr, TcpListener}; -use unmnemonic_devices_vrs::app; +use unmnemonic_devices_vrs::config::{ConfigProvider, EnvVarProvider}; +use unmnemonic_devices_vrs::{app, InjectableServices}; #[tokio::main] async fn main() { - let database_url = env::var("DATABASE_URL").expect("DATABASE_URL is not set in .env file"); - let db = PgPool::connect(&database_url).await.unwrap(); + let env_config_provider = EnvVarProvider::new(env::vars().collect()); + let config = &env_config_provider.get_config(); + + let database_url = &config.database_url; + let db = PgPool::connect(database_url).await.unwrap(); let listener_address = "127.0.0.1:3000"; let listener = TcpListener::bind(listener_address.parse::().unwrap()).unwrap(); @@ -20,7 +24,14 @@ async fn main() { Server::from_tcp(listener) .expect("Failed to listen") - .serve(app(db).await.into_make_service()) + .serve( + app(InjectableServices { + db, + twilio_address: config.twilio_url.to_string(), + }) + .await + .into_make_service(), + ) .await .expect("Failed to start server") } diff --git a/unmnemonic_devices_vrs/src/routes/calls.rs b/unmnemonic_devices_vrs/src/routes/calls.rs new file mode 100644 index 00000000..ee887bd0 --- /dev/null +++ b/unmnemonic_devices_vrs/src/routes/calls.rs @@ -0,0 +1,83 @@ +use axum::{extract::State, response::IntoResponse}; +use axum_template::{Key, RenderHtml}; +use serde::{Deserialize, Serialize}; +use std::env; + +use openapi::apis::api20100401_call_api::{list_call, ListCallParams}; +use openapi::apis::configuration::Configuration; + +use crate::config::{ConfigProvider, EnvVarProvider}; +use crate::AppState; + +#[derive(Debug, Deserialize)] +struct TwilioCall { + from: String, +} + +#[derive(Serialize)] +pub struct Calls { + calls: Vec, +} + +#[derive(sqlx::FromRow, Serialize)] +pub struct Call { + from: String, +} + +pub async fn get_calls(Key(key): Key, State(state): State) -> impl IntoResponse { + // FIXME can this use a generated client? + let env_config_provider = EnvVarProvider::new(env::vars().collect()); + let config = &env_config_provider.get_config(); + let account_sid = config.twilio_account_sid.to_string(); + let auth_token = config.twilio_auth_token.to_string(); + + let twilio_config = Configuration { + basic_auth: Some((account_sid.clone(), Some(auth_token))), + ..Default::default() + }; + + let response = list_call( + &twilio_config, + ListCallParams { + account_sid: account_sid.clone(), + to: None, + from: None, + parent_call_sid: None, + status: None, + start_time: None, + start_time_less_than: None, + start_time_greater_than: None, + end_time: None, + end_time_less_than: None, + end_time_greater_than: None, + page_size: None, + page: None, + page_token: None, + }, + ) + .await; + + match response { + Ok(result) => { + let calls = result + .calls + .unwrap() + .iter() + .map(|call| Call { + from: call.from.clone().unwrap().unwrap(), + }) + .collect::>(); + + RenderHtml( + key.chars().skip(1).collect::(), + state.engine, + Calls { calls }, + ) + } + Err(error) => RenderHtml( + key.chars().skip(1).collect::(), + state.engine, + Calls { calls: Vec::new() }, + ), + }; +} diff --git a/unmnemonic_devices_vrs/src/routes/mod.rs b/unmnemonic_devices_vrs/src/routes/mod.rs index c27afa82..633917e7 100644 --- a/unmnemonic_devices_vrs/src/routes/mod.rs +++ b/unmnemonic_devices_vrs/src/routes/mod.rs @@ -1,9 +1,11 @@ +mod calls; mod meetings; mod recordings; mod root; mod teams; mod util; +pub use calls::*; pub use meetings::*; pub use recordings::*; pub use root::*; diff --git a/unmnemonic_devices_vrs/src/templates/calls.hbs b/unmnemonic_devices_vrs/src/templates/calls.hbs new file mode 100644 index 00000000..bb408570 --- /dev/null +++ b/unmnemonic_devices_vrs/src/templates/calls.hbs @@ -0,0 +1,28 @@ + + + + + + + + + + {{#each calls}} + + + + {{else}} + + + + {{/each}} + +
+ from +
+ {{this.from}} +
+ no calls +
+ + \ No newline at end of file diff --git a/unmnemonic_devices_vrs/tests/api/calls.rs b/unmnemonic_devices_vrs/tests/api/calls.rs new file mode 100644 index 00000000..59299419 --- /dev/null +++ b/unmnemonic_devices_vrs/tests/api/calls.rs @@ -0,0 +1,87 @@ +use crate::helpers::get_with_twilio; +use select::{ + document::Document, + predicate::{Descendant, Name}, +}; +use serde_json::json; +use speculoos::prelude::*; +use sqlx::PgPool; +use unmnemonic_devices_vrs::InjectableServices; +use wiremock::matchers::any; +use wiremock::{Mock, MockServer, ResponseTemplate}; + +// FIXME this isn’t an API! + +#[sqlx::test()] +async fn calls_list_when_empty(db: PgPool) { + let mock_twilio = MockServer::start().await; + + Mock::given(any()) + .respond_with(ResponseTemplate::new(200).set_body_json(json!({"calls": []}))) + .expect(1) + .mount(&mock_twilio) + .await; + + let response = get_with_twilio( + InjectableServices { + db, + twilio_address: mock_twilio.uri(), + }, + "/calls", + false, + ) + .await + .expect("Failed to execute request."); + + assert!(response.status().is_success()); + assert_eq!( + response.headers().get("Content-Type").unwrap(), + "text/html; charset=utf-8" + ); + + let document = Document::from(response.text().await.unwrap().as_str()); + let row = document + .find(Descendant(Name("tbody"), Name("tr"))) + .next() + .unwrap(); + + assert_that(&row.text()).contains("no calls"); +} + +#[sqlx::test()] +async fn calls_list_with_calls(db: PgPool) { + let mock_twilio = MockServer::start().await; + + Mock::given(any()) + .respond_with( + ResponseTemplate::new(200).set_body_json(json!({"calls": [{"from": "+15145551212"}]})), + ) + .expect(1) + .mount(&mock_twilio) + .await; + + let response = get_with_twilio( + InjectableServices { + db, + twilio_address: mock_twilio.uri(), + }, + "/calls", + false, + ) + .await + .expect("Failed to execute request."); + + assert!(response.status().is_success()); + assert_eq!( + response.headers().get("Content-Type").unwrap(), + "text/html; charset=utf-8" + ); + + let document = Document::from(response.text().await.unwrap().as_str()); + let row = document + .find(Descendant(Name("tbody"), Name("tr"))) + .next() + .unwrap(); + + assert_that(&row.text()).contains("+15145551212"); +} diff --git a/unmnemonic_devices_vrs/tests/api/helpers.rs b/unmnemonic_devices_vrs/tests/api/helpers.rs index 24069ebc..f50dbcc7 100644 --- a/unmnemonic_devices_vrs/tests/api/helpers.rs +++ b/unmnemonic_devices_vrs/tests/api/helpers.rs @@ -1,20 +1,22 @@ use axum::Server; use sqlx::PgPool; use std::net::TcpListener; -use unmnemonic_devices_vrs::app; +use unmnemonic_devices_vrs::{app, InjectableServices}; +use wiremock::matchers::any; +use wiremock::{Mock, MockServer, ResponseTemplate}; pub struct TestApp { pub address: String, } -pub async fn spawn_app(db: PgPool) -> TestApp { +pub async fn spawn_app(services: InjectableServices) -> TestApp { let listener = TcpListener::bind("127.0.0.1:0").expect("Failed to bind random port"); let port = listener.local_addr().unwrap().port(); let address = format!("http://127.0.0.1:{}", port); let server = Server::from_tcp(listener) .expect("Failed to listen") - .serve(app(db).await.into_make_service()); + .serve(app(services).await.into_make_service()); let _ = tokio::spawn(server); TestApp { address } @@ -25,7 +27,32 @@ pub async fn get( path: &str, skip_redirects: bool, ) -> Result { - let app_address = spawn_app(db).await.address; + let mock_twilio = MockServer::start().await; + + Mock::given(any()) + .respond_with(ResponseTemplate::new(500)) + .expect(0) + .named("Mock Twilio API") + .mount(&mock_twilio) + .await; + + get_with_twilio( + InjectableServices { + db, + twilio_address: mock_twilio.uri(), + }, + path, + skip_redirects, + ) + .await +} + +pub async fn get_with_twilio( + services: InjectableServices, + path: &str, + skip_redirects: bool, +) -> Result { + let app_address = spawn_app(services).await.address; let client_builder = reqwest::Client::builder(); let client = if skip_redirects { @@ -45,7 +72,21 @@ pub async fn post( body: &str, skip_redirects: bool, ) -> Result { - let app_address = spawn_app(db).await.address; + let mock_twilio = MockServer::start().await; + + Mock::given(any()) + .respond_with(ResponseTemplate::new(500)) + .expect(0) + .named("Mock Twilio API") + .mount(&mock_twilio) + .await; + + let app_address = spawn_app(InjectableServices { + db, + twilio_address: mock_twilio.uri(), + }) + .await + .address; let client_builder = reqwest::Client::builder(); let client = if skip_redirects { diff --git a/unmnemonic_devices_vrs/tests/api/main.rs b/unmnemonic_devices_vrs/tests/api/main.rs index 0991baab..c07d1c76 100644 --- a/unmnemonic_devices_vrs/tests/api/main.rs +++ b/unmnemonic_devices_vrs/tests/api/main.rs @@ -1,3 +1,4 @@ +mod calls; mod helpers; mod meetings; mod recordings; diff --git a/unmnemonic_devices_vrs/twilio-rust/.gitignore b/unmnemonic_devices_vrs/twilio-rust/.gitignore new file mode 100644 index 00000000..6aa10640 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/.gitignore @@ -0,0 +1,3 @@ +/target/ +**/*.rs.bk +Cargo.lock diff --git a/unmnemonic_devices_vrs/twilio-rust/.openapi-generator-ignore b/unmnemonic_devices_vrs/twilio-rust/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/unmnemonic_devices_vrs/twilio-rust/.openapi-generator/FILES b/unmnemonic_devices_vrs/twilio-rust/.openapi-generator/FILES new file mode 100644 index 00000000..1c5ed17c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/.openapi-generator/FILES @@ -0,0 +1,570 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +Cargo.toml +README.md +docs/AccountEnumStatus.md +docs/AccountEnumType.md +docs/Api20100401AccountApi.md +docs/Api20100401AddOnResultApi.md +docs/Api20100401AddressApi.md +docs/Api20100401AllTimeApi.md +docs/Api20100401ApplicationApi.md +docs/Api20100401AssignedAddOnApi.md +docs/Api20100401AssignedAddOnExtensionApi.md +docs/Api20100401AuthCallsCredentialListMappingApi.md +docs/Api20100401AuthCallsIpAccessControlListMappingApi.md +docs/Api20100401AuthRegistrationsCredentialListMappingApi.md +docs/Api20100401AuthorizedConnectAppApi.md +docs/Api20100401AvailablePhoneNumberCountryApi.md +docs/Api20100401BalanceApi.md +docs/Api20100401CallApi.md +docs/Api20100401ConferenceApi.md +docs/Api20100401ConnectAppApi.md +docs/Api20100401CredentialApi.md +docs/Api20100401CredentialListApi.md +docs/Api20100401CredentialListMappingApi.md +docs/Api20100401DailyApi.md +docs/Api20100401DependentPhoneNumberApi.md +docs/Api20100401DomainApi.md +docs/Api20100401EventApi.md +docs/Api20100401FeedbackApi.md +docs/Api20100401FeedbackSummaryApi.md +docs/Api20100401IncomingPhoneNumberApi.md +docs/Api20100401IpAccessControlListApi.md +docs/Api20100401IpAccessControlListMappingApi.md +docs/Api20100401IpAddressApi.md +docs/Api20100401KeyApi.md +docs/Api20100401LastMonthApi.md +docs/Api20100401LocalApi.md +docs/Api20100401MachineToMachineApi.md +docs/Api20100401MediaApi.md +docs/Api20100401MemberApi.md +docs/Api20100401MessageApi.md +docs/Api20100401MobileApi.md +docs/Api20100401MonthlyApi.md +docs/Api20100401NationalApi.md +docs/Api20100401NewKeyApi.md +docs/Api20100401NewSigningKeyApi.md +docs/Api20100401NotificationApi.md +docs/Api20100401OutgoingCallerIdApi.md +docs/Api20100401ParticipantApi.md +docs/Api20100401PayloadApi.md +docs/Api20100401PaymentApi.md +docs/Api20100401QueueApi.md +docs/Api20100401RecordApi.md +docs/Api20100401RecordingApi.md +docs/Api20100401SafelistApi.md +docs/Api20100401SharedCostApi.md +docs/Api20100401ShortCodeApi.md +docs/Api20100401SigningKeyApi.md +docs/Api20100401SiprecApi.md +docs/Api20100401StreamApi.md +docs/Api20100401ThisMonthApi.md +docs/Api20100401TodayApi.md +docs/Api20100401TokenApi.md +docs/Api20100401TollFreeApi.md +docs/Api20100401TranscriptionApi.md +docs/Api20100401TriggerApi.md +docs/Api20100401UserDefinedMessageApi.md +docs/Api20100401UserDefinedMessageSubscriptionApi.md +docs/Api20100401ValidationRequestApi.md +docs/Api20100401VoipApi.md +docs/Api20100401YearlyApi.md +docs/Api20100401YesterdayApi.md +docs/ApiPeriodV2010PeriodAccount.md +docs/ApiPeriodV2010PeriodAccountPeriodAddress.md +docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md +docs/ApiPeriodV2010PeriodAccountPeriodApplication.md +docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md +docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md +docs/ApiPeriodV2010PeriodAccountPeriodBalance.md +docs/ApiPeriodV2010PeriodAccountPeriodCall.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md +docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md +docs/ApiPeriodV2010PeriodAccountPeriodConference.md +docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md +docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md +docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md +docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md +docs/ApiPeriodV2010PeriodAccountPeriodKey.md +docs/ApiPeriodV2010PeriodAccountPeriodMessage.md +docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md +docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md +docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md +docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md +docs/ApiPeriodV2010PeriodAccountPeriodNotification.md +docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md +docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md +docs/ApiPeriodV2010PeriodAccountPeriodQueue.md +docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md +docs/ApiPeriodV2010PeriodAccountPeriodRecording.md +docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md +docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md +docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md +docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md +docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md +docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md +docs/ApiPeriodV2010PeriodAccountPeriodToken.md +docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md +docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md +docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md +docs/ApiPeriodV2010PeriodSafelist.md +docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md +docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md +docs/ApiV2010AccountTokenIceServersInner.md +docs/AuthorizedConnectAppEnumPermission.md +docs/CallEnumEvent.md +docs/CallEnumStatus.md +docs/CallEnumUpdateStatus.md +docs/CallFeedbackEnumIssues.md +docs/CallFeedbackSummaryEnumStatus.md +docs/CallRecordingEnumSource.md +docs/CallRecordingEnumStatus.md +docs/ConferenceEnumReasonConferenceEnded.md +docs/ConferenceEnumStatus.md +docs/ConferenceEnumUpdateStatus.md +docs/ConferenceRecordingEnumSource.md +docs/ConferenceRecordingEnumStatus.md +docs/ConnectAppEnumPermission.md +docs/DependentPhoneNumberEnumAddressRequirement.md +docs/DependentPhoneNumberEnumEmergencyStatus.md +docs/IncomingPhoneNumberEnumAddressRequirement.md +docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberEnumEmergencyStatus.md +docs/IncomingPhoneNumberEnumVoiceReceiveMode.md +docs/IncomingPhoneNumberLocalEnumAddressRequirement.md +docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md +docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md +docs/IncomingPhoneNumberMobileEnumAddressRequirement.md +docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md +docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md +docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md +docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md +docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md +docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md +docs/ListAccountResponse.md +docs/ListAddressResponse.md +docs/ListApplicationResponse.md +docs/ListAuthorizedConnectAppResponse.md +docs/ListAvailablePhoneNumberCountryResponse.md +docs/ListAvailablePhoneNumberLocalResponse.md +docs/ListAvailablePhoneNumberMachineToMachineResponse.md +docs/ListAvailablePhoneNumberMobileResponse.md +docs/ListAvailablePhoneNumberNationalResponse.md +docs/ListAvailablePhoneNumberSharedCostResponse.md +docs/ListAvailablePhoneNumberTollFreeResponse.md +docs/ListAvailablePhoneNumberVoipResponse.md +docs/ListCallEventResponse.md +docs/ListCallNotificationResponse.md +docs/ListCallRecordingResponse.md +docs/ListCallResponse.md +docs/ListConferenceRecordingResponse.md +docs/ListConferenceResponse.md +docs/ListConnectAppResponse.md +docs/ListDependentPhoneNumberResponse.md +docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md +docs/ListIncomingPhoneNumberAssignedAddOnResponse.md +docs/ListIncomingPhoneNumberLocalResponse.md +docs/ListIncomingPhoneNumberMobileResponse.md +docs/ListIncomingPhoneNumberResponse.md +docs/ListIncomingPhoneNumberTollFreeResponse.md +docs/ListKeyResponse.md +docs/ListMediaResponse.md +docs/ListMemberResponse.md +docs/ListMessageResponse.md +docs/ListNotificationResponse.md +docs/ListOutgoingCallerIdResponse.md +docs/ListParticipantResponse.md +docs/ListQueueResponse.md +docs/ListRecordingAddOnResultPayloadResponse.md +docs/ListRecordingAddOnResultResponse.md +docs/ListRecordingResponse.md +docs/ListRecordingTranscriptionResponse.md +docs/ListShortCodeResponse.md +docs/ListSigningKeyResponse.md +docs/ListSipAuthCallsCredentialListMappingResponse.md +docs/ListSipAuthCallsIpAccessControlListMappingResponse.md +docs/ListSipAuthRegistrationsCredentialListMappingResponse.md +docs/ListSipCredentialListMappingResponse.md +docs/ListSipCredentialListResponse.md +docs/ListSipCredentialResponse.md +docs/ListSipDomainResponse.md +docs/ListSipIpAccessControlListMappingResponse.md +docs/ListSipIpAccessControlListResponse.md +docs/ListSipIpAddressResponse.md +docs/ListTranscriptionResponse.md +docs/ListUsageRecordAllTimeResponse.md +docs/ListUsageRecordDailyResponse.md +docs/ListUsageRecordLastMonthResponse.md +docs/ListUsageRecordMonthlyResponse.md +docs/ListUsageRecordResponse.md +docs/ListUsageRecordThisMonthResponse.md +docs/ListUsageRecordTodayResponse.md +docs/ListUsageRecordYearlyResponse.md +docs/ListUsageRecordYesterdayResponse.md +docs/ListUsageTriggerResponse.md +docs/MessageEnumAddressRetention.md +docs/MessageEnumContentRetention.md +docs/MessageEnumDirection.md +docs/MessageEnumRiskCheck.md +docs/MessageEnumScheduleType.md +docs/MessageEnumStatus.md +docs/MessageEnumTrafficType.md +docs/MessageEnumUpdateStatus.md +docs/MessageFeedbackEnumOutcome.md +docs/ParticipantEnumStatus.md +docs/PaymentsEnumBankAccountType.md +docs/PaymentsEnumCapture.md +docs/PaymentsEnumPaymentMethod.md +docs/PaymentsEnumStatus.md +docs/PaymentsEnumTokenType.md +docs/RecordingAddOnResultEnumStatus.md +docs/RecordingEnumSource.md +docs/RecordingEnumStatus.md +docs/RecordingTranscriptionEnumStatus.md +docs/SiprecEnumStatus.md +docs/SiprecEnumTrack.md +docs/SiprecEnumUpdateStatus.md +docs/StreamEnumStatus.md +docs/StreamEnumTrack.md +docs/StreamEnumUpdateStatus.md +docs/TranscriptionEnumStatus.md +docs/UsageRecordAllTimeEnumCategory.md +docs/UsageRecordDailyEnumCategory.md +docs/UsageRecordEnumCategory.md +docs/UsageRecordLastMonthEnumCategory.md +docs/UsageRecordMonthlyEnumCategory.md +docs/UsageRecordThisMonthEnumCategory.md +docs/UsageRecordTodayEnumCategory.md +docs/UsageRecordYearlyEnumCategory.md +docs/UsageRecordYesterdayEnumCategory.md +docs/UsageTriggerEnumRecurring.md +docs/UsageTriggerEnumTriggerField.md +docs/UsageTriggerEnumUsageCategory.md +git_push.sh +src/apis/api20100401_account_api.rs +src/apis/api20100401_add_on_result_api.rs +src/apis/api20100401_address_api.rs +src/apis/api20100401_all_time_api.rs +src/apis/api20100401_application_api.rs +src/apis/api20100401_assigned_add_on_api.rs +src/apis/api20100401_assigned_add_on_extension_api.rs +src/apis/api20100401_auth_calls_credential_list_mapping_api.rs +src/apis/api20100401_auth_calls_ip_access_control_list_mapping_api.rs +src/apis/api20100401_auth_registrations_credential_list_mapping_api.rs +src/apis/api20100401_authorized_connect_app_api.rs +src/apis/api20100401_available_phone_number_country_api.rs +src/apis/api20100401_balance_api.rs +src/apis/api20100401_call_api.rs +src/apis/api20100401_conference_api.rs +src/apis/api20100401_connect_app_api.rs +src/apis/api20100401_credential_api.rs +src/apis/api20100401_credential_list_api.rs +src/apis/api20100401_credential_list_mapping_api.rs +src/apis/api20100401_daily_api.rs +src/apis/api20100401_dependent_phone_number_api.rs +src/apis/api20100401_domain_api.rs +src/apis/api20100401_event_api.rs +src/apis/api20100401_feedback_api.rs +src/apis/api20100401_feedback_summary_api.rs +src/apis/api20100401_incoming_phone_number_api.rs +src/apis/api20100401_ip_access_control_list_api.rs +src/apis/api20100401_ip_access_control_list_mapping_api.rs +src/apis/api20100401_ip_address_api.rs +src/apis/api20100401_key_api.rs +src/apis/api20100401_last_month_api.rs +src/apis/api20100401_local_api.rs +src/apis/api20100401_machine_to_machine_api.rs +src/apis/api20100401_media_api.rs +src/apis/api20100401_member_api.rs +src/apis/api20100401_message_api.rs +src/apis/api20100401_mobile_api.rs +src/apis/api20100401_monthly_api.rs +src/apis/api20100401_national_api.rs +src/apis/api20100401_new_key_api.rs +src/apis/api20100401_new_signing_key_api.rs +src/apis/api20100401_notification_api.rs +src/apis/api20100401_outgoing_caller_id_api.rs +src/apis/api20100401_participant_api.rs +src/apis/api20100401_payload_api.rs +src/apis/api20100401_payment_api.rs +src/apis/api20100401_queue_api.rs +src/apis/api20100401_record_api.rs +src/apis/api20100401_recording_api.rs +src/apis/api20100401_safelist_api.rs +src/apis/api20100401_shared_cost_api.rs +src/apis/api20100401_short_code_api.rs +src/apis/api20100401_signing_key_api.rs +src/apis/api20100401_siprec_api.rs +src/apis/api20100401_stream_api.rs +src/apis/api20100401_this_month_api.rs +src/apis/api20100401_today_api.rs +src/apis/api20100401_token_api.rs +src/apis/api20100401_toll_free_api.rs +src/apis/api20100401_transcription_api.rs +src/apis/api20100401_trigger_api.rs +src/apis/api20100401_user_defined_message_api.rs +src/apis/api20100401_user_defined_message_subscription_api.rs +src/apis/api20100401_validation_request_api.rs +src/apis/api20100401_voip_api.rs +src/apis/api20100401_yearly_api.rs +src/apis/api20100401_yesterday_api.rs +src/apis/configuration.rs +src/apis/mod.rs +src/lib.rs +src/models/account_enum_status.rs +src/models/account_enum_type.rs +src/models/api_period_v2010_period_account.rs +src/models/api_period_v2010_period_account_period_address.rs +src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs +src/models/api_period_v2010_period_account_period_application.rs +src/models/api_period_v2010_period_account_period_authorized_connect_app.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs +src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs +src/models/api_period_v2010_period_account_period_balance.rs +src/models/api_period_v2010_period_account_period_call.rs +src/models/api_period_v2010_period_account_period_call_period_call_event.rs +src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs +src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs +src/models/api_period_v2010_period_account_period_call_period_call_notification.rs +src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs +src/models/api_period_v2010_period_account_period_call_period_call_recording.rs +src/models/api_period_v2010_period_account_period_call_period_payments.rs +src/models/api_period_v2010_period_account_period_call_period_siprec.rs +src/models/api_period_v2010_period_account_period_call_period_stream.rs +src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs +src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs +src/models/api_period_v2010_period_account_period_conference.rs +src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs +src/models/api_period_v2010_period_account_period_conference_period_participant.rs +src/models/api_period_v2010_period_account_period_connect_app.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs +src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs +src/models/api_period_v2010_period_account_period_key.rs +src/models/api_period_v2010_period_account_period_message.rs +src/models/api_period_v2010_period_account_period_message_period_media.rs +src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs +src/models/api_period_v2010_period_account_period_new_key.rs +src/models/api_period_v2010_period_account_period_new_signing_key.rs +src/models/api_period_v2010_period_account_period_notification.rs +src/models/api_period_v2010_period_account_period_notification_instance.rs +src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs +src/models/api_period_v2010_period_account_period_queue.rs +src/models/api_period_v2010_period_account_period_queue_period_member.rs +src/models/api_period_v2010_period_account_period_recording.rs +src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs +src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs +src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs +src/models/api_period_v2010_period_account_period_short_code.rs +src/models/api_period_v2010_period_account_period_signing_key.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs +src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs +src/models/api_period_v2010_period_account_period_token.rs +src/models/api_period_v2010_period_account_period_transcription.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs +src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs +src/models/api_period_v2010_period_account_period_validation_request.rs +src/models/api_period_v2010_period_safelist.rs +src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs +src/models/api_v2010_account_incoming_phone_number_capabilities.rs +src/models/api_v2010_account_token_ice_servers_inner.rs +src/models/authorized_connect_app_enum_permission.rs +src/models/call_enum_event.rs +src/models/call_enum_status.rs +src/models/call_enum_update_status.rs +src/models/call_feedback_enum_issues.rs +src/models/call_feedback_summary_enum_status.rs +src/models/call_recording_enum_source.rs +src/models/call_recording_enum_status.rs +src/models/conference_enum_reason_conference_ended.rs +src/models/conference_enum_status.rs +src/models/conference_enum_update_status.rs +src/models/conference_recording_enum_source.rs +src/models/conference_recording_enum_status.rs +src/models/connect_app_enum_permission.rs +src/models/dependent_phone_number_enum_address_requirement.rs +src/models/dependent_phone_number_enum_emergency_status.rs +src/models/incoming_phone_number_enum_address_requirement.rs +src/models/incoming_phone_number_enum_emergency_address_status.rs +src/models/incoming_phone_number_enum_emergency_status.rs +src/models/incoming_phone_number_enum_voice_receive_mode.rs +src/models/incoming_phone_number_local_enum_address_requirement.rs +src/models/incoming_phone_number_local_enum_emergency_address_status.rs +src/models/incoming_phone_number_local_enum_emergency_status.rs +src/models/incoming_phone_number_local_enum_voice_receive_mode.rs +src/models/incoming_phone_number_mobile_enum_address_requirement.rs +src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs +src/models/incoming_phone_number_mobile_enum_emergency_status.rs +src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs +src/models/incoming_phone_number_toll_free_enum_address_requirement.rs +src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs +src/models/incoming_phone_number_toll_free_enum_emergency_status.rs +src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs +src/models/list_account_response.rs +src/models/list_address_response.rs +src/models/list_application_response.rs +src/models/list_authorized_connect_app_response.rs +src/models/list_available_phone_number_country_response.rs +src/models/list_available_phone_number_local_response.rs +src/models/list_available_phone_number_machine_to_machine_response.rs +src/models/list_available_phone_number_mobile_response.rs +src/models/list_available_phone_number_national_response.rs +src/models/list_available_phone_number_shared_cost_response.rs +src/models/list_available_phone_number_toll_free_response.rs +src/models/list_available_phone_number_voip_response.rs +src/models/list_call_event_response.rs +src/models/list_call_notification_response.rs +src/models/list_call_recording_response.rs +src/models/list_call_response.rs +src/models/list_conference_recording_response.rs +src/models/list_conference_response.rs +src/models/list_connect_app_response.rs +src/models/list_dependent_phone_number_response.rs +src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs +src/models/list_incoming_phone_number_assigned_add_on_response.rs +src/models/list_incoming_phone_number_local_response.rs +src/models/list_incoming_phone_number_mobile_response.rs +src/models/list_incoming_phone_number_response.rs +src/models/list_incoming_phone_number_toll_free_response.rs +src/models/list_key_response.rs +src/models/list_media_response.rs +src/models/list_member_response.rs +src/models/list_message_response.rs +src/models/list_notification_response.rs +src/models/list_outgoing_caller_id_response.rs +src/models/list_participant_response.rs +src/models/list_queue_response.rs +src/models/list_recording_add_on_result_payload_response.rs +src/models/list_recording_add_on_result_response.rs +src/models/list_recording_response.rs +src/models/list_recording_transcription_response.rs +src/models/list_short_code_response.rs +src/models/list_signing_key_response.rs +src/models/list_sip_auth_calls_credential_list_mapping_response.rs +src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs +src/models/list_sip_auth_registrations_credential_list_mapping_response.rs +src/models/list_sip_credential_list_mapping_response.rs +src/models/list_sip_credential_list_response.rs +src/models/list_sip_credential_response.rs +src/models/list_sip_domain_response.rs +src/models/list_sip_ip_access_control_list_mapping_response.rs +src/models/list_sip_ip_access_control_list_response.rs +src/models/list_sip_ip_address_response.rs +src/models/list_transcription_response.rs +src/models/list_usage_record_all_time_response.rs +src/models/list_usage_record_daily_response.rs +src/models/list_usage_record_last_month_response.rs +src/models/list_usage_record_monthly_response.rs +src/models/list_usage_record_response.rs +src/models/list_usage_record_this_month_response.rs +src/models/list_usage_record_today_response.rs +src/models/list_usage_record_yearly_response.rs +src/models/list_usage_record_yesterday_response.rs +src/models/list_usage_trigger_response.rs +src/models/message_enum_address_retention.rs +src/models/message_enum_content_retention.rs +src/models/message_enum_direction.rs +src/models/message_enum_risk_check.rs +src/models/message_enum_schedule_type.rs +src/models/message_enum_status.rs +src/models/message_enum_traffic_type.rs +src/models/message_enum_update_status.rs +src/models/message_feedback_enum_outcome.rs +src/models/mod.rs +src/models/participant_enum_status.rs +src/models/payments_enum_bank_account_type.rs +src/models/payments_enum_capture.rs +src/models/payments_enum_payment_method.rs +src/models/payments_enum_status.rs +src/models/payments_enum_token_type.rs +src/models/recording_add_on_result_enum_status.rs +src/models/recording_enum_source.rs +src/models/recording_enum_status.rs +src/models/recording_transcription_enum_status.rs +src/models/siprec_enum_status.rs +src/models/siprec_enum_track.rs +src/models/siprec_enum_update_status.rs +src/models/stream_enum_status.rs +src/models/stream_enum_track.rs +src/models/stream_enum_update_status.rs +src/models/transcription_enum_status.rs +src/models/usage_record_all_time_enum_category.rs +src/models/usage_record_daily_enum_category.rs +src/models/usage_record_enum_category.rs +src/models/usage_record_last_month_enum_category.rs +src/models/usage_record_monthly_enum_category.rs +src/models/usage_record_this_month_enum_category.rs +src/models/usage_record_today_enum_category.rs +src/models/usage_record_yearly_enum_category.rs +src/models/usage_record_yesterday_enum_category.rs +src/models/usage_trigger_enum_recurring.rs +src/models/usage_trigger_enum_trigger_field.rs +src/models/usage_trigger_enum_usage_category.rs diff --git a/unmnemonic_devices_vrs/twilio-rust/.openapi-generator/VERSION b/unmnemonic_devices_vrs/twilio-rust/.openapi-generator/VERSION new file mode 100644 index 00000000..73a86b19 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.0.1 \ No newline at end of file diff --git a/unmnemonic_devices_vrs/twilio-rust/.travis.yml b/unmnemonic_devices_vrs/twilio-rust/.travis.yml new file mode 100644 index 00000000..22761ba7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/.travis.yml @@ -0,0 +1 @@ +language: rust diff --git a/unmnemonic_devices_vrs/twilio-rust/Cargo.toml b/unmnemonic_devices_vrs/twilio-rust/Cargo.toml new file mode 100644 index 00000000..96d320ba --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "openapi" +version = "1.50.1" +authors = ["support@twilio.com"] +description = "This is the public Twilio REST API." +license = "Apache 2.0" +edition = "2018" + +[dependencies] +serde = "^1.0" +serde_derive = "^1.0" +serde_with = "^2.0" +serde_json = "^1.0" +url = "^2.2" +uuid = { version = "^1.0", features = ["serde", "v4"] } +[dependencies.reqwest] +version = "^0.11" +features = ["json", "multipart"] diff --git a/unmnemonic_devices_vrs/twilio-rust/README.md b/unmnemonic_devices_vrs/twilio-rust/README.md new file mode 100644 index 00000000..f5e6ac07 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/README.md @@ -0,0 +1,459 @@ +# Rust API client for openapi + +This is the public Twilio REST API. + +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Overview + +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. + +- API version: 1.50.1 +- Package version: 1.50.1 +- Build package: `org.openapitools.codegen.languages.RustClientCodegen` + +## Installation + +Put the package under your project folder in a directory named `openapi` and add the following to `Cargo.toml` under `[dependencies]`: + +``` +openapi = { path = "./openapi" } +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.twilio.com* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*Api20100401AccountApi* | [**create_account**](docs/Api20100401AccountApi.md#create_account) | **POST** /2010-04-01/Accounts.json | +*Api20100401AccountApi* | [**fetch_account**](docs/Api20100401AccountApi.md#fetch_account) | **GET** /2010-04-01/Accounts/{Sid}.json | +*Api20100401AccountApi* | [**list_account**](docs/Api20100401AccountApi.md#list_account) | **GET** /2010-04-01/Accounts.json | +*Api20100401AccountApi* | [**update_account**](docs/Api20100401AccountApi.md#update_account) | **POST** /2010-04-01/Accounts/{Sid}.json | +*Api20100401AddOnResultApi* | [**delete_recording_add_on_result**](docs/Api20100401AddOnResultApi.md#delete_recording_add_on_result) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +*Api20100401AddOnResultApi* | [**fetch_recording_add_on_result**](docs/Api20100401AddOnResultApi.md#fetch_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +*Api20100401AddOnResultApi* | [**list_recording_add_on_result**](docs/Api20100401AddOnResultApi.md#list_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json | +*Api20100401AddressApi* | [**create_address**](docs/Api20100401AddressApi.md#create_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +*Api20100401AddressApi* | [**delete_address**](docs/Api20100401AddressApi.md#delete_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*Api20100401AddressApi* | [**fetch_address**](docs/Api20100401AddressApi.md#fetch_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*Api20100401AddressApi* | [**list_address**](docs/Api20100401AddressApi.md#list_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +*Api20100401AddressApi* | [**update_address**](docs/Api20100401AddressApi.md#update_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*Api20100401AllTimeApi* | [**list_usage_record_all_time**](docs/Api20100401AllTimeApi.md#list_usage_record_all_time) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json | +*Api20100401ApplicationApi* | [**create_application**](docs/Api20100401ApplicationApi.md#create_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications.json | +*Api20100401ApplicationApi* | [**delete_application**](docs/Api20100401ApplicationApi.md#delete_application) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*Api20100401ApplicationApi* | [**fetch_application**](docs/Api20100401ApplicationApi.md#fetch_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*Api20100401ApplicationApi* | [**list_application**](docs/Api20100401ApplicationApi.md#list_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications.json | +*Api20100401ApplicationApi* | [**update_application**](docs/Api20100401ApplicationApi.md#update_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*Api20100401AssignedAddOnApi* | [**create_incoming_phone_number_assigned_add_on**](docs/Api20100401AssignedAddOnApi.md#create_incoming_phone_number_assigned_add_on) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +*Api20100401AssignedAddOnApi* | [**delete_incoming_phone_number_assigned_add_on**](docs/Api20100401AssignedAddOnApi.md#delete_incoming_phone_number_assigned_add_on) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +*Api20100401AssignedAddOnApi* | [**fetch_incoming_phone_number_assigned_add_on**](docs/Api20100401AssignedAddOnApi.md#fetch_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +*Api20100401AssignedAddOnApi* | [**list_incoming_phone_number_assigned_add_on**](docs/Api20100401AssignedAddOnApi.md#list_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +*Api20100401AssignedAddOnExtensionApi* | [**fetch_incoming_phone_number_assigned_add_on_extension**](docs/Api20100401AssignedAddOnExtensionApi.md#fetch_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | +*Api20100401AssignedAddOnExtensionApi* | [**list_incoming_phone_number_assigned_add_on_extension**](docs/Api20100401AssignedAddOnExtensionApi.md#list_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | +*Api20100401AuthCallsCredentialListMappingApi* | [**create_sip_auth_calls_credential_list_mapping**](docs/Api20100401AuthCallsCredentialListMappingApi.md#create_sip_auth_calls_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +*Api20100401AuthCallsCredentialListMappingApi* | [**delete_sip_auth_calls_credential_list_mapping**](docs/Api20100401AuthCallsCredentialListMappingApi.md#delete_sip_auth_calls_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +*Api20100401AuthCallsCredentialListMappingApi* | [**fetch_sip_auth_calls_credential_list_mapping**](docs/Api20100401AuthCallsCredentialListMappingApi.md#fetch_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +*Api20100401AuthCallsCredentialListMappingApi* | [**list_sip_auth_calls_credential_list_mapping**](docs/Api20100401AuthCallsCredentialListMappingApi.md#list_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +*Api20100401AuthCallsIpAccessControlListMappingApi* | [**create_sip_auth_calls_ip_access_control_list_mapping**](docs/Api20100401AuthCallsIpAccessControlListMappingApi.md#create_sip_auth_calls_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +*Api20100401AuthCallsIpAccessControlListMappingApi* | [**delete_sip_auth_calls_ip_access_control_list_mapping**](docs/Api20100401AuthCallsIpAccessControlListMappingApi.md#delete_sip_auth_calls_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +*Api20100401AuthCallsIpAccessControlListMappingApi* | [**fetch_sip_auth_calls_ip_access_control_list_mapping**](docs/Api20100401AuthCallsIpAccessControlListMappingApi.md#fetch_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +*Api20100401AuthCallsIpAccessControlListMappingApi* | [**list_sip_auth_calls_ip_access_control_list_mapping**](docs/Api20100401AuthCallsIpAccessControlListMappingApi.md#list_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +*Api20100401AuthRegistrationsCredentialListMappingApi* | [**create_sip_auth_registrations_credential_list_mapping**](docs/Api20100401AuthRegistrationsCredentialListMappingApi.md#create_sip_auth_registrations_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +*Api20100401AuthRegistrationsCredentialListMappingApi* | [**delete_sip_auth_registrations_credential_list_mapping**](docs/Api20100401AuthRegistrationsCredentialListMappingApi.md#delete_sip_auth_registrations_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +*Api20100401AuthRegistrationsCredentialListMappingApi* | [**fetch_sip_auth_registrations_credential_list_mapping**](docs/Api20100401AuthRegistrationsCredentialListMappingApi.md#fetch_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +*Api20100401AuthRegistrationsCredentialListMappingApi* | [**list_sip_auth_registrations_credential_list_mapping**](docs/Api20100401AuthRegistrationsCredentialListMappingApi.md#list_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +*Api20100401AuthorizedConnectAppApi* | [**fetch_authorized_connect_app**](docs/Api20100401AuthorizedConnectAppApi.md#fetch_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | +*Api20100401AuthorizedConnectAppApi* | [**list_authorized_connect_app**](docs/Api20100401AuthorizedConnectAppApi.md#list_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | +*Api20100401AvailablePhoneNumberCountryApi* | [**fetch_available_phone_number_country**](docs/Api20100401AvailablePhoneNumberCountryApi.md#fetch_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | +*Api20100401AvailablePhoneNumberCountryApi* | [**list_available_phone_number_country**](docs/Api20100401AvailablePhoneNumberCountryApi.md#list_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | +*Api20100401BalanceApi* | [**fetch_balance**](docs/Api20100401BalanceApi.md#fetch_balance) | **GET** /2010-04-01/Accounts/{AccountSid}/Balance.json | +*Api20100401CallApi* | [**create_call**](docs/Api20100401CallApi.md#create_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls.json | +*Api20100401CallApi* | [**delete_call**](docs/Api20100401CallApi.md#delete_call) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*Api20100401CallApi* | [**fetch_call**](docs/Api20100401CallApi.md#fetch_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*Api20100401CallApi* | [**list_call**](docs/Api20100401CallApi.md#list_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls.json | +*Api20100401CallApi* | [**update_call**](docs/Api20100401CallApi.md#update_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*Api20100401ConferenceApi* | [**fetch_conference**](docs/Api20100401ConferenceApi.md#fetch_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +*Api20100401ConferenceApi* | [**list_conference**](docs/Api20100401ConferenceApi.md#list_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences.json | +*Api20100401ConferenceApi* | [**update_conference**](docs/Api20100401ConferenceApi.md#update_conference) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +*Api20100401ConnectAppApi* | [**delete_connect_app**](docs/Api20100401ConnectAppApi.md#delete_connect_app) | **DELETE** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*Api20100401ConnectAppApi* | [**fetch_connect_app**](docs/Api20100401ConnectAppApi.md#fetch_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*Api20100401ConnectAppApi* | [**list_connect_app**](docs/Api20100401ConnectAppApi.md#list_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | +*Api20100401ConnectAppApi* | [**update_connect_app**](docs/Api20100401ConnectAppApi.md#update_connect_app) | **POST** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*Api20100401CredentialApi* | [**create_sip_credential**](docs/Api20100401CredentialApi.md#create_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +*Api20100401CredentialApi* | [**delete_sip_credential**](docs/Api20100401CredentialApi.md#delete_sip_credential) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*Api20100401CredentialApi* | [**fetch_sip_credential**](docs/Api20100401CredentialApi.md#fetch_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*Api20100401CredentialApi* | [**list_sip_credential**](docs/Api20100401CredentialApi.md#list_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +*Api20100401CredentialApi* | [**update_sip_credential**](docs/Api20100401CredentialApi.md#update_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*Api20100401CredentialListApi* | [**create_sip_credential_list**](docs/Api20100401CredentialListApi.md#create_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +*Api20100401CredentialListApi* | [**delete_sip_credential_list**](docs/Api20100401CredentialListApi.md#delete_sip_credential_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*Api20100401CredentialListApi* | [**fetch_sip_credential_list**](docs/Api20100401CredentialListApi.md#fetch_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*Api20100401CredentialListApi* | [**list_sip_credential_list**](docs/Api20100401CredentialListApi.md#list_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +*Api20100401CredentialListApi* | [**update_sip_credential_list**](docs/Api20100401CredentialListApi.md#update_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*Api20100401CredentialListMappingApi* | [**create_sip_credential_list_mapping**](docs/Api20100401CredentialListMappingApi.md#create_sip_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +*Api20100401CredentialListMappingApi* | [**delete_sip_credential_list_mapping**](docs/Api20100401CredentialListMappingApi.md#delete_sip_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +*Api20100401CredentialListMappingApi* | [**fetch_sip_credential_list_mapping**](docs/Api20100401CredentialListMappingApi.md#fetch_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +*Api20100401CredentialListMappingApi* | [**list_sip_credential_list_mapping**](docs/Api20100401CredentialListMappingApi.md#list_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +*Api20100401DailyApi* | [**list_usage_record_daily**](docs/Api20100401DailyApi.md#list_usage_record_daily) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json | +*Api20100401DependentPhoneNumberApi* | [**list_dependent_phone_number**](docs/Api20100401DependentPhoneNumberApi.md#list_dependent_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | +*Api20100401DomainApi* | [**create_sip_domain**](docs/Api20100401DomainApi.md#create_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +*Api20100401DomainApi* | [**delete_sip_domain**](docs/Api20100401DomainApi.md#delete_sip_domain) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*Api20100401DomainApi* | [**fetch_sip_domain**](docs/Api20100401DomainApi.md#fetch_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*Api20100401DomainApi* | [**list_sip_domain**](docs/Api20100401DomainApi.md#list_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +*Api20100401DomainApi* | [**update_sip_domain**](docs/Api20100401DomainApi.md#update_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*Api20100401EventApi* | [**list_call_event**](docs/Api20100401EventApi.md#list_call_event) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | +*Api20100401FeedbackApi* | [**create_message_feedback**](docs/Api20100401FeedbackApi.md#create_message_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | +*Api20100401FeedbackApi* | [**fetch_call_feedback**](docs/Api20100401FeedbackApi.md#fetch_call_feedback) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +*Api20100401FeedbackApi* | [**update_call_feedback**](docs/Api20100401FeedbackApi.md#update_call_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +*Api20100401FeedbackSummaryApi* | [**create_call_feedback_summary**](docs/Api20100401FeedbackSummaryApi.md#create_call_feedback_summary) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | +*Api20100401FeedbackSummaryApi* | [**delete_call_feedback_summary**](docs/Api20100401FeedbackSummaryApi.md#delete_call_feedback_summary) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +*Api20100401FeedbackSummaryApi* | [**fetch_call_feedback_summary**](docs/Api20100401FeedbackSummaryApi.md#fetch_call_feedback_summary) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +*Api20100401IncomingPhoneNumberApi* | [**create_incoming_phone_number**](docs/Api20100401IncomingPhoneNumberApi.md#create_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +*Api20100401IncomingPhoneNumberApi* | [**delete_incoming_phone_number**](docs/Api20100401IncomingPhoneNumberApi.md#delete_incoming_phone_number) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*Api20100401IncomingPhoneNumberApi* | [**fetch_incoming_phone_number**](docs/Api20100401IncomingPhoneNumberApi.md#fetch_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*Api20100401IncomingPhoneNumberApi* | [**list_incoming_phone_number**](docs/Api20100401IncomingPhoneNumberApi.md#list_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +*Api20100401IncomingPhoneNumberApi* | [**update_incoming_phone_number**](docs/Api20100401IncomingPhoneNumberApi.md#update_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*Api20100401IpAccessControlListApi* | [**create_sip_ip_access_control_list**](docs/Api20100401IpAccessControlListApi.md#create_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +*Api20100401IpAccessControlListApi* | [**delete_sip_ip_access_control_list**](docs/Api20100401IpAccessControlListApi.md#delete_sip_ip_access_control_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*Api20100401IpAccessControlListApi* | [**fetch_sip_ip_access_control_list**](docs/Api20100401IpAccessControlListApi.md#fetch_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*Api20100401IpAccessControlListApi* | [**list_sip_ip_access_control_list**](docs/Api20100401IpAccessControlListApi.md#list_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +*Api20100401IpAccessControlListApi* | [**update_sip_ip_access_control_list**](docs/Api20100401IpAccessControlListApi.md#update_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*Api20100401IpAccessControlListMappingApi* | [**create_sip_ip_access_control_list_mapping**](docs/Api20100401IpAccessControlListMappingApi.md#create_sip_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +*Api20100401IpAccessControlListMappingApi* | [**delete_sip_ip_access_control_list_mapping**](docs/Api20100401IpAccessControlListMappingApi.md#delete_sip_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +*Api20100401IpAccessControlListMappingApi* | [**fetch_sip_ip_access_control_list_mapping**](docs/Api20100401IpAccessControlListMappingApi.md#fetch_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +*Api20100401IpAccessControlListMappingApi* | [**list_sip_ip_access_control_list_mapping**](docs/Api20100401IpAccessControlListMappingApi.md#list_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +*Api20100401IpAddressApi* | [**create_sip_ip_address**](docs/Api20100401IpAddressApi.md#create_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +*Api20100401IpAddressApi* | [**delete_sip_ip_address**](docs/Api20100401IpAddressApi.md#delete_sip_ip_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*Api20100401IpAddressApi* | [**fetch_sip_ip_address**](docs/Api20100401IpAddressApi.md#fetch_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*Api20100401IpAddressApi* | [**list_sip_ip_address**](docs/Api20100401IpAddressApi.md#list_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +*Api20100401IpAddressApi* | [**update_sip_ip_address**](docs/Api20100401IpAddressApi.md#update_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*Api20100401KeyApi* | [**delete_key**](docs/Api20100401KeyApi.md#delete_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*Api20100401KeyApi* | [**fetch_key**](docs/Api20100401KeyApi.md#fetch_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*Api20100401KeyApi* | [**list_key**](docs/Api20100401KeyApi.md#list_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys.json | +*Api20100401KeyApi* | [**update_key**](docs/Api20100401KeyApi.md#update_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*Api20100401LastMonthApi* | [**list_usage_record_last_month**](docs/Api20100401LastMonthApi.md#list_usage_record_last_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json | +*Api20100401LocalApi* | [**create_incoming_phone_number_local**](docs/Api20100401LocalApi.md#create_incoming_phone_number_local) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +*Api20100401LocalApi* | [**list_available_phone_number_local**](docs/Api20100401LocalApi.md#list_available_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | +*Api20100401LocalApi* | [**list_incoming_phone_number_local**](docs/Api20100401LocalApi.md#list_incoming_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +*Api20100401MachineToMachineApi* | [**list_available_phone_number_machine_to_machine**](docs/Api20100401MachineToMachineApi.md#list_available_phone_number_machine_to_machine) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | +*Api20100401MediaApi* | [**delete_media**](docs/Api20100401MediaApi.md#delete_media) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +*Api20100401MediaApi* | [**fetch_media**](docs/Api20100401MediaApi.md#fetch_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +*Api20100401MediaApi* | [**list_media**](docs/Api20100401MediaApi.md#list_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | +*Api20100401MemberApi* | [**fetch_member**](docs/Api20100401MemberApi.md#fetch_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +*Api20100401MemberApi* | [**list_member**](docs/Api20100401MemberApi.md#list_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json | +*Api20100401MemberApi* | [**update_member**](docs/Api20100401MemberApi.md#update_member) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +*Api20100401MessageApi* | [**create_message**](docs/Api20100401MessageApi.md#create_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages.json | +*Api20100401MessageApi* | [**delete_message**](docs/Api20100401MessageApi.md#delete_message) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*Api20100401MessageApi* | [**fetch_message**](docs/Api20100401MessageApi.md#fetch_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*Api20100401MessageApi* | [**list_message**](docs/Api20100401MessageApi.md#list_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages.json | +*Api20100401MessageApi* | [**update_message**](docs/Api20100401MessageApi.md#update_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*Api20100401MobileApi* | [**create_incoming_phone_number_mobile**](docs/Api20100401MobileApi.md#create_incoming_phone_number_mobile) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +*Api20100401MobileApi* | [**list_available_phone_number_mobile**](docs/Api20100401MobileApi.md#list_available_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | +*Api20100401MobileApi* | [**list_incoming_phone_number_mobile**](docs/Api20100401MobileApi.md#list_incoming_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +*Api20100401MonthlyApi* | [**list_usage_record_monthly**](docs/Api20100401MonthlyApi.md#list_usage_record_monthly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json | +*Api20100401NationalApi* | [**list_available_phone_number_national**](docs/Api20100401NationalApi.md#list_available_phone_number_national) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | +*Api20100401NewKeyApi* | [**create_new_key**](docs/Api20100401NewKeyApi.md#create_new_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys.json | +*Api20100401NewSigningKeyApi* | [**create_new_signing_key**](docs/Api20100401NewSigningKeyApi.md#create_new_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +*Api20100401NotificationApi* | [**fetch_call_notification**](docs/Api20100401NotificationApi.md#fetch_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | +*Api20100401NotificationApi* | [**fetch_notification**](docs/Api20100401NotificationApi.md#fetch_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | +*Api20100401NotificationApi* | [**list_call_notification**](docs/Api20100401NotificationApi.md#list_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | +*Api20100401NotificationApi* | [**list_notification**](docs/Api20100401NotificationApi.md#list_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications.json | +*Api20100401OutgoingCallerIdApi* | [**delete_outgoing_caller_id**](docs/Api20100401OutgoingCallerIdApi.md#delete_outgoing_caller_id) | **DELETE** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*Api20100401OutgoingCallerIdApi* | [**fetch_outgoing_caller_id**](docs/Api20100401OutgoingCallerIdApi.md#fetch_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*Api20100401OutgoingCallerIdApi* | [**list_outgoing_caller_id**](docs/Api20100401OutgoingCallerIdApi.md#list_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +*Api20100401OutgoingCallerIdApi* | [**update_outgoing_caller_id**](docs/Api20100401OutgoingCallerIdApi.md#update_outgoing_caller_id) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*Api20100401ParticipantApi* | [**create_participant**](docs/Api20100401ParticipantApi.md#create_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +*Api20100401ParticipantApi* | [**delete_participant**](docs/Api20100401ParticipantApi.md#delete_participant) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*Api20100401ParticipantApi* | [**fetch_participant**](docs/Api20100401ParticipantApi.md#fetch_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*Api20100401ParticipantApi* | [**list_participant**](docs/Api20100401ParticipantApi.md#list_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +*Api20100401ParticipantApi* | [**update_participant**](docs/Api20100401ParticipantApi.md#update_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*Api20100401PayloadApi* | [**delete_recording_add_on_result_payload**](docs/Api20100401PayloadApi.md#delete_recording_add_on_result_payload) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +*Api20100401PayloadApi* | [**fetch_recording_add_on_result_payload**](docs/Api20100401PayloadApi.md#fetch_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +*Api20100401PayloadApi* | [**list_recording_add_on_result_payload**](docs/Api20100401PayloadApi.md#list_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json | +*Api20100401PaymentApi* | [**create_payments**](docs/Api20100401PaymentApi.md#create_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | +*Api20100401PaymentApi* | [**update_payments**](docs/Api20100401PaymentApi.md#update_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | +*Api20100401QueueApi* | [**create_queue**](docs/Api20100401QueueApi.md#create_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues.json | +*Api20100401QueueApi* | [**delete_queue**](docs/Api20100401QueueApi.md#delete_queue) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*Api20100401QueueApi* | [**fetch_queue**](docs/Api20100401QueueApi.md#fetch_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*Api20100401QueueApi* | [**list_queue**](docs/Api20100401QueueApi.md#list_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues.json | +*Api20100401QueueApi* | [**update_queue**](docs/Api20100401QueueApi.md#update_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*Api20100401RecordApi* | [**list_usage_record**](docs/Api20100401RecordApi.md#list_usage_record) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records.json | +*Api20100401RecordingApi* | [**create_call_recording**](docs/Api20100401RecordingApi.md#create_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +*Api20100401RecordingApi* | [**delete_call_recording**](docs/Api20100401RecordingApi.md#delete_call_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**delete_conference_recording**](docs/Api20100401RecordingApi.md#delete_conference_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**delete_recording**](docs/Api20100401RecordingApi.md#delete_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**fetch_call_recording**](docs/Api20100401RecordingApi.md#fetch_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**fetch_conference_recording**](docs/Api20100401RecordingApi.md#fetch_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**fetch_recording**](docs/Api20100401RecordingApi.md#fetch_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**list_call_recording**](docs/Api20100401RecordingApi.md#list_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +*Api20100401RecordingApi* | [**list_conference_recording**](docs/Api20100401RecordingApi.md#list_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | +*Api20100401RecordingApi* | [**list_recording**](docs/Api20100401RecordingApi.md#list_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings.json | +*Api20100401RecordingApi* | [**update_call_recording**](docs/Api20100401RecordingApi.md#update_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*Api20100401RecordingApi* | [**update_conference_recording**](docs/Api20100401RecordingApi.md#update_conference_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*Api20100401SafelistApi* | [**create_safelist**](docs/Api20100401SafelistApi.md#create_safelist) | **POST** /2010-04-01/SafeList/Numbers.json | +*Api20100401SafelistApi* | [**delete_safelist**](docs/Api20100401SafelistApi.md#delete_safelist) | **DELETE** /2010-04-01/SafeList/Numbers.json | +*Api20100401SafelistApi* | [**fetch_safelist**](docs/Api20100401SafelistApi.md#fetch_safelist) | **GET** /2010-04-01/SafeList/Numbers.json | +*Api20100401SharedCostApi* | [**list_available_phone_number_shared_cost**](docs/Api20100401SharedCostApi.md#list_available_phone_number_shared_cost) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | +*Api20100401ShortCodeApi* | [**fetch_short_code**](docs/Api20100401ShortCodeApi.md#fetch_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +*Api20100401ShortCodeApi* | [**list_short_code**](docs/Api20100401ShortCodeApi.md#list_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json | +*Api20100401ShortCodeApi* | [**update_short_code**](docs/Api20100401ShortCodeApi.md#update_short_code) | **POST** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +*Api20100401SigningKeyApi* | [**delete_signing_key**](docs/Api20100401SigningKeyApi.md#delete_signing_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*Api20100401SigningKeyApi* | [**fetch_signing_key**](docs/Api20100401SigningKeyApi.md#fetch_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*Api20100401SigningKeyApi* | [**list_signing_key**](docs/Api20100401SigningKeyApi.md#list_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +*Api20100401SigningKeyApi* | [**update_signing_key**](docs/Api20100401SigningKeyApi.md#update_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*Api20100401SiprecApi* | [**create_siprec**](docs/Api20100401SiprecApi.md#create_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json | +*Api20100401SiprecApi* | [**update_siprec**](docs/Api20100401SiprecApi.md#update_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json | +*Api20100401StreamApi* | [**create_stream**](docs/Api20100401StreamApi.md#create_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json | +*Api20100401StreamApi* | [**update_stream**](docs/Api20100401StreamApi.md#update_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json | +*Api20100401ThisMonthApi* | [**list_usage_record_this_month**](docs/Api20100401ThisMonthApi.md#list_usage_record_this_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json | +*Api20100401TodayApi* | [**list_usage_record_today**](docs/Api20100401TodayApi.md#list_usage_record_today) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json | +*Api20100401TokenApi* | [**create_token**](docs/Api20100401TokenApi.md#create_token) | **POST** /2010-04-01/Accounts/{AccountSid}/Tokens.json | +*Api20100401TollFreeApi* | [**create_incoming_phone_number_toll_free**](docs/Api20100401TollFreeApi.md#create_incoming_phone_number_toll_free) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +*Api20100401TollFreeApi* | [**list_available_phone_number_toll_free**](docs/Api20100401TollFreeApi.md#list_available_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | +*Api20100401TollFreeApi* | [**list_incoming_phone_number_toll_free**](docs/Api20100401TollFreeApi.md#list_incoming_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +*Api20100401TranscriptionApi* | [**delete_recording_transcription**](docs/Api20100401TranscriptionApi.md#delete_recording_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +*Api20100401TranscriptionApi* | [**delete_transcription**](docs/Api20100401TranscriptionApi.md#delete_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +*Api20100401TranscriptionApi* | [**fetch_recording_transcription**](docs/Api20100401TranscriptionApi.md#fetch_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +*Api20100401TranscriptionApi* | [**fetch_transcription**](docs/Api20100401TranscriptionApi.md#fetch_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +*Api20100401TranscriptionApi* | [**list_recording_transcription**](docs/Api20100401TranscriptionApi.md#list_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json | +*Api20100401TranscriptionApi* | [**list_transcription**](docs/Api20100401TranscriptionApi.md#list_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions.json | +*Api20100401TriggerApi* | [**create_usage_trigger**](docs/Api20100401TriggerApi.md#create_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +*Api20100401TriggerApi* | [**delete_usage_trigger**](docs/Api20100401TriggerApi.md#delete_usage_trigger) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*Api20100401TriggerApi* | [**fetch_usage_trigger**](docs/Api20100401TriggerApi.md#fetch_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*Api20100401TriggerApi* | [**list_usage_trigger**](docs/Api20100401TriggerApi.md#list_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +*Api20100401TriggerApi* | [**update_usage_trigger**](docs/Api20100401TriggerApi.md#update_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*Api20100401UserDefinedMessageApi* | [**create_user_defined_message**](docs/Api20100401UserDefinedMessageApi.md#create_user_defined_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | +*Api20100401UserDefinedMessageSubscriptionApi* | [**create_user_defined_message_subscription**](docs/Api20100401UserDefinedMessageSubscriptionApi.md#create_user_defined_message_subscription) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | +*Api20100401UserDefinedMessageSubscriptionApi* | [**delete_user_defined_message_subscription**](docs/Api20100401UserDefinedMessageSubscriptionApi.md#delete_user_defined_message_subscription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | +*Api20100401ValidationRequestApi* | [**create_validation_request**](docs/Api20100401ValidationRequestApi.md#create_validation_request) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +*Api20100401VoipApi* | [**list_available_phone_number_voip**](docs/Api20100401VoipApi.md#list_available_phone_number_voip) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | +*Api20100401YearlyApi* | [**list_usage_record_yearly**](docs/Api20100401YearlyApi.md#list_usage_record_yearly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json | +*Api20100401YesterdayApi* | [**list_usage_record_yesterday**](docs/Api20100401YesterdayApi.md#list_usage_record_yesterday) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json | + + +## Documentation For Models + + - [AccountEnumStatus](docs/AccountEnumStatus.md) + - [AccountEnumType](docs/AccountEnumType.md) + - [ApiPeriodV2010PeriodAccount](docs/ApiPeriodV2010PeriodAccount.md) + - [ApiPeriodV2010PeriodAccountPeriodAddress](docs/ApiPeriodV2010PeriodAccountPeriodAddress.md) + - [ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber](docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md) + - [ApiPeriodV2010PeriodAccountPeriodApplication](docs/ApiPeriodV2010PeriodAccountPeriodApplication.md) + - [ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp](docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md) + - [ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip](docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md) + - [ApiPeriodV2010PeriodAccountPeriodBalance](docs/ApiPeriodV2010PeriodAccountPeriodBalance.md) + - [ApiPeriodV2010PeriodAccountPeriodCall](docs/ApiPeriodV2010PeriodAccountPeriodCall.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodStream](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md) + - [ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription](docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md) + - [ApiPeriodV2010PeriodAccountPeriodConference](docs/ApiPeriodV2010PeriodAccountPeriodConference.md) + - [ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording](docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md) + - [ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant](docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md) + - [ApiPeriodV2010PeriodAccountPeriodConnectApp](docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md) + - [ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree](docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md) + - [ApiPeriodV2010PeriodAccountPeriodKey](docs/ApiPeriodV2010PeriodAccountPeriodKey.md) + - [ApiPeriodV2010PeriodAccountPeriodMessage](docs/ApiPeriodV2010PeriodAccountPeriodMessage.md) + - [ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia](docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md) + - [ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback](docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md) + - [ApiPeriodV2010PeriodAccountPeriodNewKey](docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md) + - [ApiPeriodV2010PeriodAccountPeriodNewSigningKey](docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md) + - [ApiPeriodV2010PeriodAccountPeriodNotification](docs/ApiPeriodV2010PeriodAccountPeriodNotification.md) + - [ApiPeriodV2010PeriodAccountPeriodNotificationInstance](docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md) + - [ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId](docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md) + - [ApiPeriodV2010PeriodAccountPeriodQueue](docs/ApiPeriodV2010PeriodAccountPeriodQueue.md) + - [ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember](docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md) + - [ApiPeriodV2010PeriodAccountPeriodRecording](docs/ApiPeriodV2010PeriodAccountPeriodRecording.md) + - [ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult](docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md) + - [ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload](docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md) + - [ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription](docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md) + - [ApiPeriodV2010PeriodAccountPeriodShortCode](docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md) + - [ApiPeriodV2010PeriodAccountPeriodSigningKey](docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md) + - [ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress](docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md) + - [ApiPeriodV2010PeriodAccountPeriodToken](docs/ApiPeriodV2010PeriodAccountPeriodToken.md) + - [ApiPeriodV2010PeriodAccountPeriodTranscription](docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md) + - [ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger](docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md) + - [ApiPeriodV2010PeriodAccountPeriodValidationRequest](docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md) + - [ApiPeriodV2010PeriodSafelist](docs/ApiPeriodV2010PeriodSafelist.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md) + - [ApiV2010AccountIncomingPhoneNumberCapabilities](docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md) + - [ApiV2010AccountTokenIceServersInner](docs/ApiV2010AccountTokenIceServersInner.md) + - [AuthorizedConnectAppEnumPermission](docs/AuthorizedConnectAppEnumPermission.md) + - [CallEnumEvent](docs/CallEnumEvent.md) + - [CallEnumStatus](docs/CallEnumStatus.md) + - [CallEnumUpdateStatus](docs/CallEnumUpdateStatus.md) + - [CallFeedbackEnumIssues](docs/CallFeedbackEnumIssues.md) + - [CallFeedbackSummaryEnumStatus](docs/CallFeedbackSummaryEnumStatus.md) + - [CallRecordingEnumSource](docs/CallRecordingEnumSource.md) + - [CallRecordingEnumStatus](docs/CallRecordingEnumStatus.md) + - [ConferenceEnumReasonConferenceEnded](docs/ConferenceEnumReasonConferenceEnded.md) + - [ConferenceEnumStatus](docs/ConferenceEnumStatus.md) + - [ConferenceEnumUpdateStatus](docs/ConferenceEnumUpdateStatus.md) + - [ConferenceRecordingEnumSource](docs/ConferenceRecordingEnumSource.md) + - [ConferenceRecordingEnumStatus](docs/ConferenceRecordingEnumStatus.md) + - [ConnectAppEnumPermission](docs/ConnectAppEnumPermission.md) + - [DependentPhoneNumberEnumAddressRequirement](docs/DependentPhoneNumberEnumAddressRequirement.md) + - [DependentPhoneNumberEnumEmergencyStatus](docs/DependentPhoneNumberEnumEmergencyStatus.md) + - [IncomingPhoneNumberEnumAddressRequirement](docs/IncomingPhoneNumberEnumAddressRequirement.md) + - [IncomingPhoneNumberEnumEmergencyAddressStatus](docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberEnumEmergencyStatus](docs/IncomingPhoneNumberEnumEmergencyStatus.md) + - [IncomingPhoneNumberEnumVoiceReceiveMode](docs/IncomingPhoneNumberEnumVoiceReceiveMode.md) + - [IncomingPhoneNumberLocalEnumAddressRequirement](docs/IncomingPhoneNumberLocalEnumAddressRequirement.md) + - [IncomingPhoneNumberLocalEnumEmergencyAddressStatus](docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberLocalEnumEmergencyStatus](docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md) + - [IncomingPhoneNumberLocalEnumVoiceReceiveMode](docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md) + - [IncomingPhoneNumberMobileEnumAddressRequirement](docs/IncomingPhoneNumberMobileEnumAddressRequirement.md) + - [IncomingPhoneNumberMobileEnumEmergencyAddressStatus](docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberMobileEnumEmergencyStatus](docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md) + - [IncomingPhoneNumberMobileEnumVoiceReceiveMode](docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md) + - [IncomingPhoneNumberTollFreeEnumAddressRequirement](docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md) + - [IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus](docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md) + - [IncomingPhoneNumberTollFreeEnumEmergencyStatus](docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md) + - [IncomingPhoneNumberTollFreeEnumVoiceReceiveMode](docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md) + - [ListAccountResponse](docs/ListAccountResponse.md) + - [ListAddressResponse](docs/ListAddressResponse.md) + - [ListApplicationResponse](docs/ListApplicationResponse.md) + - [ListAuthorizedConnectAppResponse](docs/ListAuthorizedConnectAppResponse.md) + - [ListAvailablePhoneNumberCountryResponse](docs/ListAvailablePhoneNumberCountryResponse.md) + - [ListAvailablePhoneNumberLocalResponse](docs/ListAvailablePhoneNumberLocalResponse.md) + - [ListAvailablePhoneNumberMachineToMachineResponse](docs/ListAvailablePhoneNumberMachineToMachineResponse.md) + - [ListAvailablePhoneNumberMobileResponse](docs/ListAvailablePhoneNumberMobileResponse.md) + - [ListAvailablePhoneNumberNationalResponse](docs/ListAvailablePhoneNumberNationalResponse.md) + - [ListAvailablePhoneNumberSharedCostResponse](docs/ListAvailablePhoneNumberSharedCostResponse.md) + - [ListAvailablePhoneNumberTollFreeResponse](docs/ListAvailablePhoneNumberTollFreeResponse.md) + - [ListAvailablePhoneNumberVoipResponse](docs/ListAvailablePhoneNumberVoipResponse.md) + - [ListCallEventResponse](docs/ListCallEventResponse.md) + - [ListCallNotificationResponse](docs/ListCallNotificationResponse.md) + - [ListCallRecordingResponse](docs/ListCallRecordingResponse.md) + - [ListCallResponse](docs/ListCallResponse.md) + - [ListConferenceRecordingResponse](docs/ListConferenceRecordingResponse.md) + - [ListConferenceResponse](docs/ListConferenceResponse.md) + - [ListConnectAppResponse](docs/ListConnectAppResponse.md) + - [ListDependentPhoneNumberResponse](docs/ListDependentPhoneNumberResponse.md) + - [ListIncomingPhoneNumberAssignedAddOnExtensionResponse](docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) + - [ListIncomingPhoneNumberAssignedAddOnResponse](docs/ListIncomingPhoneNumberAssignedAddOnResponse.md) + - [ListIncomingPhoneNumberLocalResponse](docs/ListIncomingPhoneNumberLocalResponse.md) + - [ListIncomingPhoneNumberMobileResponse](docs/ListIncomingPhoneNumberMobileResponse.md) + - [ListIncomingPhoneNumberResponse](docs/ListIncomingPhoneNumberResponse.md) + - [ListIncomingPhoneNumberTollFreeResponse](docs/ListIncomingPhoneNumberTollFreeResponse.md) + - [ListKeyResponse](docs/ListKeyResponse.md) + - [ListMediaResponse](docs/ListMediaResponse.md) + - [ListMemberResponse](docs/ListMemberResponse.md) + - [ListMessageResponse](docs/ListMessageResponse.md) + - [ListNotificationResponse](docs/ListNotificationResponse.md) + - [ListOutgoingCallerIdResponse](docs/ListOutgoingCallerIdResponse.md) + - [ListParticipantResponse](docs/ListParticipantResponse.md) + - [ListQueueResponse](docs/ListQueueResponse.md) + - [ListRecordingAddOnResultPayloadResponse](docs/ListRecordingAddOnResultPayloadResponse.md) + - [ListRecordingAddOnResultResponse](docs/ListRecordingAddOnResultResponse.md) + - [ListRecordingResponse](docs/ListRecordingResponse.md) + - [ListRecordingTranscriptionResponse](docs/ListRecordingTranscriptionResponse.md) + - [ListShortCodeResponse](docs/ListShortCodeResponse.md) + - [ListSigningKeyResponse](docs/ListSigningKeyResponse.md) + - [ListSipAuthCallsCredentialListMappingResponse](docs/ListSipAuthCallsCredentialListMappingResponse.md) + - [ListSipAuthCallsIpAccessControlListMappingResponse](docs/ListSipAuthCallsIpAccessControlListMappingResponse.md) + - [ListSipAuthRegistrationsCredentialListMappingResponse](docs/ListSipAuthRegistrationsCredentialListMappingResponse.md) + - [ListSipCredentialListMappingResponse](docs/ListSipCredentialListMappingResponse.md) + - [ListSipCredentialListResponse](docs/ListSipCredentialListResponse.md) + - [ListSipCredentialResponse](docs/ListSipCredentialResponse.md) + - [ListSipDomainResponse](docs/ListSipDomainResponse.md) + - [ListSipIpAccessControlListMappingResponse](docs/ListSipIpAccessControlListMappingResponse.md) + - [ListSipIpAccessControlListResponse](docs/ListSipIpAccessControlListResponse.md) + - [ListSipIpAddressResponse](docs/ListSipIpAddressResponse.md) + - [ListTranscriptionResponse](docs/ListTranscriptionResponse.md) + - [ListUsageRecordAllTimeResponse](docs/ListUsageRecordAllTimeResponse.md) + - [ListUsageRecordDailyResponse](docs/ListUsageRecordDailyResponse.md) + - [ListUsageRecordLastMonthResponse](docs/ListUsageRecordLastMonthResponse.md) + - [ListUsageRecordMonthlyResponse](docs/ListUsageRecordMonthlyResponse.md) + - [ListUsageRecordResponse](docs/ListUsageRecordResponse.md) + - [ListUsageRecordThisMonthResponse](docs/ListUsageRecordThisMonthResponse.md) + - [ListUsageRecordTodayResponse](docs/ListUsageRecordTodayResponse.md) + - [ListUsageRecordYearlyResponse](docs/ListUsageRecordYearlyResponse.md) + - [ListUsageRecordYesterdayResponse](docs/ListUsageRecordYesterdayResponse.md) + - [ListUsageTriggerResponse](docs/ListUsageTriggerResponse.md) + - [MessageEnumAddressRetention](docs/MessageEnumAddressRetention.md) + - [MessageEnumContentRetention](docs/MessageEnumContentRetention.md) + - [MessageEnumDirection](docs/MessageEnumDirection.md) + - [MessageEnumRiskCheck](docs/MessageEnumRiskCheck.md) + - [MessageEnumScheduleType](docs/MessageEnumScheduleType.md) + - [MessageEnumStatus](docs/MessageEnumStatus.md) + - [MessageEnumTrafficType](docs/MessageEnumTrafficType.md) + - [MessageEnumUpdateStatus](docs/MessageEnumUpdateStatus.md) + - [MessageFeedbackEnumOutcome](docs/MessageFeedbackEnumOutcome.md) + - [ParticipantEnumStatus](docs/ParticipantEnumStatus.md) + - [PaymentsEnumBankAccountType](docs/PaymentsEnumBankAccountType.md) + - [PaymentsEnumCapture](docs/PaymentsEnumCapture.md) + - [PaymentsEnumPaymentMethod](docs/PaymentsEnumPaymentMethod.md) + - [PaymentsEnumStatus](docs/PaymentsEnumStatus.md) + - [PaymentsEnumTokenType](docs/PaymentsEnumTokenType.md) + - [RecordingAddOnResultEnumStatus](docs/RecordingAddOnResultEnumStatus.md) + - [RecordingEnumSource](docs/RecordingEnumSource.md) + - [RecordingEnumStatus](docs/RecordingEnumStatus.md) + - [RecordingTranscriptionEnumStatus](docs/RecordingTranscriptionEnumStatus.md) + - [SiprecEnumStatus](docs/SiprecEnumStatus.md) + - [SiprecEnumTrack](docs/SiprecEnumTrack.md) + - [SiprecEnumUpdateStatus](docs/SiprecEnumUpdateStatus.md) + - [StreamEnumStatus](docs/StreamEnumStatus.md) + - [StreamEnumTrack](docs/StreamEnumTrack.md) + - [StreamEnumUpdateStatus](docs/StreamEnumUpdateStatus.md) + - [TranscriptionEnumStatus](docs/TranscriptionEnumStatus.md) + - [UsageRecordAllTimeEnumCategory](docs/UsageRecordAllTimeEnumCategory.md) + - [UsageRecordDailyEnumCategory](docs/UsageRecordDailyEnumCategory.md) + - [UsageRecordEnumCategory](docs/UsageRecordEnumCategory.md) + - [UsageRecordLastMonthEnumCategory](docs/UsageRecordLastMonthEnumCategory.md) + - [UsageRecordMonthlyEnumCategory](docs/UsageRecordMonthlyEnumCategory.md) + - [UsageRecordThisMonthEnumCategory](docs/UsageRecordThisMonthEnumCategory.md) + - [UsageRecordTodayEnumCategory](docs/UsageRecordTodayEnumCategory.md) + - [UsageRecordYearlyEnumCategory](docs/UsageRecordYearlyEnumCategory.md) + - [UsageRecordYesterdayEnumCategory](docs/UsageRecordYesterdayEnumCategory.md) + - [UsageTriggerEnumRecurring](docs/UsageTriggerEnumRecurring.md) + - [UsageTriggerEnumTriggerField](docs/UsageTriggerEnumTriggerField.md) + - [UsageTriggerEnumUsageCategory](docs/UsageTriggerEnumUsageCategory.md) + + +To get access to the crate's generated documentation, use: + +``` +cargo doc --open +``` + +## Author + +support@twilio.com + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/AccountEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/AccountEnumStatus.md new file mode 100644 index 00000000..24f663ef --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/AccountEnumStatus.md @@ -0,0 +1,10 @@ +# AccountEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/AccountEnumType.md b/unmnemonic_devices_vrs/twilio-rust/docs/AccountEnumType.md new file mode 100644 index 00000000..a040663a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/AccountEnumType.md @@ -0,0 +1,10 @@ +# AccountEnumType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AccountApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AccountApi.md new file mode 100644 index 00000000..c74f0d05 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AccountApi.md @@ -0,0 +1,138 @@ +# \Api20100401AccountApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_account**](Api20100401AccountApi.md#create_account) | **POST** /2010-04-01/Accounts.json | +[**fetch_account**](Api20100401AccountApi.md#fetch_account) | **GET** /2010-04-01/Accounts/{Sid}.json | +[**list_account**](Api20100401AccountApi.md#list_account) | **GET** /2010-04-01/Accounts.json | +[**update_account**](Api20100401AccountApi.md#update_account) | **POST** /2010-04-01/Accounts/{Sid}.json | + + + +## create_account + +> crate::models::ApiPeriodV2010PeriodAccount create_account(friendly_name) + + +Create a new Twilio Subaccount from the account making the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccount**](api.v2010.account.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_account + +> crate::models::ApiPeriodV2010PeriodAccount fetch_account(sid) + + +Fetch the account specified by the provided Account Sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Account Sid that uniquely identifies the account to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccount**](api.v2010.account.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_account + +> crate::models::ListAccountResponse list_account(friendly_name, status, page_size, page, page_token) + + +Retrieves a collection of Accounts belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | Only return the Account resources with friendly names that exactly match this name. | | +**status** | Option<**AccountEnumStatus**> | Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAccountResponse**](ListAccountResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_account + +> crate::models::ApiPeriodV2010PeriodAccount update_account(sid, friendly_name, status) + + +Modify the properties of a given Account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sid** | **String** | The Account Sid that uniquely identifies the account to update | [required] | +**friendly_name** | Option<**String**> | Update the human-readable description of this Account | | +**status** | Option<**crate::models::AccountEnumStatus**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccount**](api.v2010.account.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AddOnResultApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AddOnResultApi.md new file mode 100644 index 00000000..d4a5fb45 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AddOnResultApi.md @@ -0,0 +1,109 @@ +# \Api20100401AddOnResultApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_recording_add_on_result**](Api20100401AddOnResultApi.md#delete_recording_add_on_result) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +[**fetch_recording_add_on_result**](Api20100401AddOnResultApi.md#fetch_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +[**list_recording_add_on_result**](Api20100401AddOnResultApi.md#list_recording_add_on_result) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json | + + + +## delete_recording_add_on_result + +> delete_recording_add_on_result(account_sid, reference_sid, sid) + + +Delete a result and purge all associated Payloads + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. | [required] | +**reference_sid** | **String** | The SID of the recording to which the result to delete belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording_add_on_result + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult fetch_recording_add_on_result(account_sid, reference_sid, sid) + + +Fetch an instance of an AddOnResult + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. | [required] | +**reference_sid** | **String** | The SID of the recording to which the result to fetch belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult**](api.v2010.account.recording.recording_add_on_result.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording_add_on_result + +> crate::models::ListRecordingAddOnResultResponse list_recording_add_on_result(account_sid, reference_sid, page_size, page, page_token) + + +Retrieve a list of results belonging to the recording + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. | [required] | +**reference_sid** | **String** | The SID of the recording to which the result to read belongs. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingAddOnResultResponse**](ListRecordingAddOnResultResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AddressApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AddressApi.md new file mode 100644 index 00000000..d04d0a04 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AddressApi.md @@ -0,0 +1,191 @@ +# \Api20100401AddressApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_address**](Api20100401AddressApi.md#create_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +[**delete_address**](Api20100401AddressApi.md#delete_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**fetch_address**](Api20100401AddressApi.md#fetch_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**list_address**](Api20100401AddressApi.md#list_address) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +[**update_address**](Api20100401AddressApi.md#update_address) | **POST** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | + + + +## create_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAddress create_address(account_sid, customer_name, street, city, region, postal_code, iso_country, friendly_name, emergency_enabled, auto_correct_address, street_secondary) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. | [required] | +**customer_name** | **String** | The name to associate with the new address. | [required] | +**street** | **String** | The number and street address of the new address. | [required] | +**city** | **String** | The city of the new address. | [required] | +**region** | **String** | The state or region of the new address. | [required] | +**postal_code** | **String** | The postal code of the new address. | [required] | +**iso_country** | **String** | The ISO country code of the new address. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the new address. It can be up to 64 characters long. | | +**emergency_enabled** | Option<**bool**> | Whether to enable emergency calling on the new address. Can be: `true` or `false`. | | +**auto_correct_address** | Option<**bool**> | Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide. | | +**street_secondary** | Option<**String**> | The additional number and street address of the address. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAddress**](api.v2010.account.address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_address + +> delete_address(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Address resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAddress fetch_address(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Address resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAddress**](api.v2010.account.address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_address + +> crate::models::ListAddressResponse list_address(account_sid, customer_name, friendly_name, iso_country, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. | [required] | +**customer_name** | Option<**String**> | The `customer_name` of the Address resources to read. | | +**friendly_name** | Option<**String**> | The string that identifies the Address resources to read. | | +**iso_country** | Option<**String**> | The ISO country code of the Address resources to read. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAddressResponse**](ListAddressResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAddress update_address(account_sid, sid, friendly_name, customer_name, street, city, region, postal_code, emergency_enabled, auto_correct_address, street_secondary) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Address resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the address. It can be up to 64 characters long. | | +**customer_name** | Option<**String**> | The name to associate with the address. | | +**street** | Option<**String**> | The number and street address of the address. | | +**city** | Option<**String**> | The city of the address. | | +**region** | Option<**String**> | The state or region of the address. | | +**postal_code** | Option<**String**> | The postal code of the address. | | +**emergency_enabled** | Option<**bool**> | Whether to enable emergency calling on the address. Can be: `true` or `false`. | | +**auto_correct_address** | Option<**bool**> | Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide. | | +**street_secondary** | Option<**String**> | The additional number and street address of the address. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAddress**](api.v2010.account.address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AllTimeApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AllTimeApi.md new file mode 100644 index 00000000..c70f764e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AllTimeApi.md @@ -0,0 +1,46 @@ +# \Api20100401AllTimeApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_all_time**](Api20100401AllTimeApi.md#list_usage_record_all_time) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json | + + + +## list_usage_record_all_time + +> crate::models::ListUsageRecordAllTimeResponse list_usage_record_all_time(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordAllTimeEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordAllTimeResponse**](ListUsageRecordAllTimeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ApplicationApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ApplicationApi.md new file mode 100644 index 00000000..ed1cbb4c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ApplicationApi.md @@ -0,0 +1,202 @@ +# \Api20100401ApplicationApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_application**](Api20100401ApplicationApi.md#create_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications.json | +[**delete_application**](Api20100401ApplicationApi.md#delete_application) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**fetch_application**](Api20100401ApplicationApi.md#fetch_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**list_application**](Api20100401ApplicationApi.md#list_application) | **GET** /2010-04-01/Accounts/{AccountSid}/Applications.json | +[**update_application**](Api20100401ApplicationApi.md#update_application) | **POST** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | + + + +## create_application + +> crate::models::ApiPeriodV2010PeriodAccountPeriodApplication create_application(account_sid, api_version, voice_url, voice_method, voice_fallback_url, voice_fallback_method, status_callback, status_callback_method, voice_caller_id_lookup, sms_url, sms_method, sms_fallback_url, sms_fallback_method, sms_status_callback, message_status_callback, friendly_name, public_application_connect_enabled) + + +Create a new application within your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**api_version** | Option<**String**> | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is the account's default API version. | | +**voice_url** | Option<**String**> | The URL we should call when the phone number assigned to this application receives a call. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | | +**sms_url** | Option<**String**> | The URL we should call when the phone number receives an incoming SMS message. | | +**sms_method** | Option<**String**> | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | | +**sms_fallback_method** | Option<**String**> | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | | +**sms_status_callback** | Option<**String**> | The URL we should call using a POST method to send status information about SMS messages sent by the application. | | +**message_status_callback** | Option<**String**> | The URL we should call using a POST method to send message status information to your application. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the new application. It can be up to 64 characters long. | | +**public_application_connect_enabled** | Option<**bool**> | Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodApplication**](api.v2010.account.application.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_application + +> delete_application(account_sid, sid) + + +Delete the application by the specified application sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Application resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_application + +> crate::models::ApiPeriodV2010PeriodAccountPeriodApplication fetch_application(account_sid, sid) + + +Fetch the application specified by the provided sid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Application resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodApplication**](api.v2010.account.application.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_application + +> crate::models::ListApplicationResponse list_application(account_sid, friendly_name, page_size, page, page_token) + + +Retrieve a list of applications representing an application within the requesting account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. | [required] | +**friendly_name** | Option<**String**> | The string that identifies the Application resources to read. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListApplicationResponse**](ListApplicationResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_application + +> crate::models::ApiPeriodV2010PeriodAccountPeriodApplication update_application(account_sid, sid, friendly_name, api_version, voice_url, voice_method, voice_fallback_url, voice_fallback_method, status_callback, status_callback_method, voice_caller_id_lookup, sms_url, sms_method, sms_fallback_url, sms_fallback_method, sms_status_callback, message_status_callback, public_application_connect_enabled) + + +Updates the application's properties + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Application resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | +**api_version** | Option<**String**> | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is your account's default API version. | | +**voice_url** | Option<**String**> | The URL we should call when the phone number assigned to this application receives a call. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | | +**sms_url** | Option<**String**> | The URL we should call when the phone number receives an incoming SMS message. | | +**sms_method** | Option<**String**> | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | | +**sms_fallback_method** | Option<**String**> | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | | +**sms_status_callback** | Option<**String**> | Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility. | | +**message_status_callback** | Option<**String**> | The URL we should call using a POST method to send message status information to your application. | | +**public_application_connect_enabled** | Option<**bool**> | Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodApplication**](api.v2010.account.application.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AssignedAddOnApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AssignedAddOnApi.md new file mode 100644 index 00000000..44744c52 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AssignedAddOnApi.md @@ -0,0 +1,142 @@ +# \Api20100401AssignedAddOnApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_incoming_phone_number_assigned_add_on**](Api20100401AssignedAddOnApi.md#create_incoming_phone_number_assigned_add_on) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +[**delete_incoming_phone_number_assigned_add_on**](Api20100401AssignedAddOnApi.md#delete_incoming_phone_number_assigned_add_on) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +[**fetch_incoming_phone_number_assigned_add_on**](Api20100401AssignedAddOnApi.md#fetch_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +[**list_incoming_phone_number_assigned_add_on**](Api20100401AssignedAddOnApi.md#list_incoming_phone_number_assigned_add_on) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | + + + +## create_incoming_phone_number_assigned_add_on + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn create_incoming_phone_number_assigned_add_on(account_sid, resource_sid, installed_add_on_sid) + + +Assign an Add-on installation to the Number specified. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to assign the Add-on. | [required] | +**installed_add_on_sid** | **String** | The SID that identifies the Add-on installation. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_incoming_phone_number_assigned_add_on + +> delete_incoming_phone_number_assigned_add_on(account_sid, resource_sid, sid) + + +Remove the assignment of an Add-on installation from the Number specified. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_incoming_phone_number_assigned_add_on + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn fetch_incoming_phone_number_assigned_add_on(account_sid, resource_sid, sid) + + +Fetch an instance of an Add-on installation currently assigned to this Number. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_assigned_add_on + +> crate::models::ListIncomingPhoneNumberAssignedAddOnResponse list_incoming_phone_number_assigned_add_on(account_sid, resource_sid, page_size, page, page_token) + + +Retrieve a list of Add-on installations currently assigned to this Number. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberAssignedAddOnResponse**](ListIncomingPhoneNumberAssignedAddOnResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AssignedAddOnExtensionApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AssignedAddOnExtensionApi.md new file mode 100644 index 00000000..fb9e153a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AssignedAddOnExtensionApi.md @@ -0,0 +1,78 @@ +# \Api20100401AssignedAddOnExtensionApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_incoming_phone_number_assigned_add_on_extension**](Api20100401AssignedAddOnExtensionApi.md#fetch_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | +[**list_incoming_phone_number_assigned_add_on_extension**](Api20100401AssignedAddOnExtensionApi.md#list_incoming_phone_number_assigned_add_on_extension) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | + + + +## fetch_incoming_phone_number_assigned_add_on_extension + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension fetch_incoming_phone_number_assigned_add_on_extension(account_sid, resource_sid, assigned_add_on_sid, sid) + + +Fetch an instance of an Extension for the Assigned Add-on. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**assigned_add_on_sid** | **String** | The SID that uniquely identifies the assigned Add-on installation. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.incoming_phone_number_assigned_add_on_extension.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_assigned_add_on_extension + +> crate::models::ListIncomingPhoneNumberAssignedAddOnExtensionResponse list_incoming_phone_number_assigned_add_on_extension(account_sid, resource_sid, assigned_add_on_sid, page_size, page, page_token) + + +Retrieve a list of Extensions for the Assigned Add-on. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**resource_sid** | **String** | The SID of the Phone Number to which the Add-on is assigned. | [required] | +**assigned_add_on_sid** | **String** | The SID that uniquely identifies the assigned Add-on installation. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberAssignedAddOnExtensionResponse**](ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthCallsCredentialListMappingApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthCallsCredentialListMappingApi.md new file mode 100644 index 00000000..82b0e03c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthCallsCredentialListMappingApi.md @@ -0,0 +1,142 @@ +# \Api20100401AuthCallsCredentialListMappingApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_auth_calls_credential_list_mapping**](Api20100401AuthCallsCredentialListMappingApi.md#create_sip_auth_calls_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +[**delete_sip_auth_calls_credential_list_mapping**](Api20100401AuthCallsCredentialListMappingApi.md#delete_sip_auth_calls_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +[**fetch_sip_auth_calls_credential_list_mapping**](Api20100401AuthCallsCredentialListMappingApi.md#fetch_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +[**list_sip_auth_calls_credential_list_mapping**](Api20100401AuthCallsCredentialListMappingApi.md#list_sip_auth_calls_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | + + + +## create_sip_auth_calls_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping create_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, credential_list_sid) + + +Create a new credential list mapping resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that will contain the new resource. | [required] | +**credential_list_sid** | **String** | The SID of the CredentialList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_auth_calls_credential_list_mapping + +> delete_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, sid) + + +Delete a credential list mapping from the requested domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_auth_calls_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping fetch_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, sid) + + +Fetch a specific instance of a credential list mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_auth_calls_credential_list_mapping + +> crate::models::ListSipAuthCallsCredentialListMappingResponse list_sip_auth_calls_credential_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of credential list mappings belonging to the domain used in the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipAuthCallsCredentialListMappingResponse**](ListSipAuthCallsCredentialListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthCallsIpAccessControlListMappingApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthCallsIpAccessControlListMappingApi.md new file mode 100644 index 00000000..e46c21b1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthCallsIpAccessControlListMappingApi.md @@ -0,0 +1,142 @@ +# \Api20100401AuthCallsIpAccessControlListMappingApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_auth_calls_ip_access_control_list_mapping**](Api20100401AuthCallsIpAccessControlListMappingApi.md#create_sip_auth_calls_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +[**delete_sip_auth_calls_ip_access_control_list_mapping**](Api20100401AuthCallsIpAccessControlListMappingApi.md#delete_sip_auth_calls_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +[**fetch_sip_auth_calls_ip_access_control_list_mapping**](Api20100401AuthCallsIpAccessControlListMappingApi.md#fetch_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +[**list_sip_auth_calls_ip_access_control_list_mapping**](Api20100401AuthCallsIpAccessControlListMappingApi.md#list_sip_auth_calls_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | + + + +## create_sip_auth_calls_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping create_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, ip_access_control_list_sid) + + +Create a new IP Access Control List mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that will contain the new resource. | [required] | +**ip_access_control_list_sid** | **String** | The SID of the IpAccessControlList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_auth_calls_ip_access_control_list_mapping + +> delete_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Delete an IP Access Control List mapping from the requested domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_auth_calls_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping fetch_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Fetch a specific instance of an IP Access Control List mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_auth_calls_ip_access_control_list_mapping + +> crate::models::ListSipAuthCallsIpAccessControlListMappingResponse list_sip_auth_calls_ip_access_control_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of IP Access Control List mappings belonging to the domain used in the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipAuthCallsIpAccessControlListMappingResponse**](ListSipAuthCallsIpAccessControlListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthRegistrationsCredentialListMappingApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthRegistrationsCredentialListMappingApi.md new file mode 100644 index 00000000..88c089e1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthRegistrationsCredentialListMappingApi.md @@ -0,0 +1,142 @@ +# \Api20100401AuthRegistrationsCredentialListMappingApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_auth_registrations_credential_list_mapping**](Api20100401AuthRegistrationsCredentialListMappingApi.md#create_sip_auth_registrations_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +[**delete_sip_auth_registrations_credential_list_mapping**](Api20100401AuthRegistrationsCredentialListMappingApi.md#delete_sip_auth_registrations_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +[**fetch_sip_auth_registrations_credential_list_mapping**](Api20100401AuthRegistrationsCredentialListMappingApi.md#fetch_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +[**list_sip_auth_registrations_credential_list_mapping**](Api20100401AuthRegistrationsCredentialListMappingApi.md#list_sip_auth_registrations_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | + + + +## create_sip_auth_registrations_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping create_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, credential_list_sid) + + +Create a new credential list mapping resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that will contain the new resource. | [required] | +**credential_list_sid** | **String** | The SID of the CredentialList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_auth_registrations_credential_list_mapping + +> delete_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, sid) + + +Delete a credential list mapping from the requested domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_auth_registrations_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping fetch_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, sid) + + +Fetch a specific instance of a credential list mapping + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_auth_registrations_credential_list_mapping + +> crate::models::ListSipAuthRegistrationsCredentialListMappingResponse list_sip_auth_registrations_credential_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of credential list mappings belonging to the domain used in the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | [required] | +**domain_sid** | **String** | The SID of the SIP domain that contains the resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipAuthRegistrationsCredentialListMappingResponse**](ListSipAuthRegistrationsCredentialListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthorizedConnectAppApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthorizedConnectAppApi.md new file mode 100644 index 00000000..dff342d2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AuthorizedConnectAppApi.md @@ -0,0 +1,74 @@ +# \Api20100401AuthorizedConnectAppApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_authorized_connect_app**](Api20100401AuthorizedConnectAppApi.md#fetch_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | +[**list_authorized_connect_app**](Api20100401AuthorizedConnectAppApi.md#list_authorized_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | + + + +## fetch_authorized_connect_app + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp fetch_authorized_connect_app(account_sid, connect_app_sid) + + +Fetch an instance of an authorized-connect-app + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. | [required] | +**connect_app_sid** | **String** | The SID of the Connect App to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp**](api.v2010.account.authorized_connect_app.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_authorized_connect_app + +> crate::models::ListAuthorizedConnectAppResponse list_authorized_connect_app(account_sid, page_size, page, page_token) + + +Retrieve a list of authorized-connect-apps belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAuthorizedConnectAppResponse**](ListAuthorizedConnectAppResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AvailablePhoneNumberCountryApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AvailablePhoneNumberCountryApi.md new file mode 100644 index 00000000..0b36ed09 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401AvailablePhoneNumberCountryApi.md @@ -0,0 +1,74 @@ +# \Api20100401AvailablePhoneNumberCountryApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_available_phone_number_country**](Api20100401AvailablePhoneNumberCountryApi.md#fetch_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | +[**list_available_phone_number_country**](Api20100401AvailablePhoneNumberCountryApi.md#list_available_phone_number_country) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | + + + +## fetch_available_phone_number_country + +> crate::models::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry fetch_available_phone_number_country(account_sid, country_code) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country to fetch available phone number information about. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry**](api.v2010.account.available_phone_number_country.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_country + +> crate::models::ListAvailablePhoneNumberCountryResponse list_available_phone_number_country(account_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberCountryResponse**](ListAvailablePhoneNumberCountryResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401BalanceApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401BalanceApi.md new file mode 100644 index 00000000..a6cdc343 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401BalanceApi.md @@ -0,0 +1,39 @@ +# \Api20100401BalanceApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_balance**](Api20100401BalanceApi.md#fetch_balance) | **GET** /2010-04-01/Accounts/{AccountSid}/Balance.json | + + + +## fetch_balance + +> crate::models::ApiPeriodV2010PeriodAccountPeriodBalance fetch_balance(account_sid) + + +Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique SID identifier of the Account. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodBalance**](api.v2010.account.balance.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CallApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CallApi.md new file mode 100644 index 00000000..429bbaf2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CallApi.md @@ -0,0 +1,223 @@ +# \Api20100401CallApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_call**](Api20100401CallApi.md#create_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls.json | +[**delete_call**](Api20100401CallApi.md#delete_call) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**fetch_call**](Api20100401CallApi.md#fetch_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**list_call**](Api20100401CallApi.md#list_call) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls.json | +[**update_call**](Api20100401CallApi.md#update_call) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | + + + +## create_call + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCall create_call(account_sid, to, from, method, fallback_url, fallback_method, status_callback, status_callback_event, status_callback_method, send_digits, timeout, record, recording_channels, recording_status_callback, recording_status_callback_method, sip_auth_username, sip_auth_password, machine_detection, machine_detection_timeout, recording_status_callback_event, trim, caller_id, machine_detection_speech_threshold, machine_detection_speech_end_threshold, machine_detection_silence_timeout, async_amd, async_amd_status_callback, async_amd_status_callback_method, byoc, call_reason, call_token, recording_track, time_limit, url, twiml, application_sid) + + +Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**to** | **String** | The phone number, SIP address, or client identifier to call. | [required] | +**from** | **String** | The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `From` must also be a phone number. | [required] | +**method** | Option<**String**> | The HTTP method we should use when calling the `url` parameter's value. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**fallback_url** | Option<**String**> | The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored. | | +**fallback_method** | Option<**String**> | The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted). | | +**status_callback_event** | Option<[**Vec**](String.md)> | The call progress events that we will send to the `status_callback` URL. Can be: `initiated`, `ringing`, `answered`, and `completed`. If no event is specified, we send the `completed` status. If you want to receive multiple events, specify each one in a separate `status_callback_event` parameter. See the code sample for [monitoring call progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**send_digits** | Option<**String**> | A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be `ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored. | | +**timeout** | Option<**i32**> | The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is `60` seconds and the maximum is `600` seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail. | | +**record** | Option<**bool**> | Whether to record the call. Can be `true` to record the phone call, or `false` to not. The default is `false`. The `recording_url` is sent to the `status_callback` URL. | | +**recording_channels** | Option<**String**> | The number of channels in the final recording. Can be: `mono` or `dual`. The default is `mono`. `mono` records both legs of the call in a single channel of the recording file. `dual` records each leg to a separate channel of the recording file. The first channel of a dual-channel recording contains the parent call and the second channel contains the child call. | | +**recording_status_callback** | Option<**String**> | The URL that we call when the recording is available to be accessed. | | +**recording_status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | | +**sip_auth_username** | Option<**String**> | The username used to authenticate the caller making a SIP call. | | +**sip_auth_password** | Option<**String**> | The password required to authenticate the user account specified in `sip_auth_username`. | | +**machine_detection** | Option<**String**> | Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. If `send_digits` is provided, this parameter is ignored. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). | | +**machine_detection_timeout** | Option<**i32**> | The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. | | +**recording_status_callback_event** | Option<[**Vec**](String.md)> | The recording status events that will trigger calls to the URL specified in `recording_status_callback`. Can be: `in-progress`, `completed` and `absent`. Defaults to `completed`. Separate multiple values with a space. | | +**trim** | Option<**String**> | Whether to trim any leading and trailing silence from the recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. | | +**caller_id** | Option<**String**> | The phone number, SIP address, or Client identifier that made this call. Phone numbers are in [E.164 format](https://wwnw.twilio.com/docs/glossary/what-e164) (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. | | +**machine_detection_speech_threshold** | Option<**i32**> | The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400. | | +**machine_detection_speech_end_threshold** | Option<**i32**> | The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | | +**machine_detection_silence_timeout** | Option<**i32**> | The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | | +**async_amd** | Option<**String**> | Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`. | | +**async_amd_status_callback** | Option<**String**> | The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. | | +**async_amd_status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | | +**byoc** | Option<**String**> | The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta) | | +**call_reason** | Option<**String**> | The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta) | | +**call_token** | Option<**String**> | A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. | | +**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. | | +**time_limit** | Option<**i32**> | The maximum duration of the call in seconds. Constraints depend on account and configuration. | | +**url** | Option<**String**> | The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). | | +**twiml** | Option<**String**> | TwiML instructions for the call Twilio will use without fetching Twiml from url parameter. If both `twiml` and `url` are provided then `twiml` parameter will be ignored. Max 4000 characters. | | +**application_sid** | Option<**String**> | The SID of the Application resource that will handle the call, if the call will be handled by an application. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCall**](api.v2010.account.call.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_call + +> delete_call(account_sid, sid) + + +Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. | [required] | +**sid** | **String** | The Twilio-provided Call SID that uniquely identifies the Call resource to delete | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCall fetch_call(account_sid, sid) + + +Fetch the call specified by the provided Call SID + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. | [required] | +**sid** | **String** | The SID of the Call resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCall**](api.v2010.account.call.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call + +> crate::models::ListCallResponse list_call(account_sid, to, from, parent_call_sid, status, start_time, start_time_less_than, start_time_greater_than, end_time, end_time_less_than, end_time_greater_than, page_size, page, page_token) + + +Retrieves a collection of calls made to and from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. | [required] | +**to** | Option<**String**> | Only show calls made to this phone number, SIP address, Client identifier or SIM SID. | | +**from** | Option<**String**> | Only include calls from this phone number, SIP address, Client identifier or SIM SID. | | +**parent_call_sid** | Option<**String**> | Only include calls spawned by calls with this SID. | | +**status** | Option<**CallEnumStatus**> | The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. | | +**start_time** | Option<**String**> | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. | | +**start_time_less_than** | Option<**String**> | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. | | +**start_time_greater_than** | Option<**String**> | Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. | | +**end_time** | Option<**String**> | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. | | +**end_time_less_than** | Option<**String**> | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. | | +**end_time_greater_than** | Option<**String**> | Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallResponse**](ListCallResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_call + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCall update_call(account_sid, sid, url, method, status, fallback_url, fallback_method, status_callback, status_callback_method, twiml, time_limit) + + +Initiates a call redirect or terminates a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Call resource to update | [required] | +**url** | Option<**String**> | The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). | | +**method** | Option<**String**> | The HTTP method we should use when calling the `url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**status** | Option<**crate::models::CallEnumUpdateStatus**> | | | +**fallback_url** | Option<**String**> | The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored. | | +**fallback_method** | Option<**String**> | The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted). | | +**status_callback_method** | Option<**String**> | The HTTP method we should use when requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. | | +**twiml** | Option<**String**> | TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive | | +**time_limit** | Option<**i32**> | The maximum duration of the call in seconds. Constraints depend on account and configuration. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCall**](api.v2010.account.call.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ConferenceApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ConferenceApi.md new file mode 100644 index 00000000..c7d111e4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ConferenceApi.md @@ -0,0 +1,117 @@ +# \Api20100401ConferenceApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_conference**](Api20100401ConferenceApi.md#fetch_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +[**list_conference**](Api20100401ConferenceApi.md#list_conference) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences.json | +[**update_conference**](Api20100401ConferenceApi.md#update_conference) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | + + + +## fetch_conference + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConference fetch_conference(account_sid, sid) + + +Fetch an instance of a conference + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConference**](api.v2010.account.conference.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_conference + +> crate::models::ListConferenceResponse list_conference(account_sid, date_created, date_created_less_than, date_created_greater_than, date_updated, date_updated_less_than, date_updated_greater_than, friendly_name, status, page_size, page, page_token) + + +Retrieve a list of conferences belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. | [required] | +**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. | | +**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. | | +**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. | | +**date_updated** | Option<**String**> | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. | | +**date_updated_less_than** | Option<**String**> | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. | | +**date_updated_greater_than** | Option<**String**> | The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. | | +**friendly_name** | Option<**String**> | The string that identifies the Conference resources to read. | | +**status** | Option<**ConferenceEnumStatus**> | The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListConferenceResponse**](ListConferenceResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_conference + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConference update_conference(account_sid, sid, status, announce_url, announce_method) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference resource to update | [required] | +**status** | Option<**crate::models::ConferenceEnumUpdateStatus**> | | | +**announce_url** | Option<**String**> | The URL we should call to announce something into the conference. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. | | +**announce_method** | Option<**String**> | The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConference**](api.v2010.account.conference.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ConnectAppApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ConnectAppApi.md new file mode 100644 index 00000000..9bf7921e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ConnectAppApi.md @@ -0,0 +1,146 @@ +# \Api20100401ConnectAppApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_connect_app**](Api20100401ConnectAppApi.md#delete_connect_app) | **DELETE** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**fetch_connect_app**](Api20100401ConnectAppApi.md#fetch_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**list_connect_app**](Api20100401ConnectAppApi.md#list_connect_app) | **GET** /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | +[**update_connect_app**](Api20100401ConnectAppApi.md#update_connect_app) | **POST** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | + + + +## delete_connect_app + +> delete_connect_app(account_sid, sid) + + +Delete an instance of a connect-app + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_connect_app + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp fetch_connect_app(account_sid, sid) + + +Fetch an instance of a connect-app + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp**](api.v2010.account.connect_app.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_connect_app + +> crate::models::ListConnectAppResponse list_connect_app(account_sid, page_size, page, page_token) + + +Retrieve a list of connect-apps belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListConnectAppResponse**](ListConnectAppResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_connect_app + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp update_connect_app(account_sid, sid, authorize_redirect_url, company_name, deauthorize_callback_method, deauthorize_callback_url, description, friendly_name, homepage_url, permissions) + + +Update a connect-app with the specified parameters + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ConnectApp resource to update. | [required] | +**authorize_redirect_url** | Option<**String**> | The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | | +**company_name** | Option<**String**> | The company name to set for the Connect App. | | +**deauthorize_callback_method** | Option<**String**> | The HTTP method to use when calling `deauthorize_callback_url`. | | +**deauthorize_callback_url** | Option<**String**> | The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. | | +**description** | Option<**String**> | A description of the Connect App. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | +**homepage_url** | Option<**String**> | A public URL where users can obtain more information about this Connect App. | | +**permissions** | Option<[**Vec**](crate::models::ConnectAppEnumPermission.md)> | A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConnectApp**](api.v2010.account.connect_app.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialApi.md new file mode 100644 index 00000000..de1dbd91 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialApi.md @@ -0,0 +1,177 @@ +# \Api20100401CredentialApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_credential**](Api20100401CredentialApi.md#create_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +[**delete_sip_credential**](Api20100401CredentialApi.md#delete_sip_credential) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**fetch_sip_credential**](Api20100401CredentialApi.md#fetch_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**list_sip_credential**](Api20100401CredentialApi.md#list_sip_credential) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +[**update_sip_credential**](Api20100401CredentialApi.md#update_sip_credential) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | + + + +## create_sip_credential + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential create_sip_credential(account_sid, credential_list_sid, username, password) + + +Create a new credential resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list to include the created credential. | [required] | +**username** | **String** | The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long. | [required] | +**password** | **String** | The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`) | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_credential + +> delete_sip_credential(account_sid, credential_list_sid, sid) + + +Delete a credential resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that contains the desired credentials. | [required] | +**sid** | **String** | The unique id that identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_credential + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential fetch_sip_credential(account_sid, credential_list_sid, sid) + + +Fetch a single credential. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that contains the desired credential. | [required] | +**sid** | **String** | The unique id that identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_credential + +> crate::models::ListSipCredentialResponse list_sip_credential(account_sid, credential_list_sid, page_size, page, page_token) + + +Retrieve a list of credentials. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that contains the desired credentials. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipCredentialResponse**](ListSipCredentialResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_credential + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential update_sip_credential(account_sid, credential_list_sid, sid, password) + + +Update a credential resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**credential_list_sid** | **String** | The unique id that identifies the credential list that includes this credential. | [required] | +**sid** | **String** | The unique id that identifies the resource to update. | [required] | +**password** | Option<**String**> | The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`) | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialListApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialListApi.md new file mode 100644 index 00000000..0cff792f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialListApi.md @@ -0,0 +1,171 @@ +# \Api20100401CredentialListApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_credential_list**](Api20100401CredentialListApi.md#create_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +[**delete_sip_credential_list**](Api20100401CredentialListApi.md#delete_sip_credential_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**fetch_sip_credential_list**](Api20100401CredentialListApi.md#fetch_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**list_sip_credential_list**](Api20100401CredentialListApi.md#list_sip_credential_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +[**update_sip_credential_list**](Api20100401CredentialListApi.md#update_sip_credential_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | + + + +## create_sip_credential_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList create_sip_credential_list(account_sid, friendly_name) + + +Create a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**friendly_name** | **String** | A human readable descriptive text that describes the CredentialList, up to 64 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_credential_list + +> delete_sip_credential_list(account_sid, sid) + + +Delete a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**sid** | **String** | The credential list Sid that uniquely identifies this resource | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_credential_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList fetch_sip_credential_list(account_sid, sid) + + +Get a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**sid** | **String** | The credential list Sid that uniquely identifies this resource | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_credential_list + +> crate::models::ListSipCredentialListResponse list_sip_credential_list(account_sid, page_size, page, page_token) + + +Get All Credential Lists + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipCredentialListResponse**](ListSipCredentialListResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_credential_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList update_sip_credential_list(account_sid, sid, friendly_name) + + +Update a Credential List + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**sid** | **String** | The credential list Sid that uniquely identifies this resource | [required] | +**friendly_name** | **String** | A human readable descriptive text for a CredentialList, up to 64 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialListMappingApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialListMappingApi.md new file mode 100644 index 00000000..0bacca10 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401CredentialListMappingApi.md @@ -0,0 +1,142 @@ +# \Api20100401CredentialListMappingApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_credential_list_mapping**](Api20100401CredentialListMappingApi.md#create_sip_credential_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +[**delete_sip_credential_list_mapping**](Api20100401CredentialListMappingApi.md#delete_sip_credential_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +[**fetch_sip_credential_list_mapping**](Api20100401CredentialListMappingApi.md#fetch_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +[**list_sip_credential_list_mapping**](Api20100401CredentialListMappingApi.md#list_sip_credential_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | + + + +## create_sip_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping create_sip_credential_list_mapping(account_sid, domain_sid, credential_list_sid) + + +Create a CredentialListMapping resource for an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. | [required] | +**credential_list_sid** | **String** | A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_credential_list_mapping + +> delete_sip_credential_list_mapping(account_sid, domain_sid, sid) + + +Delete a CredentialListMapping resource from an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_credential_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping fetch_sip_credential_list_mapping(account_sid, domain_sid, sid) + + +Fetch a single CredentialListMapping resource from an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_credential_list_mapping + +> crate::models::ListSipCredentialListMappingResponse list_sip_credential_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Read multiple CredentialListMapping resources from an account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipCredentialListMappingResponse**](ListSipCredentialListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DailyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DailyApi.md new file mode 100644 index 00000000..1d6516d7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DailyApi.md @@ -0,0 +1,46 @@ +# \Api20100401DailyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_daily**](Api20100401DailyApi.md#list_usage_record_daily) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json | + + + +## list_usage_record_daily + +> crate::models::ListUsageRecordDailyResponse list_usage_record_daily(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordDailyEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordDailyResponse**](ListUsageRecordDailyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DependentPhoneNumberApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DependentPhoneNumberApi.md new file mode 100644 index 00000000..c6ab8c8a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DependentPhoneNumberApi.md @@ -0,0 +1,43 @@ +# \Api20100401DependentPhoneNumberApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_dependent_phone_number**](Api20100401DependentPhoneNumberApi.md#list_dependent_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | + + + +## list_dependent_phone_number + +> crate::models::ListDependentPhoneNumberResponse list_dependent_phone_number(account_sid, address_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. | [required] | +**address_sid** | **String** | The SID of the Address resource associated with the phone number. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListDependentPhoneNumberResponse**](ListDependentPhoneNumberResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DomainApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DomainApi.md new file mode 100644 index 00000000..7578602b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401DomainApi.md @@ -0,0 +1,195 @@ +# \Api20100401DomainApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_domain**](Api20100401DomainApi.md#create_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +[**delete_sip_domain**](Api20100401DomainApi.md#delete_sip_domain) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**fetch_sip_domain**](Api20100401DomainApi.md#fetch_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**list_sip_domain**](Api20100401DomainApi.md#list_sip_domain) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +[**update_sip_domain**](Api20100401DomainApi.md#update_sip_domain) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | + + + +## create_sip_domain + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain create_sip_domain(account_sid, domain_name, friendly_name, voice_url, voice_method, voice_fallback_url, voice_fallback_method, voice_status_callback_url, voice_status_callback_method, sip_registration, emergency_calling_enabled, secure, byoc_trunk_sid, emergency_caller_sid) + + +Create a new Domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**domain_name** | **String** | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\" and must end with `sip.twilio.com`. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | | +**voice_url** | Option<**String**> | The URL we should when the domain receives a call. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**voice_status_callback_url** | Option<**String**> | The URL that we should call to pass status parameters (such as call ended) to your application. | | +**voice_status_callback_method** | Option<**String**> | The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | | +**sip_registration** | Option<**bool**> | Whether to allow SIP Endpoints to register with the domain to receive calls. Can be `true` or `false`. `true` allows SIP Endpoints to register with the domain to receive calls, `false` does not. | | +**emergency_calling_enabled** | Option<**bool**> | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | | +**secure** | Option<**bool**> | Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. | | +**byoc_trunk_sid** | Option<**String**> | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | | +**emergency_caller_sid** | Option<**String**> | Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain**](api.v2010.account.sip.sip_domain.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_domain + +> delete_sip_domain(account_sid, sid) + + +Delete an instance of a Domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the SipDomain resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_domain + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain fetch_sip_domain(account_sid, sid) + + +Fetch an instance of a Domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain**](api.v2010.account.sip.sip_domain.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_domain + +> crate::models::ListSipDomainResponse list_sip_domain(account_sid, page_size, page, page_token) + + +Retrieve a list of domains belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipDomainResponse**](ListSipDomainResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_domain + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain update_sip_domain(account_sid, sid, friendly_name, voice_fallback_method, voice_fallback_url, voice_method, voice_status_callback_method, voice_status_callback_url, voice_url, sip_registration, domain_name, emergency_calling_enabled, secure, byoc_trunk_sid, emergency_caller_sid) + + +Update the attributes of a domain + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the SipDomain resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | | +**voice_fallback_method** | Option<**String**> | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | | +**voice_method** | Option<**String**> | The HTTP method we should use to call `voice_url` | | +**voice_status_callback_method** | Option<**String**> | The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | | +**voice_status_callback_url** | Option<**String**> | The URL that we should call to pass status parameters (such as call ended) to your application. | | +**voice_url** | Option<**String**> | The URL we should call when the domain receives a call. | | +**sip_registration** | Option<**bool**> | Whether to allow SIP Endpoints to register with the domain to receive calls. Can be `true` or `false`. `true` allows SIP Endpoints to register with the domain to receive calls, `false` does not. | | +**domain_name** | Option<**String**> | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\" and must end with `sip.twilio.com`. | | +**emergency_calling_enabled** | Option<**bool**> | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | | +**secure** | Option<**bool**> | Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. | | +**byoc_trunk_sid** | Option<**String**> | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | | +**emergency_caller_sid** | Option<**String**> | Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain**](api.v2010.account.sip.sip_domain.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401EventApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401EventApi.md new file mode 100644 index 00000000..a760c26b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401EventApi.md @@ -0,0 +1,43 @@ +# \Api20100401EventApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_call_event**](Api20100401EventApi.md#list_call_event) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | + + + +## list_call_event + +> crate::models::ListCallEventResponse list_call_event(account_sid, call_sid, page_size, page, page_token) + + +Retrieve a list of all events for a call. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique SID identifier of the Account. | [required] | +**call_sid** | **String** | The unique SID identifier of the Call. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallEventResponse**](ListCallEventResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401FeedbackApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401FeedbackApi.md new file mode 100644 index 00000000..ac89d96c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401FeedbackApi.md @@ -0,0 +1,107 @@ +# \Api20100401FeedbackApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_message_feedback**](Api20100401FeedbackApi.md#create_message_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | +[**fetch_call_feedback**](Api20100401FeedbackApi.md#fetch_call_feedback) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +[**update_call_feedback**](Api20100401FeedbackApi.md#update_call_feedback) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | + + + +## create_message_feedback + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback create_message_feedback(account_sid, message_sid, outcome) + + +Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. | [required] | +**message_sid** | **String** | The SID of the Message resource for which to create MessageFeedback. | [required] | +**outcome** | Option<**crate::models::MessageFeedbackEnumOutcome**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback**](api.v2010.account.message.message_feedback.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_feedback + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback fetch_call_feedback(account_sid, call_sid) + + +Fetch a Feedback resource from a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**call_sid** | **String** | The call sid that uniquely identifies the call | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback**](api.v2010.account.call.call_feedback.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_call_feedback + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback update_call_feedback(account_sid, call_sid, quality_score, issue) + + +Update a Feedback resource for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**call_sid** | **String** | The call sid that uniquely identifies the call | [required] | +**quality_score** | Option<**i32**> | The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. | | +**issue** | Option<[**Vec**](crate::models::CallFeedbackEnumIssues.md)> | One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback**](api.v2010.account.call.call_feedback.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401FeedbackSummaryApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401FeedbackSummaryApi.md new file mode 100644 index 00000000..c0b4b012 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401FeedbackSummaryApi.md @@ -0,0 +1,108 @@ +# \Api20100401FeedbackSummaryApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_call_feedback_summary**](Api20100401FeedbackSummaryApi.md#create_call_feedback_summary) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | +[**delete_call_feedback_summary**](Api20100401FeedbackSummaryApi.md#delete_call_feedback_summary) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +[**fetch_call_feedback_summary**](Api20100401FeedbackSummaryApi.md#fetch_call_feedback_summary) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | + + + +## create_call_feedback_summary + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary create_call_feedback_summary(account_sid, start_date, end_date, include_subaccounts, status_callback, status_callback_method) + + +Create a FeedbackSummary resource for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**start_date** | **String** | Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. | [required] | +**end_date** | **String** | Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. | [required] | +**include_subaccounts** | Option<**bool**> | Whether to also include Feedback resources from all subaccounts. `true` includes feedback from all subaccounts and `false`, the default, includes feedback from only the specified account. | | +**status_callback** | Option<**String**> | The URL that we will request when the feedback summary is complete. | | +**status_callback_method** | Option<**String**> | The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary**](api.v2010.account.call.call_feedback_summary.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_call_feedback_summary + +> delete_call_feedback_summary(account_sid, sid) + + +Delete a FeedbackSummary resource from a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies this resource. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_feedback_summary + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary fetch_call_feedback_summary(account_sid, sid) + + +Fetch a FeedbackSummary resource from a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies this resource. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary**](api.v2010.account.call.call_feedback_summary.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IncomingPhoneNumberApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IncomingPhoneNumberApi.md new file mode 100644 index 00000000..85265339 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IncomingPhoneNumberApi.md @@ -0,0 +1,220 @@ +# \Api20100401IncomingPhoneNumberApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_incoming_phone_number**](Api20100401IncomingPhoneNumberApi.md#create_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +[**delete_incoming_phone_number**](Api20100401IncomingPhoneNumberApi.md#delete_incoming_phone_number) | **DELETE** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**fetch_incoming_phone_number**](Api20100401IncomingPhoneNumberApi.md#fetch_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**list_incoming_phone_number**](Api20100401IncomingPhoneNumberApi.md#list_incoming_phone_number) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +[**update_incoming_phone_number**](Api20100401IncomingPhoneNumberApi.md#update_incoming_phone_number) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | + + + +## create_incoming_phone_number + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber create_incoming_phone_number(account_sid, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, emergency_status, emergency_address_sid, trunk_sid, identity_sid, address_sid, voice_receive_mode, bundle_sid, phone_number, area_code) + + +Purchase a phone-number for the account. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | +**phone_number** | Option<**String**> | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | | +**area_code** | Option<**String**> | The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. **You must provide an `area_code` or a `phone_number`.** (US and Canada only). | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_incoming_phone_number + +> delete_incoming_phone_number(account_sid, sid) + + +Delete a phone-numbers belonging to the account used to make the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_incoming_phone_number + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber fetch_incoming_phone_number(account_sid, sid) + + +Fetch an incoming-phone-number belonging to the account used to make the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number + +> crate::models::ListIncomingPhoneNumberResponse list_incoming_phone_number(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + +Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the IncomingPhoneNumber resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberResponse**](ListIncomingPhoneNumberResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_incoming_phone_number + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber update_incoming_phone_number(account_sid, sid, account_sid2, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, identity_sid, address_sid, bundle_sid) + + +Update an incoming-phone-number instance. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers). | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. | [required] | +**account_sid2** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers). | | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle phone calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from this phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle phone calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberEnumVoiceReceiveMode**> | | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAccessControlListApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAccessControlListApi.md new file mode 100644 index 00000000..0a18263a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAccessControlListApi.md @@ -0,0 +1,171 @@ +# \Api20100401IpAccessControlListApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_ip_access_control_list**](Api20100401IpAccessControlListApi.md#create_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +[**delete_sip_ip_access_control_list**](Api20100401IpAccessControlListApi.md#delete_sip_ip_access_control_list) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**fetch_sip_ip_access_control_list**](Api20100401IpAccessControlListApi.md#fetch_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**list_sip_ip_access_control_list**](Api20100401IpAccessControlListApi.md#list_sip_ip_access_control_list) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +[**update_sip_ip_access_control_list**](Api20100401IpAccessControlListApi.md#update_sip_ip_access_control_list) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | + + + +## create_sip_ip_access_control_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList create_sip_ip_access_control_list(account_sid, friendly_name) + + +Create a new IpAccessControlList resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**friendly_name** | **String** | A human readable descriptive text that describes the IpAccessControlList, up to 255 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_ip_access_control_list + +> delete_sip_ip_access_control_list(account_sid, sid) + + +Delete an IpAccessControlList from the requested account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_ip_access_control_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList fetch_sip_ip_access_control_list(account_sid, sid) + + +Fetch a specific instance of an IpAccessControlList + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_ip_access_control_list + +> crate::models::ListSipIpAccessControlListResponse list_sip_ip_access_control_list(account_sid, page_size, page, page_token) + + +Retrieve a list of IpAccessControlLists that belong to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipIpAccessControlListResponse**](ListSipIpAccessControlListResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_ip_access_control_list + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList update_sip_ip_access_control_list(account_sid, sid, friendly_name) + + +Rename an IpAccessControlList + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to udpate. | [required] | +**friendly_name** | **String** | A human readable descriptive text, up to 255 characters long. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAccessControlListMappingApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAccessControlListMappingApi.md new file mode 100644 index 00000000..5d104154 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAccessControlListMappingApi.md @@ -0,0 +1,142 @@ +# \Api20100401IpAccessControlListMappingApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_ip_access_control_list_mapping**](Api20100401IpAccessControlListMappingApi.md#create_sip_ip_access_control_list_mapping) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +[**delete_sip_ip_access_control_list_mapping**](Api20100401IpAccessControlListMappingApi.md#delete_sip_ip_access_control_list_mapping) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +[**fetch_sip_ip_access_control_list_mapping**](Api20100401IpAccessControlListMappingApi.md#fetch_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +[**list_sip_ip_access_control_list_mapping**](Api20100401IpAccessControlListMappingApi.md#list_sip_ip_access_control_list_mapping) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | + + + +## create_sip_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping create_sip_ip_access_control_list_mapping(account_sid, domain_sid, ip_access_control_list_sid) + + +Create a new IpAccessControlListMapping resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**ip_access_control_list_sid** | **String** | The unique id of the IP access control list to map to the SIP domain. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_ip_access_control_list_mapping + +> delete_sip_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Delete an IpAccessControlListMapping resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_ip_access_control_list_mapping + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping fetch_sip_ip_access_control_list_mapping(account_sid, domain_sid, sid) + + +Fetch an IpAccessControlListMapping resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_ip_access_control_list_mapping + +> crate::models::ListSipIpAccessControlListMappingResponse list_sip_ip_access_control_list_mapping(account_sid, domain_sid, page_size, page, page_token) + + +Retrieve a list of IpAccessControlListMapping resources. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the Account that is responsible for this resource. | [required] | +**domain_sid** | **String** | A 34 character string that uniquely identifies the SIP domain. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipIpAccessControlListMappingResponse**](ListSipIpAccessControlListMappingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAddressApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAddressApi.md new file mode 100644 index 00000000..5e5a95bb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401IpAddressApi.md @@ -0,0 +1,180 @@ +# \Api20100401IpAddressApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_sip_ip_address**](Api20100401IpAddressApi.md#create_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +[**delete_sip_ip_address**](Api20100401IpAddressApi.md#delete_sip_ip_address) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**fetch_sip_ip_address**](Api20100401IpAddressApi.md#fetch_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**list_sip_ip_address**](Api20100401IpAddressApi.md#list_sip_ip_address) | **GET** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +[**update_sip_ip_address**](Api20100401IpAddressApi.md#update_sip_ip_address) | **POST** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | + + + +## create_sip_ip_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress create_sip_ip_address(account_sid, ip_access_control_list_sid, friendly_name, ip_address, cidr_prefix_length) + + +Create a new IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid with which to associate the created IpAddress resource. | [required] | +**friendly_name** | **String** | A human readable descriptive text for this resource, up to 255 characters long. | [required] | +**ip_address** | **String** | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. | [required] | +**cidr_prefix_length** | Option<**i32**> | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_sip_ip_address + +> delete_sip_ip_address(account_sid, ip_access_control_list_sid, sid) + + +Delete an IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to delete. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_sip_ip_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress fetch_sip_ip_address(account_sid, ip_access_control_list_sid, sid) + + +Read one IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to fetch. | [required] | +**sid** | **String** | A 34 character string that uniquely identifies the IpAddress resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_sip_ip_address + +> crate::models::ListSipIpAddressResponse list_sip_ip_address(account_sid, ip_access_control_list_sid, page_size, page, page_token) + + +Read multiple IpAddress resources. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSipIpAddressResponse**](ListSipIpAddressResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_sip_ip_address + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress update_sip_ip_address(account_sid, ip_access_control_list_sid, sid, ip_address, friendly_name, cidr_prefix_length) + + +Update an IpAddress resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [required] | +**ip_access_control_list_sid** | **String** | The IpAccessControlList Sid that identifies the IpAddress resources to update. | [required] | +**sid** | **String** | A 34 character string that identifies the IpAddress resource to update. | [required] | +**ip_address** | Option<**String**> | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. | | +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 255 characters long. | | +**cidr_prefix_length** | Option<**i32**> | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401KeyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401KeyApi.md new file mode 100644 index 00000000..dc743dce --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401KeyApi.md @@ -0,0 +1,139 @@ +# \Api20100401KeyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_key**](Api20100401KeyApi.md#delete_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**fetch_key**](Api20100401KeyApi.md#fetch_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**list_key**](Api20100401KeyApi.md#list_key) | **GET** /2010-04-01/Accounts/{AccountSid}/Keys.json | +[**update_key**](Api20100401KeyApi.md#update_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | + + + +## delete_key + +> delete_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Key resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodKey fetch_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Key resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodKey**](api.v2010.account.key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_key + +> crate::models::ListKeyResponse list_key(account_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListKeyResponse**](ListKeyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodKey update_key(account_sid, sid, friendly_name) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Key resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodKey**](api.v2010.account.key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401LastMonthApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401LastMonthApi.md new file mode 100644 index 00000000..c7920372 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401LastMonthApi.md @@ -0,0 +1,46 @@ +# \Api20100401LastMonthApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_last_month**](Api20100401LastMonthApi.md#list_usage_record_last_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json | + + + +## list_usage_record_last_month + +> crate::models::ListUsageRecordLastMonthResponse list_usage_record_last_month(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordLastMonthEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordLastMonthResponse**](ListUsageRecordLastMonthResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401LocalApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401LocalApi.md new file mode 100644 index 00000000..83babb51 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401LocalApi.md @@ -0,0 +1,153 @@ +# \Api20100401LocalApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_incoming_phone_number_local**](Api20100401LocalApi.md#create_incoming_phone_number_local) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +[**list_available_phone_number_local**](Api20100401LocalApi.md#list_available_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | +[**list_incoming_phone_number_local**](Api20100401LocalApi.md#list_incoming_phone_number_local) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | + + + +## create_incoming_phone_number_local + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal create_incoming_phone_number_local(account_sid, phone_number, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, identity_sid, address_sid, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, bundle_sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**phone_number** | **String** | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberLocalEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberLocalEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal**](api.v2010.account.incoming_phone_number.incoming_phone_number_local.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_local + +> crate::models::ListAvailablePhoneNumberLocalResponse list_available_phone_number_local(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberLocalResponse**](ListAvailablePhoneNumberLocalResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_local + +> crate::models::ListIncomingPhoneNumberLocalResponse list_incoming_phone_number_local(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberLocalResponse**](ListIncomingPhoneNumberLocalResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MachineToMachineApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MachineToMachineApi.md new file mode 100644 index 00000000..f9abec39 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MachineToMachineApi.md @@ -0,0 +1,61 @@ +# \Api20100401MachineToMachineApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_available_phone_number_machine_to_machine**](Api20100401MachineToMachineApi.md#list_available_phone_number_machine_to_machine) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | + + + +## list_available_phone_number_machine_to_machine + +> crate::models::ListAvailablePhoneNumberMachineToMachineResponse list_available_phone_number_machine_to_machine(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberMachineToMachineResponse**](ListAvailablePhoneNumberMachineToMachineResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MediaApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MediaApi.md new file mode 100644 index 00000000..d8e9b9ce --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MediaApi.md @@ -0,0 +1,112 @@ +# \Api20100401MediaApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_media**](Api20100401MediaApi.md#delete_media) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +[**fetch_media**](Api20100401MediaApi.md#fetch_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +[**list_media**](Api20100401MediaApi.md#list_media) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | + + + +## delete_media + +> delete_media(account_sid, message_sid, sid) + + +Delete the Media resource. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resource. | [required] | +**message_sid** | **String** | The SID of the Message resource that is associated with the Media resource. | [required] | +**sid** | **String** | The unique identifier of the to-be-deleted Media resource. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_media + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia fetch_media(account_sid, message_sid, sid) + + +Fetch a single Media resource associated with a specific Message resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Media resource. | [required] | +**message_sid** | **String** | The SID of the Message resource that is associated with the Media resource. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Media resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia**](api.v2010.account.message.media.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_media + +> crate::models::ListMediaResponse list_media(account_sid, message_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token) + + +Read a list of Media resources associated with a specific Message resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resources. | [required] | +**message_sid** | **String** | The SID of the Message resource that is associated with the Media resources. | [required] | +**date_created** | Option<**String**> | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. | | +**date_created_less_than** | Option<**String**> | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. | | +**date_created_greater_than** | Option<**String**> | Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListMediaResponse**](ListMediaResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MemberApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MemberApi.md new file mode 100644 index 00000000..9d07ab71 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MemberApi.md @@ -0,0 +1,111 @@ +# \Api20100401MemberApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_member**](Api20100401MemberApi.md#fetch_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +[**list_member**](Api20100401MemberApi.md#list_member) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json | +[**update_member**](Api20100401MemberApi.md#update_member) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | + + + +## fetch_member + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember fetch_member(account_sid, queue_sid, call_sid) + + +Fetch a specific member from the queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. | [required] | +**queue_sid** | **String** | The SID of the Queue in which to find the members to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember**](api.v2010.account.queue.member.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_member + +> crate::models::ListMemberResponse list_member(account_sid, queue_sid, page_size, page, page_token) + + +Retrieve the members of the queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. | [required] | +**queue_sid** | **String** | The SID of the Queue in which to find the members | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListMemberResponse**](ListMemberResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_member + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember update_member(account_sid, queue_sid, call_sid, url, method) + + +Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. | [required] | +**queue_sid** | **String** | The SID of the Queue in which to find the members to update. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. | [required] | +**url** | **String** | The absolute URL of the Queue resource. | [required] | +**method** | Option<**String**> | How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember**](api.v2010.account.queue.member.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MessageApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MessageApi.md new file mode 100644 index 00000000..a9309927 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MessageApi.md @@ -0,0 +1,199 @@ +# \Api20100401MessageApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_message**](Api20100401MessageApi.md#create_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages.json | +[**delete_message**](Api20100401MessageApi.md#delete_message) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**fetch_message**](Api20100401MessageApi.md#fetch_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**list_message**](Api20100401MessageApi.md#list_message) | **GET** /2010-04-01/Accounts/{AccountSid}/Messages.json | +[**update_message**](Api20100401MessageApi.md#update_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | + + + +## create_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessage create_message(account_sid, to, status_callback, application_sid, max_price, provide_feedback, attempt, validity_period, force_delivery, content_retention, address_retention, smart_encoded, persistent_action, shorten_urls, schedule_type, send_at, send_as_mms, content_variables, risk_check, from, messaging_service_sid, body, media_url, content_sid) + + +Send a message + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) creating the Message resource. | [required] | +**to** | **String** | The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`. | [required] | +**status_callback** | Option<**String**> | The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). | | +**application_sid** | Option<**String**> | The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. | | +**max_price** | Option<**f32**> | The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`. | | +**provide_feedback** | Option<**bool**> | Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. | | +**attempt** | Option<**i32**> | Total number of attempts made (including this request) to send the message regardless of the provider used | | +**validity_period** | Option<**i32**> | The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) | | +**force_delivery** | Option<**bool**> | Reserved | | +**content_retention** | Option<**crate::models::MessageEnumContentRetention**> | | | +**address_retention** | Option<**crate::models::MessageEnumAddressRetention**> | | | +**smart_encoded** | Option<**bool**> | Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. | | +**persistent_action** | Option<[**Vec**](String.md)> | Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). | | +**shorten_urls** | Option<**bool**> | For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. | | +**schedule_type** | Option<**crate::models::MessageEnumScheduleType**> | | | +**send_at** | Option<**String**> | The time that Twilio will send the message. Must be in ISO 8601 format. | | +**send_as_mms** | Option<**bool**> | If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. | | +**content_variables** | Option<**String**> | For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. | | +**risk_check** | Option<**crate::models::MessageEnumRiskCheck**> | | | +**from** | Option<**String**> | The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool. | | +**messaging_service_sid** | Option<**String**> | The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. | | +**body** | Option<**String**> | The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). | | +**media_url** | Option<[**Vec**](String.md)> | The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. | | +**content_sid** | Option<**String**> | For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessage**](api.v2010.account.message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_message + +> delete_message(account_sid, sid) + + +Deletes a Message resource from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource | [required] | +**sid** | **String** | The SID of the Message resource you wish to delete | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessage fetch_message(account_sid, sid) + + +Fetch a specific Message + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource | [required] | +**sid** | **String** | The SID of the Message resource to be fetched | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessage**](api.v2010.account.message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_message + +> crate::models::ListMessageResponse list_message(account_sid, to, from, date_sent, date_sent_less_than, date_sent_greater_than, page_size, page, page_token) + + +Retrieve a list of Message resources associated with a Twilio Account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resources. | [required] | +**to** | Option<**String**> | Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111` | | +**from** | Option<**String**> | Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999` | | +**date_sent** | Option<**String**> | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). | | +**date_sent_less_than** | Option<**String**> | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). | | +**date_sent_greater_than** | Option<**String**> | Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListMessageResponse**](ListMessageResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodMessage update_message(account_sid, sid, body, status) + + +Update a Message resource (used to redact Message `body` text and to cancel not-yet-sent messages) + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. | [required] | +**sid** | **String** | The SID of the Message resource to be updated | [required] | +**body** | Option<**String**> | The new `body` of the Message resource. To redact the text content of a Message, this parameter's value must be an empty string | | +**status** | Option<**crate::models::MessageEnumUpdateStatus**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodMessage**](api.v2010.account.message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MobileApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MobileApi.md new file mode 100644 index 00000000..152c9e95 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MobileApi.md @@ -0,0 +1,153 @@ +# \Api20100401MobileApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_incoming_phone_number_mobile**](Api20100401MobileApi.md#create_incoming_phone_number_mobile) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +[**list_available_phone_number_mobile**](Api20100401MobileApi.md#list_available_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | +[**list_incoming_phone_number_mobile**](Api20100401MobileApi.md#list_incoming_phone_number_mobile) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | + + + +## create_incoming_phone_number_mobile + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile create_incoming_phone_number_mobile(account_sid, phone_number, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, identity_sid, address_sid, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, bundle_sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**phone_number** | **String** | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those of the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberMobileEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberMobileEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile**](api.v2010.account.incoming_phone_number.incoming_phone_number_mobile.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_mobile + +> crate::models::ListAvailablePhoneNumberMobileResponse list_available_phone_number_mobile(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberMobileResponse**](ListAvailablePhoneNumberMobileResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_mobile + +> crate::models::ListIncomingPhoneNumberMobileResponse list_incoming_phone_number_mobile(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberMobileResponse**](ListIncomingPhoneNumberMobileResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MonthlyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MonthlyApi.md new file mode 100644 index 00000000..b35876fa --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401MonthlyApi.md @@ -0,0 +1,46 @@ +# \Api20100401MonthlyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_monthly**](Api20100401MonthlyApi.md#list_usage_record_monthly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json | + + + +## list_usage_record_monthly + +> crate::models::ListUsageRecordMonthlyResponse list_usage_record_monthly(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordMonthlyEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordMonthlyResponse**](ListUsageRecordMonthlyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NationalApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NationalApi.md new file mode 100644 index 00000000..b6f53232 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NationalApi.md @@ -0,0 +1,61 @@ +# \Api20100401NationalApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_available_phone_number_national**](Api20100401NationalApi.md#list_available_phone_number_national) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | + + + +## list_available_phone_number_national + +> crate::models::ListAvailablePhoneNumberNationalResponse list_available_phone_number_national(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberNationalResponse**](ListAvailablePhoneNumberNationalResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NewKeyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NewKeyApi.md new file mode 100644 index 00000000..6c5d7cb4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NewKeyApi.md @@ -0,0 +1,40 @@ +# \Api20100401NewKeyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_new_key**](Api20100401NewKeyApi.md#create_new_key) | **POST** /2010-04-01/Accounts/{AccountSid}/Keys.json | + + + +## create_new_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodNewKey create_new_key(account_sid, friendly_name) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodNewKey**](api.v2010.account.new_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NewSigningKeyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NewSigningKeyApi.md new file mode 100644 index 00000000..67769c26 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NewSigningKeyApi.md @@ -0,0 +1,40 @@ +# \Api20100401NewSigningKeyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_new_signing_key**](Api20100401NewSigningKeyApi.md#create_new_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | + + + +## create_new_signing_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodNewSigningKey create_new_signing_key(account_sid, friendly_name) + + +Create a new Signing Key for the account making the request. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodNewSigningKey**](api.v2010.account.new_signing_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NotificationApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NotificationApi.md new file mode 100644 index 00000000..1819182f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401NotificationApi.md @@ -0,0 +1,150 @@ +# \Api20100401NotificationApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_call_notification**](Api20100401NotificationApi.md#fetch_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | +[**fetch_notification**](Api20100401NotificationApi.md#fetch_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | +[**list_call_notification**](Api20100401NotificationApi.md#list_call_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | +[**list_notification**](Api20100401NotificationApi.md#list_notification) | **GET** /2010-04-01/Accounts/{AccountSid}/Notifications.json | + + + +## fetch_call_notification + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance fetch_call_notification(account_sid, call_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance**](api.v2010.account.call.call_notification-instance.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_notification + +> crate::models::ApiPeriodV2010PeriodAccountPeriodNotificationInstance fetch_notification(account_sid, sid) + + +Fetch a notification belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Notification resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodNotificationInstance**](api.v2010.account.notification-instance.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call_notification + +> crate::models::ListCallNotificationResponse list_call_notification(account_sid, call_sid, log, message_date, message_date_less_than, message_date_greater_than, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. | [required] | +**log** | Option<**i32**> | Only read notifications of the specified log level. Can be: `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read. | | +**message_date** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_less_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_greater_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallNotificationResponse**](ListCallNotificationResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_notification + +> crate::models::ListNotificationResponse list_notification(account_sid, log, message_date, message_date_less_than, message_date_greater_than, page_size, page, page_token) + + +Retrieve a list of notifications belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. | [required] | +**log** | Option<**i32**> | Only read notifications of the specified log level. Can be: `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read. | | +**message_date** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_less_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**message_date_greater_than** | Option<**String**> | Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListNotificationResponse**](ListNotificationResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401OutgoingCallerIdApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401OutgoingCallerIdApi.md new file mode 100644 index 00000000..54742f2a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401OutgoingCallerIdApi.md @@ -0,0 +1,141 @@ +# \Api20100401OutgoingCallerIdApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_outgoing_caller_id**](Api20100401OutgoingCallerIdApi.md#delete_outgoing_caller_id) | **DELETE** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**fetch_outgoing_caller_id**](Api20100401OutgoingCallerIdApi.md#fetch_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**list_outgoing_caller_id**](Api20100401OutgoingCallerIdApi.md#list_outgoing_caller_id) | **GET** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +[**update_outgoing_caller_id**](Api20100401OutgoingCallerIdApi.md#update_outgoing_caller_id) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | + + + +## delete_outgoing_caller_id + +> delete_outgoing_caller_id(account_sid, sid) + + +Delete the caller-id specified from the account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_outgoing_caller_id + +> crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId fetch_outgoing_caller_id(account_sid, sid) + + +Fetch an outgoing-caller-id belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId**](api.v2010.account.outgoing_caller_id.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_outgoing_caller_id + +> crate::models::ListOutgoingCallerIdResponse list_outgoing_caller_id(account_sid, phone_number, friendly_name, page_size, page, page_token) + + +Retrieve a list of outgoing-caller-ids belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. | [required] | +**phone_number** | Option<**String**> | The phone number of the OutgoingCallerId resources to read. | | +**friendly_name** | Option<**String**> | The string that identifies the OutgoingCallerId resources to read. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListOutgoingCallerIdResponse**](ListOutgoingCallerIdResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_outgoing_caller_id + +> crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId update_outgoing_caller_id(account_sid, sid, friendly_name) + + +Updates the caller-id + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId**](api.v2010.account.outgoing_caller_id.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ParticipantApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ParticipantApi.md new file mode 100644 index 00000000..786df973 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ParticipantApi.md @@ -0,0 +1,236 @@ +# \Api20100401ParticipantApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_participant**](Api20100401ParticipantApi.md#create_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +[**delete_participant**](Api20100401ParticipantApi.md#delete_participant) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**fetch_participant**](Api20100401ParticipantApi.md#fetch_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**list_participant**](Api20100401ParticipantApi.md#list_participant) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +[**update_participant**](Api20100401ParticipantApi.md#update_participant) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | + + + +## create_participant + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant create_participant(account_sid, conference_sid, from, to, status_callback, status_callback_method, status_callback_event, label, timeout, record, muted, beep, start_conference_on_enter, end_conference_on_exit, wait_url, wait_method, early_media, max_participants, conference_record, conference_trim, conference_status_callback, conference_status_callback_method, conference_status_callback_event, recording_channels, recording_status_callback, recording_status_callback_method, sip_auth_username, sip_auth_password, region, conference_recording_status_callback, conference_recording_status_callback_method, recording_status_callback_event, conference_recording_status_callback_event, coaching, call_sid_to_coach, jitter_buffer_size, byoc, caller_id, call_reason, recording_track, time_limit, machine_detection, machine_detection_timeout, machine_detection_speech_threshold, machine_detection_speech_end_threshold, machine_detection_silence_timeout, amd_status_callback, amd_status_callback_method, trim) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**conference_sid** | **String** | The SID of the participant's conference. | [required] | +**from** | **String** | The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint. | [required] | +**to** | **String** | The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified. | [required] | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. | | +**status_callback_event** | Option<[**Vec**](String.md)> | The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`. | | +**label** | Option<**String**> | A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. | | +**timeout** | Option<**i32**> | The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between `5` and `600`, inclusive. The default value is `60`. We always add a 5-second timeout buffer to outgoing calls, so value of 10 would result in an actual timeout that was closer to 15 seconds. | | +**record** | Option<**bool**> | Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | | +**muted** | Option<**bool**> | Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. | | +**beep** | Option<**String**> | Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | | +**start_conference_on_enter** | Option<**bool**> | Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. | | +**end_conference_on_exit** | Option<**bool**> | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | | +**wait_url** | Option<**String**> | The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic). | | +**wait_method** | Option<**String**> | The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file. | | +**early_media** | Option<**bool**> | Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`. | | +**max_participants** | Option<**i32**> | The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | | +**conference_record** | Option<**String**> | Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | | +**conference_trim** | Option<**String**> | Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | | +**conference_status_callback** | Option<**String**> | The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. | | +**conference_status_callback_method** | Option<**String**> | The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**conference_status_callback_event** | Option<[**Vec**](String.md)> | The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`. | | +**recording_channels** | Option<**String**> | The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | | +**recording_status_callback** | Option<**String**> | The URL that we should call using the `recording_status_callback_method` when the recording status changes. | | +**recording_status_callback_method** | Option<**String**> | The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sip_auth_username** | Option<**String**> | The SIP username used for authentication. | | +**sip_auth_password** | Option<**String**> | The SIP password for authentication. | | +**region** | Option<**String**> | The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`. | | +**conference_recording_status_callback** | Option<**String**> | The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | | +**conference_recording_status_callback_method** | Option<**String**> | The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**recording_status_callback_event** | Option<[**Vec**](String.md)> | The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`. | | +**conference_recording_status_callback_event** | Option<[**Vec**](String.md)> | The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'` | | +**coaching** | Option<**bool**> | Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. | | +**call_sid_to_coach** | Option<**String**> | The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. | | +**jitter_buffer_size** | Option<**String**> | Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: `off`, `small`, `medium`, and `large`. Default to `large`. | | +**byoc** | Option<**String**> | The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta) | | +**caller_id** | Option<**String**> | The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint. | | +**call_reason** | Option<**String**> | The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta) | | +**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio. | | +**time_limit** | Option<**i32**> | The maximum duration of the call in seconds. Constraints depend on account and configuration. | | +**machine_detection** | Option<**String**> | Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). | | +**machine_detection_timeout** | Option<**i32**> | The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. | | +**machine_detection_speech_threshold** | Option<**i32**> | The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400. | | +**machine_detection_speech_end_threshold** | Option<**i32**> | The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | | +**machine_detection_silence_timeout** | Option<**i32**> | The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | | +**amd_status_callback** | Option<**String**> | The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. | | +**amd_status_callback_method** | Option<**String**> | The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | | +**trim** | Option<**String**> | Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant**](api.v2010.account.conference.participant.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_participant + +> delete_participant(account_sid, conference_sid, call_sid) + + +Kick a participant from a given conference + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. | [required] | +**conference_sid** | **String** | The SID of the conference with the participants to delete. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to delete. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_participant + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant fetch_participant(account_sid, conference_sid, call_sid) + + +Fetch an instance of a participant + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. | [required] | +**conference_sid** | **String** | The SID of the conference with the participant to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to fetch. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant**](api.v2010.account.conference.participant.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_participant + +> crate::models::ListParticipantResponse list_participant(account_sid, conference_sid, muted, hold, coaching, page_size, page, page_token) + + +Retrieve a list of participants belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. | [required] | +**conference_sid** | **String** | The SID of the conference with the participants to read. | [required] | +**muted** | Option<**bool**> | Whether to return only participants that are muted. Can be: `true` or `false`. | | +**hold** | Option<**bool**> | Whether to return only participants that are on hold. Can be: `true` or `false`. | | +**coaching** | Option<**bool**> | Whether to return only participants who are coaching another call. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListParticipantResponse**](ListParticipantResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_participant + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant update_participant(account_sid, conference_sid, call_sid, muted, hold, hold_url, hold_method, announce_url, announce_method, wait_url, wait_method, beep_on_exit, end_conference_on_exit, coaching, call_sid_to_coach) + + +Update the properties of the participant + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. | [required] | +**conference_sid** | **String** | The SID of the conference with the participant to update. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. | [required] | +**muted** | Option<**bool**> | Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`. | | +**hold** | Option<**bool**> | Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference. | | +**hold_url** | Option<**String**> | The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. | | +**hold_method** | Option<**String**> | The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. | | +**announce_url** | Option<**String**> | The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. | | +**announce_method** | Option<**String**> | The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**wait_url** | Option<**String**> | The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic). | | +**wait_method** | Option<**String**> | The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file. | | +**beep_on_exit** | Option<**bool**> | Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. | | +**end_conference_on_exit** | Option<**bool**> | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | | +**coaching** | Option<**bool**> | Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. | | +**call_sid_to_coach** | Option<**String**> | The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant**](api.v2010.account.conference.participant.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401PayloadApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401PayloadApi.md new file mode 100644 index 00000000..a324002e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401PayloadApi.md @@ -0,0 +1,112 @@ +# \Api20100401PayloadApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_recording_add_on_result_payload**](Api20100401PayloadApi.md#delete_recording_add_on_result_payload) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +[**fetch_recording_add_on_result_payload**](Api20100401PayloadApi.md#fetch_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +[**list_recording_add_on_result_payload**](Api20100401PayloadApi.md#list_recording_add_on_result_payload) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json | + + + +## delete_recording_add_on_result_payload + +> delete_recording_add_on_result_payload(account_sid, reference_sid, add_on_result_sid, sid) + + +Delete a payload from the result along with all associated Data + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. | [required] | +**reference_sid** | **String** | The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. | [required] | +**add_on_result_sid** | **String** | The SID of the AddOnResult to which the payloads to delete belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording_add_on_result_payload + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload fetch_recording_add_on_result_payload(account_sid, reference_sid, add_on_result_sid, sid) + + +Fetch an instance of a result payload + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. | [required] | +**reference_sid** | **String** | The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. | [required] | +**add_on_result_sid** | **String** | The SID of the AddOnResult to which the payload to fetch belongs. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload**](api.v2010.account.recording.recording_add_on_result.recording_add_on_result_payload.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording_add_on_result_payload + +> crate::models::ListRecordingAddOnResultPayloadResponse list_recording_add_on_result_payload(account_sid, reference_sid, add_on_result_sid, page_size, page, page_token) + + +Retrieve a list of payloads belonging to the AddOnResult + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. | [required] | +**reference_sid** | **String** | The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. | [required] | +**add_on_result_sid** | **String** | The SID of the AddOnResult to which the payloads to read belongs. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingAddOnResultPayloadResponse**](ListRecordingAddOnResultPayloadResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401PaymentApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401PaymentApi.md new file mode 100644 index 00000000..1f89596f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401PaymentApi.md @@ -0,0 +1,93 @@ +# \Api20100401PaymentApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_payments**](Api20100401PaymentApi.md#create_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | +[**update_payments**](Api20100401PaymentApi.md#update_payments) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | + + + +## create_payments + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments create_payments(account_sid, call_sid, idempotency_key, status_callback, bank_account_type, charge_amount, currency, description, input, min_postal_code_length, parameter, payment_connector, payment_method, postal_code, security_code, timeout, token_type, valid_card_types) + + +create an instance of payments. This will start a new payments session + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**call_sid** | **String** | The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF. | [required] | +**idempotency_key** | **String** | A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated. | [required] | +**status_callback** | **String** | Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [expected StatusCallback values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback) | [required] | +**bank_account_type** | Option<**crate::models::PaymentsEnumBankAccountType**> | | | +**charge_amount** | Option<**f32**> | A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with `currency` field. Leave blank or set to 0 to tokenize. | | +**currency** | Option<**String**> | The currency of the `charge_amount`, formatted as [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The default value is `USD` and all values allowed from the Pay Connector are accepted. | | +**description** | Option<**String**> | The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions. | | +**input** | Option<**String**> | A list of inputs that should be accepted. Currently only `dtmf` is supported. All digits captured during a pay session are redacted from the logs. | | +**min_postal_code_length** | Option<**i32**> | A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. | | +**parameter** | Option<[**serde_json::Value**](serde_json::Value.md)> | A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). | | +**payment_connector** | Option<**String**> | This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [ Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. | | +**payment_method** | Option<**crate::models::PaymentsEnumPaymentMethod**> | | | +**postal_code** | Option<**bool**> | Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is `true`. | | +**security_code** | Option<**bool**> | Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is `true`. | | +**timeout** | Option<**i32**> | The number of seconds that should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`. | | +**token_type** | Option<**crate::models::PaymentsEnumTokenType**> | | | +**valid_card_types** | Option<**String**> | Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments**](api.v2010.account.call.payments.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_payments + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments update_payments(account_sid, call_sid, sid, idempotency_key, status_callback, capture, status) + + +update an instance of payments with different phases of payment flows. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. | [required] | +**call_sid** | **String** | The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource. | [required] | +**sid** | **String** | The SID of Payments session that needs to be updated. | [required] | +**idempotency_key** | **String** | A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated. | [required] | +**status_callback** | **String** | Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests. | [required] | +**capture** | Option<**crate::models::PaymentsEnumCapture**> | | | +**status** | Option<**crate::models::PaymentsEnumStatus**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments**](api.v2010.account.call.payments.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401QueueApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401QueueApi.md new file mode 100644 index 00000000..c6f14e50 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401QueueApi.md @@ -0,0 +1,173 @@ +# \Api20100401QueueApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_queue**](Api20100401QueueApi.md#create_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues.json | +[**delete_queue**](Api20100401QueueApi.md#delete_queue) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**fetch_queue**](Api20100401QueueApi.md#fetch_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**list_queue**](Api20100401QueueApi.md#list_queue) | **GET** /2010-04-01/Accounts/{AccountSid}/Queues.json | +[**update_queue**](Api20100401QueueApi.md#update_queue) | **POST** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | + + + +## create_queue + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueue create_queue(account_sid, friendly_name, max_size) + + +Create a queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**friendly_name** | **String** | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | [required] | +**max_size** | Option<**i32**> | The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueue**](api.v2010.account.queue.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_queue + +> delete_queue(account_sid, sid) + + +Remove an empty queue + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Queue resource to delete | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_queue + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueue fetch_queue(account_sid, sid) + + +Fetch an instance of a queue identified by the QueueSid + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Queue resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueue**](api.v2010.account.queue.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_queue + +> crate::models::ListQueueResponse list_queue(account_sid, page_size, page, page_token) + + +Retrieve a list of queues belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListQueueResponse**](ListQueueResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_queue + +> crate::models::ApiPeriodV2010PeriodAccountPeriodQueue update_queue(account_sid, sid, friendly_name, max_size) + + +Update the queue with the new parameters + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Queue resource to update | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | | +**max_size** | Option<**i32**> | The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodQueue**](api.v2010.account.queue.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401RecordApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401RecordApi.md new file mode 100644 index 00000000..db61279c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401RecordApi.md @@ -0,0 +1,46 @@ +# \Api20100401RecordApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record**](Api20100401RecordApi.md#list_usage_record) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records.json | + + + +## list_usage_record + +> crate::models::ListUsageRecordResponse list_usage_record(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + +Retrieve a list of usage-records belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordResponse**](ListUsageRecordResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401RecordingApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401RecordingApi.md new file mode 100644 index 00000000..dd2e81bf --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401RecordingApi.md @@ -0,0 +1,429 @@ +# \Api20100401RecordingApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_call_recording**](Api20100401RecordingApi.md#create_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +[**delete_call_recording**](Api20100401RecordingApi.md#delete_call_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**delete_conference_recording**](Api20100401RecordingApi.md#delete_conference_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**delete_recording**](Api20100401RecordingApi.md#delete_recording) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +[**fetch_call_recording**](Api20100401RecordingApi.md#fetch_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**fetch_conference_recording**](Api20100401RecordingApi.md#fetch_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**fetch_recording**](Api20100401RecordingApi.md#fetch_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +[**list_call_recording**](Api20100401RecordingApi.md#list_call_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +[**list_conference_recording**](Api20100401RecordingApi.md#list_conference_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | +[**list_recording**](Api20100401RecordingApi.md#list_recording) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings.json | +[**update_call_recording**](Api20100401RecordingApi.md#update_call_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**update_conference_recording**](Api20100401RecordingApi.md#update_conference_recording) | **POST** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | + + + +## create_call_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording create_call_recording(account_sid, call_sid, recording_status_callback_event, recording_status_callback, recording_status_callback_method, trim, recording_channels, recording_track) + + +Create a recording for the call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. | [required] | +**recording_status_callback_event** | Option<[**Vec**](String.md)> | The recording status events on which we should call the `recording_status_callback` URL. Can be: `in-progress`, `completed` and `absent` and the default is `completed`. Separate multiple event values with a space. | | +**recording_status_callback** | Option<**String**> | The URL we should call using the `recording_status_callback_method` on each recording event specified in `recording_status_callback_event`. For more information, see [RecordingStatusCallback parameters](https://www.twilio.com/docs/voice/api/recording#recordingstatuscallback). | | +**recording_status_callback_method** | Option<**String**> | The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. | | +**trim** | Option<**String**> | Whether to trim any leading and trailing silence in the recording. Can be: `trim-silence` or `do-not-trim` and the default is `do-not-trim`. `trim-silence` trims the silence from the beginning and end of the recording and `do-not-trim` does not. | | +**recording_channels** | Option<**String**> | The number of channels used in the recording. Can be: `mono` or `dual` and the default is `mono`. `mono` records all parties of the call into one channel. `dual` records each party of a 2-party call into separate channels. | | +**recording_track** | Option<**String**> | The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_call_recording + +> delete_call_recording(account_sid, call_sid, sid) + + +Delete a recording from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_conference_recording + +> delete_conference_recording(account_sid, conference_sid, sid) + + +Delete a recording from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_recording + +> delete_recording(account_sid, sid) + + +Delete a recording from your account + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_call_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording fetch_call_recording(account_sid, call_sid, sid) + + +Fetch an instance of a recording for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_conference_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording fetch_conference_recording(account_sid, conference_sid, sid) + + +Fetch an instance of a recording for a call + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording**](api.v2010.account.conference.conference_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecording fetch_recording(account_sid, sid, include_soft_deleted) + + +Fetch an instance of a recording + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to fetch. | [required] | +**include_soft_deleted** | Option<**bool**> | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecording**](api.v2010.account.recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_call_recording + +> crate::models::ListCallRecordingResponse list_call_recording(account_sid, call_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token) + + +Retrieve a list of recordings belonging to the call used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | [required] | +**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListCallRecordingResponse**](ListCallRecordingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_conference_recording + +> crate::models::ListConferenceRecordingResponse list_conference_recording(account_sid, conference_sid, date_created, date_created_less_than, date_created_greater_than, page_size, page, page_token) + + +Retrieve a list of recordings belonging to the call used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to read. | [required] | +**date_created** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_less_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**date_created_greater_than** | Option<**String**> | The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListConferenceRecordingResponse**](ListConferenceRecordingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording + +> crate::models::ListRecordingResponse list_recording(account_sid, date_created, date_created_less_than, date_created_greater_than, call_sid, conference_sid, include_soft_deleted, page_size, page, page_token) + + +Retrieve a list of recordings belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | [required] | +**date_created** | Option<**String**> | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. | | +**date_created_less_than** | Option<**String**> | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. | | +**date_created_greater_than** | Option<**String**> | Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. | | +**call_sid** | Option<**String**> | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | | +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording to read. | | +**include_soft_deleted** | Option<**bool**> | A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingResponse**](ListRecordingResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_call_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording update_call_recording(account_sid, call_sid, sid, status, pause_behavior) + + +Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recording. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. | [required] | +**call_sid** | **String** | The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Recording resource to update. | [required] | +**status** | **crate::models::CallRecordingEnumStatus** | | [required] | +**pause_behavior** | Option<**String**> | Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording**](api.v2010.account.call.call_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_conference_recording + +> crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording update_conference_recording(account_sid, conference_sid, sid, status, pause_behavior) + + +Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. | [required] | +**conference_sid** | **String** | The Conference SID that identifies the conference associated with the recording to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. | [required] | +**status** | **crate::models::ConferenceRecordingEnumStatus** | | [required] | +**pause_behavior** | Option<**String**> | Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording**](api.v2010.account.conference.conference_recording.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SafelistApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SafelistApi.md new file mode 100644 index 00000000..29d093a3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SafelistApi.md @@ -0,0 +1,101 @@ +# \Api20100401SafelistApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_safelist**](Api20100401SafelistApi.md#create_safelist) | **POST** /2010-04-01/SafeList/Numbers.json | +[**delete_safelist**](Api20100401SafelistApi.md#delete_safelist) | **DELETE** /2010-04-01/SafeList/Numbers.json | +[**fetch_safelist**](Api20100401SafelistApi.md#fetch_safelist) | **GET** /2010-04-01/SafeList/Numbers.json | + + + +## create_safelist + +> crate::models::ApiPeriodV2010PeriodSafelist create_safelist(phone_number) + + +Add a new phone number to SafeList. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**phone_number** | **String** | The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodSafelist**](api.v2010.safelist.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_safelist + +> delete_safelist(phone_number) + + +Remove a phone number from SafeList. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**phone_number** | Option<**String**> | The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_safelist + +> crate::models::ApiPeriodV2010PeriodSafelist fetch_safelist(phone_number) + + +Check if a phone number exists in SafeList. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**phone_number** | Option<**String**> | The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodSafelist**](api.v2010.safelist.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SharedCostApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SharedCostApi.md new file mode 100644 index 00000000..5373c6c2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SharedCostApi.md @@ -0,0 +1,61 @@ +# \Api20100401SharedCostApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_available_phone_number_shared_cost**](Api20100401SharedCostApi.md#list_available_phone_number_shared_cost) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | + + + +## list_available_phone_number_shared_cost + +> crate::models::ListAvailablePhoneNumberSharedCostResponse list_available_phone_number_shared_cost(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberSharedCostResponse**](ListAvailablePhoneNumberSharedCostResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ShortCodeApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ShortCodeApi.md new file mode 100644 index 00000000..d560aa1b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ShortCodeApi.md @@ -0,0 +1,114 @@ +# \Api20100401ShortCodeApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**fetch_short_code**](Api20100401ShortCodeApi.md#fetch_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +[**list_short_code**](Api20100401ShortCodeApi.md#list_short_code) | **GET** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json | +[**update_short_code**](Api20100401ShortCodeApi.md#update_short_code) | **POST** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | + + + +## fetch_short_code + +> crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode fetch_short_code(account_sid, sid) + + +Fetch an instance of a short code + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ShortCode resource to fetch | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode**](api.v2010.account.short_code.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_short_code + +> crate::models::ListShortCodeResponse list_short_code(account_sid, friendly_name, short_code, page_size, page, page_token) + + +Retrieve a list of short-codes belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. | [required] | +**friendly_name** | Option<**String**> | The string that identifies the ShortCode resources to read. | | +**short_code** | Option<**String**> | Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListShortCodeResponse**](ListShortCodeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_short_code + +> crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode update_short_code(account_sid, sid, friendly_name, api_version, sms_url, sms_method, sms_fallback_url, sms_fallback_method) + + +Update a short code with the following parameters + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the ShortCode resource to update | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe this resource. It can be up to 64 characters long. By default, the `FriendlyName` is the short code. | | +**api_version** | Option<**String**> | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. | | +**sms_url** | Option<**String**> | The URL we should call when receiving an incoming SMS message to this short code. | | +**sms_method** | Option<**String**> | The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodShortCode**](api.v2010.account.short_code.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SigningKeyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SigningKeyApi.md new file mode 100644 index 00000000..2ae3a218 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SigningKeyApi.md @@ -0,0 +1,139 @@ +# \Api20100401SigningKeyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_signing_key**](Api20100401SigningKeyApi.md#delete_signing_key) | **DELETE** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**fetch_signing_key**](Api20100401SigningKeyApi.md#fetch_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**list_signing_key**](Api20100401SigningKeyApi.md#list_signing_key) | **GET** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +[**update_signing_key**](Api20100401SigningKeyApi.md#update_signing_key) | **POST** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | + + + +## delete_signing_key + +> delete_signing_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**sid** | **String** | | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_signing_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey fetch_signing_key(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**sid** | **String** | | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey**](api.v2010.account.signing_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_signing_key + +> crate::models::ListSigningKeyResponse list_signing_key(account_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListSigningKeyResponse**](ListSigningKeyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_signing_key + +> crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey update_signing_key(account_sid, sid, friendly_name) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | | [required] | +**sid** | **String** | | [required] | +**friendly_name** | Option<**String**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodSigningKey**](api.v2010.account.signing_key.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SiprecApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SiprecApi.md new file mode 100644 index 00000000..d1ad1029 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401SiprecApi.md @@ -0,0 +1,277 @@ +# \Api20100401SiprecApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_siprec**](Api20100401SiprecApi.md#create_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json | +[**update_siprec**](Api20100401SiprecApi.md#update_siprec) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json | + + + +## create_siprec + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec create_siprec(account_sid, call_sid, name, connector_name, track, status_callback, status_callback_method, parameter1_period_name, parameter1_period_value, parameter2_period_name, parameter2_period_value, parameter3_period_name, parameter3_period_value, parameter4_period_name, parameter4_period_value, parameter5_period_name, parameter5_period_value, parameter6_period_name, parameter6_period_value, parameter7_period_name, parameter7_period_value, parameter8_period_name, parameter8_period_value, parameter9_period_name, parameter9_period_value, parameter10_period_name, parameter10_period_value, parameter11_period_name, parameter11_period_value, parameter12_period_name, parameter12_period_value, parameter13_period_name, parameter13_period_value, parameter14_period_name, parameter14_period_value, parameter15_period_name, parameter15_period_value, parameter16_period_name, parameter16_period_value, parameter17_period_name, parameter17_period_value, parameter18_period_name, parameter18_period_value, parameter19_period_name, parameter19_period_value, parameter20_period_name, parameter20_period_value, parameter21_period_name, parameter21_period_value, parameter22_period_name, parameter22_period_value, parameter23_period_name, parameter23_period_value, parameter24_period_name, parameter24_period_value, parameter25_period_name, parameter25_period_value, parameter26_period_name, parameter26_period_value, parameter27_period_name, parameter27_period_value, parameter28_period_name, parameter28_period_value, parameter29_period_name, parameter29_period_value, parameter30_period_name, parameter30_period_value, parameter31_period_name, parameter31_period_value, parameter32_period_name, parameter32_period_value, parameter33_period_name, parameter33_period_value, parameter34_period_name, parameter34_period_value, parameter35_period_name, parameter35_period_value, parameter36_period_name, parameter36_period_value, parameter37_period_name, parameter37_period_value, parameter38_period_name, parameter38_period_value, parameter39_period_name, parameter39_period_value, parameter40_period_name, parameter40_period_value, parameter41_period_name, parameter41_period_value, parameter42_period_name, parameter42_period_value, parameter43_period_name, parameter43_period_value, parameter44_period_name, parameter44_period_value, parameter45_period_name, parameter45_period_value, parameter46_period_name, parameter46_period_value, parameter47_period_name, parameter47_period_value, parameter48_period_name, parameter48_period_value, parameter49_period_name, parameter49_period_value, parameter50_period_name, parameter50_period_value, parameter51_period_name, parameter51_period_value, parameter52_period_name, parameter52_period_value, parameter53_period_name, parameter53_period_value, parameter54_period_name, parameter54_period_value, parameter55_period_name, parameter55_period_value, parameter56_period_name, parameter56_period_value, parameter57_period_name, parameter57_period_value, parameter58_period_name, parameter58_period_value, parameter59_period_name, parameter59_period_value, parameter60_period_name, parameter60_period_value, parameter61_period_name, parameter61_period_value, parameter62_period_name, parameter62_period_value, parameter63_period_name, parameter63_period_value, parameter64_period_name, parameter64_period_value, parameter65_period_name, parameter65_period_value, parameter66_period_name, parameter66_period_value, parameter67_period_name, parameter67_period_value, parameter68_period_name, parameter68_period_value, parameter69_period_name, parameter69_period_value, parameter70_period_name, parameter70_period_value, parameter71_period_name, parameter71_period_value, parameter72_period_name, parameter72_period_value, parameter73_period_name, parameter73_period_value, parameter74_period_name, parameter74_period_value, parameter75_period_name, parameter75_period_value, parameter76_period_name, parameter76_period_value, parameter77_period_name, parameter77_period_value, parameter78_period_name, parameter78_period_value, parameter79_period_name, parameter79_period_value, parameter80_period_name, parameter80_period_value, parameter81_period_name, parameter81_period_value, parameter82_period_name, parameter82_period_value, parameter83_period_name, parameter83_period_value, parameter84_period_name, parameter84_period_value, parameter85_period_name, parameter85_period_value, parameter86_period_name, parameter86_period_value, parameter87_period_name, parameter87_period_value, parameter88_period_name, parameter88_period_value, parameter89_period_name, parameter89_period_value, parameter90_period_name, parameter90_period_value, parameter91_period_name, parameter91_period_value, parameter92_period_name, parameter92_period_value, parameter93_period_name, parameter93_period_value, parameter94_period_name, parameter94_period_value, parameter95_period_name, parameter95_period_value, parameter96_period_name, parameter96_period_value, parameter97_period_name, parameter97_period_value, parameter98_period_name, parameter98_period_value, parameter99_period_name, parameter99_period_value) + + +Create a Siprec + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. | [required] | +**name** | Option<**String**> | The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. | | +**connector_name** | Option<**String**> | Unique name used when configuring the connector via Marketplace Add-on. | | +**track** | Option<**crate::models::SiprecEnumTrack**> | | | +**status_callback** | Option<**String**> | Absolute URL of the status callback. | | +**status_callback_method** | Option<**String**> | The http method for the status_callback (one of GET, POST). | | +**parameter1_period_name** | Option<**String**> | Parameter name | | +**parameter1_period_value** | Option<**String**> | Parameter value | | +**parameter2_period_name** | Option<**String**> | Parameter name | | +**parameter2_period_value** | Option<**String**> | Parameter value | | +**parameter3_period_name** | Option<**String**> | Parameter name | | +**parameter3_period_value** | Option<**String**> | Parameter value | | +**parameter4_period_name** | Option<**String**> | Parameter name | | +**parameter4_period_value** | Option<**String**> | Parameter value | | +**parameter5_period_name** | Option<**String**> | Parameter name | | +**parameter5_period_value** | Option<**String**> | Parameter value | | +**parameter6_period_name** | Option<**String**> | Parameter name | | +**parameter6_period_value** | Option<**String**> | Parameter value | | +**parameter7_period_name** | Option<**String**> | Parameter name | | +**parameter7_period_value** | Option<**String**> | Parameter value | | +**parameter8_period_name** | Option<**String**> | Parameter name | | +**parameter8_period_value** | Option<**String**> | Parameter value | | +**parameter9_period_name** | Option<**String**> | Parameter name | | +**parameter9_period_value** | Option<**String**> | Parameter value | | +**parameter10_period_name** | Option<**String**> | Parameter name | | +**parameter10_period_value** | Option<**String**> | Parameter value | | +**parameter11_period_name** | Option<**String**> | Parameter name | | +**parameter11_period_value** | Option<**String**> | Parameter value | | +**parameter12_period_name** | Option<**String**> | Parameter name | | +**parameter12_period_value** | Option<**String**> | Parameter value | | +**parameter13_period_name** | Option<**String**> | Parameter name | | +**parameter13_period_value** | Option<**String**> | Parameter value | | +**parameter14_period_name** | Option<**String**> | Parameter name | | +**parameter14_period_value** | Option<**String**> | Parameter value | | +**parameter15_period_name** | Option<**String**> | Parameter name | | +**parameter15_period_value** | Option<**String**> | Parameter value | | +**parameter16_period_name** | Option<**String**> | Parameter name | | +**parameter16_period_value** | Option<**String**> | Parameter value | | +**parameter17_period_name** | Option<**String**> | Parameter name | | +**parameter17_period_value** | Option<**String**> | Parameter value | | +**parameter18_period_name** | Option<**String**> | Parameter name | | +**parameter18_period_value** | Option<**String**> | Parameter value | | +**parameter19_period_name** | Option<**String**> | Parameter name | | +**parameter19_period_value** | Option<**String**> | Parameter value | | +**parameter20_period_name** | Option<**String**> | Parameter name | | +**parameter20_period_value** | Option<**String**> | Parameter value | | +**parameter21_period_name** | Option<**String**> | Parameter name | | +**parameter21_period_value** | Option<**String**> | Parameter value | | +**parameter22_period_name** | Option<**String**> | Parameter name | | +**parameter22_period_value** | Option<**String**> | Parameter value | | +**parameter23_period_name** | Option<**String**> | Parameter name | | +**parameter23_period_value** | Option<**String**> | Parameter value | | +**parameter24_period_name** | Option<**String**> | Parameter name | | +**parameter24_period_value** | Option<**String**> | Parameter value | | +**parameter25_period_name** | Option<**String**> | Parameter name | | +**parameter25_period_value** | Option<**String**> | Parameter value | | +**parameter26_period_name** | Option<**String**> | Parameter name | | +**parameter26_period_value** | Option<**String**> | Parameter value | | +**parameter27_period_name** | Option<**String**> | Parameter name | | +**parameter27_period_value** | Option<**String**> | Parameter value | | +**parameter28_period_name** | Option<**String**> | Parameter name | | +**parameter28_period_value** | Option<**String**> | Parameter value | | +**parameter29_period_name** | Option<**String**> | Parameter name | | +**parameter29_period_value** | Option<**String**> | Parameter value | | +**parameter30_period_name** | Option<**String**> | Parameter name | | +**parameter30_period_value** | Option<**String**> | Parameter value | | +**parameter31_period_name** | Option<**String**> | Parameter name | | +**parameter31_period_value** | Option<**String**> | Parameter value | | +**parameter32_period_name** | Option<**String**> | Parameter name | | +**parameter32_period_value** | Option<**String**> | Parameter value | | +**parameter33_period_name** | Option<**String**> | Parameter name | | +**parameter33_period_value** | Option<**String**> | Parameter value | | +**parameter34_period_name** | Option<**String**> | Parameter name | | +**parameter34_period_value** | Option<**String**> | Parameter value | | +**parameter35_period_name** | Option<**String**> | Parameter name | | +**parameter35_period_value** | Option<**String**> | Parameter value | | +**parameter36_period_name** | Option<**String**> | Parameter name | | +**parameter36_period_value** | Option<**String**> | Parameter value | | +**parameter37_period_name** | Option<**String**> | Parameter name | | +**parameter37_period_value** | Option<**String**> | Parameter value | | +**parameter38_period_name** | Option<**String**> | Parameter name | | +**parameter38_period_value** | Option<**String**> | Parameter value | | +**parameter39_period_name** | Option<**String**> | Parameter name | | +**parameter39_period_value** | Option<**String**> | Parameter value | | +**parameter40_period_name** | Option<**String**> | Parameter name | | +**parameter40_period_value** | Option<**String**> | Parameter value | | +**parameter41_period_name** | Option<**String**> | Parameter name | | +**parameter41_period_value** | Option<**String**> | Parameter value | | +**parameter42_period_name** | Option<**String**> | Parameter name | | +**parameter42_period_value** | Option<**String**> | Parameter value | | +**parameter43_period_name** | Option<**String**> | Parameter name | | +**parameter43_period_value** | Option<**String**> | Parameter value | | +**parameter44_period_name** | Option<**String**> | Parameter name | | +**parameter44_period_value** | Option<**String**> | Parameter value | | +**parameter45_period_name** | Option<**String**> | Parameter name | | +**parameter45_period_value** | Option<**String**> | Parameter value | | +**parameter46_period_name** | Option<**String**> | Parameter name | | +**parameter46_period_value** | Option<**String**> | Parameter value | | +**parameter47_period_name** | Option<**String**> | Parameter name | | +**parameter47_period_value** | Option<**String**> | Parameter value | | +**parameter48_period_name** | Option<**String**> | Parameter name | | +**parameter48_period_value** | Option<**String**> | Parameter value | | +**parameter49_period_name** | Option<**String**> | Parameter name | | +**parameter49_period_value** | Option<**String**> | Parameter value | | +**parameter50_period_name** | Option<**String**> | Parameter name | | +**parameter50_period_value** | Option<**String**> | Parameter value | | +**parameter51_period_name** | Option<**String**> | Parameter name | | +**parameter51_period_value** | Option<**String**> | Parameter value | | +**parameter52_period_name** | Option<**String**> | Parameter name | | +**parameter52_period_value** | Option<**String**> | Parameter value | | +**parameter53_period_name** | Option<**String**> | Parameter name | | +**parameter53_period_value** | Option<**String**> | Parameter value | | +**parameter54_period_name** | Option<**String**> | Parameter name | | +**parameter54_period_value** | Option<**String**> | Parameter value | | +**parameter55_period_name** | Option<**String**> | Parameter name | | +**parameter55_period_value** | Option<**String**> | Parameter value | | +**parameter56_period_name** | Option<**String**> | Parameter name | | +**parameter56_period_value** | Option<**String**> | Parameter value | | +**parameter57_period_name** | Option<**String**> | Parameter name | | +**parameter57_period_value** | Option<**String**> | Parameter value | | +**parameter58_period_name** | Option<**String**> | Parameter name | | +**parameter58_period_value** | Option<**String**> | Parameter value | | +**parameter59_period_name** | Option<**String**> | Parameter name | | +**parameter59_period_value** | Option<**String**> | Parameter value | | +**parameter60_period_name** | Option<**String**> | Parameter name | | +**parameter60_period_value** | Option<**String**> | Parameter value | | +**parameter61_period_name** | Option<**String**> | Parameter name | | +**parameter61_period_value** | Option<**String**> | Parameter value | | +**parameter62_period_name** | Option<**String**> | Parameter name | | +**parameter62_period_value** | Option<**String**> | Parameter value | | +**parameter63_period_name** | Option<**String**> | Parameter name | | +**parameter63_period_value** | Option<**String**> | Parameter value | | +**parameter64_period_name** | Option<**String**> | Parameter name | | +**parameter64_period_value** | Option<**String**> | Parameter value | | +**parameter65_period_name** | Option<**String**> | Parameter name | | +**parameter65_period_value** | Option<**String**> | Parameter value | | +**parameter66_period_name** | Option<**String**> | Parameter name | | +**parameter66_period_value** | Option<**String**> | Parameter value | | +**parameter67_period_name** | Option<**String**> | Parameter name | | +**parameter67_period_value** | Option<**String**> | Parameter value | | +**parameter68_period_name** | Option<**String**> | Parameter name | | +**parameter68_period_value** | Option<**String**> | Parameter value | | +**parameter69_period_name** | Option<**String**> | Parameter name | | +**parameter69_period_value** | Option<**String**> | Parameter value | | +**parameter70_period_name** | Option<**String**> | Parameter name | | +**parameter70_period_value** | Option<**String**> | Parameter value | | +**parameter71_period_name** | Option<**String**> | Parameter name | | +**parameter71_period_value** | Option<**String**> | Parameter value | | +**parameter72_period_name** | Option<**String**> | Parameter name | | +**parameter72_period_value** | Option<**String**> | Parameter value | | +**parameter73_period_name** | Option<**String**> | Parameter name | | +**parameter73_period_value** | Option<**String**> | Parameter value | | +**parameter74_period_name** | Option<**String**> | Parameter name | | +**parameter74_period_value** | Option<**String**> | Parameter value | | +**parameter75_period_name** | Option<**String**> | Parameter name | | +**parameter75_period_value** | Option<**String**> | Parameter value | | +**parameter76_period_name** | Option<**String**> | Parameter name | | +**parameter76_period_value** | Option<**String**> | Parameter value | | +**parameter77_period_name** | Option<**String**> | Parameter name | | +**parameter77_period_value** | Option<**String**> | Parameter value | | +**parameter78_period_name** | Option<**String**> | Parameter name | | +**parameter78_period_value** | Option<**String**> | Parameter value | | +**parameter79_period_name** | Option<**String**> | Parameter name | | +**parameter79_period_value** | Option<**String**> | Parameter value | | +**parameter80_period_name** | Option<**String**> | Parameter name | | +**parameter80_period_value** | Option<**String**> | Parameter value | | +**parameter81_period_name** | Option<**String**> | Parameter name | | +**parameter81_period_value** | Option<**String**> | Parameter value | | +**parameter82_period_name** | Option<**String**> | Parameter name | | +**parameter82_period_value** | Option<**String**> | Parameter value | | +**parameter83_period_name** | Option<**String**> | Parameter name | | +**parameter83_period_value** | Option<**String**> | Parameter value | | +**parameter84_period_name** | Option<**String**> | Parameter name | | +**parameter84_period_value** | Option<**String**> | Parameter value | | +**parameter85_period_name** | Option<**String**> | Parameter name | | +**parameter85_period_value** | Option<**String**> | Parameter value | | +**parameter86_period_name** | Option<**String**> | Parameter name | | +**parameter86_period_value** | Option<**String**> | Parameter value | | +**parameter87_period_name** | Option<**String**> | Parameter name | | +**parameter87_period_value** | Option<**String**> | Parameter value | | +**parameter88_period_name** | Option<**String**> | Parameter name | | +**parameter88_period_value** | Option<**String**> | Parameter value | | +**parameter89_period_name** | Option<**String**> | Parameter name | | +**parameter89_period_value** | Option<**String**> | Parameter value | | +**parameter90_period_name** | Option<**String**> | Parameter name | | +**parameter90_period_value** | Option<**String**> | Parameter value | | +**parameter91_period_name** | Option<**String**> | Parameter name | | +**parameter91_period_value** | Option<**String**> | Parameter value | | +**parameter92_period_name** | Option<**String**> | Parameter name | | +**parameter92_period_value** | Option<**String**> | Parameter value | | +**parameter93_period_name** | Option<**String**> | Parameter name | | +**parameter93_period_value** | Option<**String**> | Parameter value | | +**parameter94_period_name** | Option<**String**> | Parameter name | | +**parameter94_period_value** | Option<**String**> | Parameter value | | +**parameter95_period_name** | Option<**String**> | Parameter name | | +**parameter95_period_value** | Option<**String**> | Parameter value | | +**parameter96_period_name** | Option<**String**> | Parameter name | | +**parameter96_period_value** | Option<**String**> | Parameter value | | +**parameter97_period_name** | Option<**String**> | Parameter name | | +**parameter97_period_value** | Option<**String**> | Parameter value | | +**parameter98_period_name** | Option<**String**> | Parameter name | | +**parameter98_period_value** | Option<**String**> | Parameter value | | +**parameter99_period_name** | Option<**String**> | Parameter name | | +**parameter99_period_value** | Option<**String**> | Parameter value | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec**](api.v2010.account.call.siprec.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_siprec + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec update_siprec(account_sid, call_sid, sid, status) + + +Stop a Siprec using either the SID of the Siprec resource or the `name` used when creating the resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. | [required] | +**sid** | **String** | The SID of the Siprec resource, or the `name` used when creating the resource | [required] | +**status** | **crate::models::SiprecEnumUpdateStatus** | | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec**](api.v2010.account.call.siprec.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401StreamApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401StreamApi.md new file mode 100644 index 00000000..d121307b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401StreamApi.md @@ -0,0 +1,277 @@ +# \Api20100401StreamApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_stream**](Api20100401StreamApi.md#create_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json | +[**update_stream**](Api20100401StreamApi.md#update_stream) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json | + + + +## create_stream + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream create_stream(account_sid, call_sid, url, name, track, status_callback, status_callback_method, parameter1_period_name, parameter1_period_value, parameter2_period_name, parameter2_period_value, parameter3_period_name, parameter3_period_value, parameter4_period_name, parameter4_period_value, parameter5_period_name, parameter5_period_value, parameter6_period_name, parameter6_period_value, parameter7_period_name, parameter7_period_value, parameter8_period_name, parameter8_period_value, parameter9_period_name, parameter9_period_value, parameter10_period_name, parameter10_period_value, parameter11_period_name, parameter11_period_value, parameter12_period_name, parameter12_period_value, parameter13_period_name, parameter13_period_value, parameter14_period_name, parameter14_period_value, parameter15_period_name, parameter15_period_value, parameter16_period_name, parameter16_period_value, parameter17_period_name, parameter17_period_value, parameter18_period_name, parameter18_period_value, parameter19_period_name, parameter19_period_value, parameter20_period_name, parameter20_period_value, parameter21_period_name, parameter21_period_value, parameter22_period_name, parameter22_period_value, parameter23_period_name, parameter23_period_value, parameter24_period_name, parameter24_period_value, parameter25_period_name, parameter25_period_value, parameter26_period_name, parameter26_period_value, parameter27_period_name, parameter27_period_value, parameter28_period_name, parameter28_period_value, parameter29_period_name, parameter29_period_value, parameter30_period_name, parameter30_period_value, parameter31_period_name, parameter31_period_value, parameter32_period_name, parameter32_period_value, parameter33_period_name, parameter33_period_value, parameter34_period_name, parameter34_period_value, parameter35_period_name, parameter35_period_value, parameter36_period_name, parameter36_period_value, parameter37_period_name, parameter37_period_value, parameter38_period_name, parameter38_period_value, parameter39_period_name, parameter39_period_value, parameter40_period_name, parameter40_period_value, parameter41_period_name, parameter41_period_value, parameter42_period_name, parameter42_period_value, parameter43_period_name, parameter43_period_value, parameter44_period_name, parameter44_period_value, parameter45_period_name, parameter45_period_value, parameter46_period_name, parameter46_period_value, parameter47_period_name, parameter47_period_value, parameter48_period_name, parameter48_period_value, parameter49_period_name, parameter49_period_value, parameter50_period_name, parameter50_period_value, parameter51_period_name, parameter51_period_value, parameter52_period_name, parameter52_period_value, parameter53_period_name, parameter53_period_value, parameter54_period_name, parameter54_period_value, parameter55_period_name, parameter55_period_value, parameter56_period_name, parameter56_period_value, parameter57_period_name, parameter57_period_value, parameter58_period_name, parameter58_period_value, parameter59_period_name, parameter59_period_value, parameter60_period_name, parameter60_period_value, parameter61_period_name, parameter61_period_value, parameter62_period_name, parameter62_period_value, parameter63_period_name, parameter63_period_value, parameter64_period_name, parameter64_period_value, parameter65_period_name, parameter65_period_value, parameter66_period_name, parameter66_period_value, parameter67_period_name, parameter67_period_value, parameter68_period_name, parameter68_period_value, parameter69_period_name, parameter69_period_value, parameter70_period_name, parameter70_period_value, parameter71_period_name, parameter71_period_value, parameter72_period_name, parameter72_period_value, parameter73_period_name, parameter73_period_value, parameter74_period_name, parameter74_period_value, parameter75_period_name, parameter75_period_value, parameter76_period_name, parameter76_period_value, parameter77_period_name, parameter77_period_value, parameter78_period_name, parameter78_period_value, parameter79_period_name, parameter79_period_value, parameter80_period_name, parameter80_period_value, parameter81_period_name, parameter81_period_value, parameter82_period_name, parameter82_period_value, parameter83_period_name, parameter83_period_value, parameter84_period_name, parameter84_period_value, parameter85_period_name, parameter85_period_value, parameter86_period_name, parameter86_period_value, parameter87_period_name, parameter87_period_value, parameter88_period_name, parameter88_period_value, parameter89_period_name, parameter89_period_value, parameter90_period_name, parameter90_period_value, parameter91_period_name, parameter91_period_value, parameter92_period_name, parameter92_period_value, parameter93_period_name, parameter93_period_value, parameter94_period_name, parameter94_period_value, parameter95_period_name, parameter95_period_value, parameter96_period_name, parameter96_period_value, parameter97_period_name, parameter97_period_value, parameter98_period_name, parameter98_period_value, parameter99_period_name, parameter99_period_value) + + +Create a Stream + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. | [required] | +**url** | **String** | Relative or absolute url where WebSocket connection will be established. | [required] | +**name** | Option<**String**> | The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. | | +**track** | Option<**crate::models::StreamEnumTrack**> | | | +**status_callback** | Option<**String**> | Absolute URL of the status callback. | | +**status_callback_method** | Option<**String**> | The http method for the status_callback (one of GET, POST). | | +**parameter1_period_name** | Option<**String**> | Parameter name | | +**parameter1_period_value** | Option<**String**> | Parameter value | | +**parameter2_period_name** | Option<**String**> | Parameter name | | +**parameter2_period_value** | Option<**String**> | Parameter value | | +**parameter3_period_name** | Option<**String**> | Parameter name | | +**parameter3_period_value** | Option<**String**> | Parameter value | | +**parameter4_period_name** | Option<**String**> | Parameter name | | +**parameter4_period_value** | Option<**String**> | Parameter value | | +**parameter5_period_name** | Option<**String**> | Parameter name | | +**parameter5_period_value** | Option<**String**> | Parameter value | | +**parameter6_period_name** | Option<**String**> | Parameter name | | +**parameter6_period_value** | Option<**String**> | Parameter value | | +**parameter7_period_name** | Option<**String**> | Parameter name | | +**parameter7_period_value** | Option<**String**> | Parameter value | | +**parameter8_period_name** | Option<**String**> | Parameter name | | +**parameter8_period_value** | Option<**String**> | Parameter value | | +**parameter9_period_name** | Option<**String**> | Parameter name | | +**parameter9_period_value** | Option<**String**> | Parameter value | | +**parameter10_period_name** | Option<**String**> | Parameter name | | +**parameter10_period_value** | Option<**String**> | Parameter value | | +**parameter11_period_name** | Option<**String**> | Parameter name | | +**parameter11_period_value** | Option<**String**> | Parameter value | | +**parameter12_period_name** | Option<**String**> | Parameter name | | +**parameter12_period_value** | Option<**String**> | Parameter value | | +**parameter13_period_name** | Option<**String**> | Parameter name | | +**parameter13_period_value** | Option<**String**> | Parameter value | | +**parameter14_period_name** | Option<**String**> | Parameter name | | +**parameter14_period_value** | Option<**String**> | Parameter value | | +**parameter15_period_name** | Option<**String**> | Parameter name | | +**parameter15_period_value** | Option<**String**> | Parameter value | | +**parameter16_period_name** | Option<**String**> | Parameter name | | +**parameter16_period_value** | Option<**String**> | Parameter value | | +**parameter17_period_name** | Option<**String**> | Parameter name | | +**parameter17_period_value** | Option<**String**> | Parameter value | | +**parameter18_period_name** | Option<**String**> | Parameter name | | +**parameter18_period_value** | Option<**String**> | Parameter value | | +**parameter19_period_name** | Option<**String**> | Parameter name | | +**parameter19_period_value** | Option<**String**> | Parameter value | | +**parameter20_period_name** | Option<**String**> | Parameter name | | +**parameter20_period_value** | Option<**String**> | Parameter value | | +**parameter21_period_name** | Option<**String**> | Parameter name | | +**parameter21_period_value** | Option<**String**> | Parameter value | | +**parameter22_period_name** | Option<**String**> | Parameter name | | +**parameter22_period_value** | Option<**String**> | Parameter value | | +**parameter23_period_name** | Option<**String**> | Parameter name | | +**parameter23_period_value** | Option<**String**> | Parameter value | | +**parameter24_period_name** | Option<**String**> | Parameter name | | +**parameter24_period_value** | Option<**String**> | Parameter value | | +**parameter25_period_name** | Option<**String**> | Parameter name | | +**parameter25_period_value** | Option<**String**> | Parameter value | | +**parameter26_period_name** | Option<**String**> | Parameter name | | +**parameter26_period_value** | Option<**String**> | Parameter value | | +**parameter27_period_name** | Option<**String**> | Parameter name | | +**parameter27_period_value** | Option<**String**> | Parameter value | | +**parameter28_period_name** | Option<**String**> | Parameter name | | +**parameter28_period_value** | Option<**String**> | Parameter value | | +**parameter29_period_name** | Option<**String**> | Parameter name | | +**parameter29_period_value** | Option<**String**> | Parameter value | | +**parameter30_period_name** | Option<**String**> | Parameter name | | +**parameter30_period_value** | Option<**String**> | Parameter value | | +**parameter31_period_name** | Option<**String**> | Parameter name | | +**parameter31_period_value** | Option<**String**> | Parameter value | | +**parameter32_period_name** | Option<**String**> | Parameter name | | +**parameter32_period_value** | Option<**String**> | Parameter value | | +**parameter33_period_name** | Option<**String**> | Parameter name | | +**parameter33_period_value** | Option<**String**> | Parameter value | | +**parameter34_period_name** | Option<**String**> | Parameter name | | +**parameter34_period_value** | Option<**String**> | Parameter value | | +**parameter35_period_name** | Option<**String**> | Parameter name | | +**parameter35_period_value** | Option<**String**> | Parameter value | | +**parameter36_period_name** | Option<**String**> | Parameter name | | +**parameter36_period_value** | Option<**String**> | Parameter value | | +**parameter37_period_name** | Option<**String**> | Parameter name | | +**parameter37_period_value** | Option<**String**> | Parameter value | | +**parameter38_period_name** | Option<**String**> | Parameter name | | +**parameter38_period_value** | Option<**String**> | Parameter value | | +**parameter39_period_name** | Option<**String**> | Parameter name | | +**parameter39_period_value** | Option<**String**> | Parameter value | | +**parameter40_period_name** | Option<**String**> | Parameter name | | +**parameter40_period_value** | Option<**String**> | Parameter value | | +**parameter41_period_name** | Option<**String**> | Parameter name | | +**parameter41_period_value** | Option<**String**> | Parameter value | | +**parameter42_period_name** | Option<**String**> | Parameter name | | +**parameter42_period_value** | Option<**String**> | Parameter value | | +**parameter43_period_name** | Option<**String**> | Parameter name | | +**parameter43_period_value** | Option<**String**> | Parameter value | | +**parameter44_period_name** | Option<**String**> | Parameter name | | +**parameter44_period_value** | Option<**String**> | Parameter value | | +**parameter45_period_name** | Option<**String**> | Parameter name | | +**parameter45_period_value** | Option<**String**> | Parameter value | | +**parameter46_period_name** | Option<**String**> | Parameter name | | +**parameter46_period_value** | Option<**String**> | Parameter value | | +**parameter47_period_name** | Option<**String**> | Parameter name | | +**parameter47_period_value** | Option<**String**> | Parameter value | | +**parameter48_period_name** | Option<**String**> | Parameter name | | +**parameter48_period_value** | Option<**String**> | Parameter value | | +**parameter49_period_name** | Option<**String**> | Parameter name | | +**parameter49_period_value** | Option<**String**> | Parameter value | | +**parameter50_period_name** | Option<**String**> | Parameter name | | +**parameter50_period_value** | Option<**String**> | Parameter value | | +**parameter51_period_name** | Option<**String**> | Parameter name | | +**parameter51_period_value** | Option<**String**> | Parameter value | | +**parameter52_period_name** | Option<**String**> | Parameter name | | +**parameter52_period_value** | Option<**String**> | Parameter value | | +**parameter53_period_name** | Option<**String**> | Parameter name | | +**parameter53_period_value** | Option<**String**> | Parameter value | | +**parameter54_period_name** | Option<**String**> | Parameter name | | +**parameter54_period_value** | Option<**String**> | Parameter value | | +**parameter55_period_name** | Option<**String**> | Parameter name | | +**parameter55_period_value** | Option<**String**> | Parameter value | | +**parameter56_period_name** | Option<**String**> | Parameter name | | +**parameter56_period_value** | Option<**String**> | Parameter value | | +**parameter57_period_name** | Option<**String**> | Parameter name | | +**parameter57_period_value** | Option<**String**> | Parameter value | | +**parameter58_period_name** | Option<**String**> | Parameter name | | +**parameter58_period_value** | Option<**String**> | Parameter value | | +**parameter59_period_name** | Option<**String**> | Parameter name | | +**parameter59_period_value** | Option<**String**> | Parameter value | | +**parameter60_period_name** | Option<**String**> | Parameter name | | +**parameter60_period_value** | Option<**String**> | Parameter value | | +**parameter61_period_name** | Option<**String**> | Parameter name | | +**parameter61_period_value** | Option<**String**> | Parameter value | | +**parameter62_period_name** | Option<**String**> | Parameter name | | +**parameter62_period_value** | Option<**String**> | Parameter value | | +**parameter63_period_name** | Option<**String**> | Parameter name | | +**parameter63_period_value** | Option<**String**> | Parameter value | | +**parameter64_period_name** | Option<**String**> | Parameter name | | +**parameter64_period_value** | Option<**String**> | Parameter value | | +**parameter65_period_name** | Option<**String**> | Parameter name | | +**parameter65_period_value** | Option<**String**> | Parameter value | | +**parameter66_period_name** | Option<**String**> | Parameter name | | +**parameter66_period_value** | Option<**String**> | Parameter value | | +**parameter67_period_name** | Option<**String**> | Parameter name | | +**parameter67_period_value** | Option<**String**> | Parameter value | | +**parameter68_period_name** | Option<**String**> | Parameter name | | +**parameter68_period_value** | Option<**String**> | Parameter value | | +**parameter69_period_name** | Option<**String**> | Parameter name | | +**parameter69_period_value** | Option<**String**> | Parameter value | | +**parameter70_period_name** | Option<**String**> | Parameter name | | +**parameter70_period_value** | Option<**String**> | Parameter value | | +**parameter71_period_name** | Option<**String**> | Parameter name | | +**parameter71_period_value** | Option<**String**> | Parameter value | | +**parameter72_period_name** | Option<**String**> | Parameter name | | +**parameter72_period_value** | Option<**String**> | Parameter value | | +**parameter73_period_name** | Option<**String**> | Parameter name | | +**parameter73_period_value** | Option<**String**> | Parameter value | | +**parameter74_period_name** | Option<**String**> | Parameter name | | +**parameter74_period_value** | Option<**String**> | Parameter value | | +**parameter75_period_name** | Option<**String**> | Parameter name | | +**parameter75_period_value** | Option<**String**> | Parameter value | | +**parameter76_period_name** | Option<**String**> | Parameter name | | +**parameter76_period_value** | Option<**String**> | Parameter value | | +**parameter77_period_name** | Option<**String**> | Parameter name | | +**parameter77_period_value** | Option<**String**> | Parameter value | | +**parameter78_period_name** | Option<**String**> | Parameter name | | +**parameter78_period_value** | Option<**String**> | Parameter value | | +**parameter79_period_name** | Option<**String**> | Parameter name | | +**parameter79_period_value** | Option<**String**> | Parameter value | | +**parameter80_period_name** | Option<**String**> | Parameter name | | +**parameter80_period_value** | Option<**String**> | Parameter value | | +**parameter81_period_name** | Option<**String**> | Parameter name | | +**parameter81_period_value** | Option<**String**> | Parameter value | | +**parameter82_period_name** | Option<**String**> | Parameter name | | +**parameter82_period_value** | Option<**String**> | Parameter value | | +**parameter83_period_name** | Option<**String**> | Parameter name | | +**parameter83_period_value** | Option<**String**> | Parameter value | | +**parameter84_period_name** | Option<**String**> | Parameter name | | +**parameter84_period_value** | Option<**String**> | Parameter value | | +**parameter85_period_name** | Option<**String**> | Parameter name | | +**parameter85_period_value** | Option<**String**> | Parameter value | | +**parameter86_period_name** | Option<**String**> | Parameter name | | +**parameter86_period_value** | Option<**String**> | Parameter value | | +**parameter87_period_name** | Option<**String**> | Parameter name | | +**parameter87_period_value** | Option<**String**> | Parameter value | | +**parameter88_period_name** | Option<**String**> | Parameter name | | +**parameter88_period_value** | Option<**String**> | Parameter value | | +**parameter89_period_name** | Option<**String**> | Parameter name | | +**parameter89_period_value** | Option<**String**> | Parameter value | | +**parameter90_period_name** | Option<**String**> | Parameter name | | +**parameter90_period_value** | Option<**String**> | Parameter value | | +**parameter91_period_name** | Option<**String**> | Parameter name | | +**parameter91_period_value** | Option<**String**> | Parameter value | | +**parameter92_period_name** | Option<**String**> | Parameter name | | +**parameter92_period_value** | Option<**String**> | Parameter value | | +**parameter93_period_name** | Option<**String**> | Parameter name | | +**parameter93_period_value** | Option<**String**> | Parameter value | | +**parameter94_period_name** | Option<**String**> | Parameter name | | +**parameter94_period_value** | Option<**String**> | Parameter value | | +**parameter95_period_name** | Option<**String**> | Parameter name | | +**parameter95_period_value** | Option<**String**> | Parameter value | | +**parameter96_period_name** | Option<**String**> | Parameter name | | +**parameter96_period_value** | Option<**String**> | Parameter value | | +**parameter97_period_name** | Option<**String**> | Parameter name | | +**parameter97_period_value** | Option<**String**> | Parameter value | | +**parameter98_period_name** | Option<**String**> | Parameter name | | +**parameter98_period_value** | Option<**String**> | Parameter value | | +**parameter99_period_name** | Option<**String**> | Parameter name | | +**parameter99_period_value** | Option<**String**> | Parameter value | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream**](api.v2010.account.call.stream.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_stream + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream update_stream(account_sid, call_sid, sid, status) + + +Stop a Stream using either the SID of the Stream resource or the `name` used when creating the resource + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. | [required] | +**sid** | **String** | The SID of the Stream resource, or the `name` used when creating the resource | [required] | +**status** | **crate::models::StreamEnumUpdateStatus** | | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream**](api.v2010.account.call.stream.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ThisMonthApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ThisMonthApi.md new file mode 100644 index 00000000..8ceb1465 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ThisMonthApi.md @@ -0,0 +1,46 @@ +# \Api20100401ThisMonthApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_this_month**](Api20100401ThisMonthApi.md#list_usage_record_this_month) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json | + + + +## list_usage_record_this_month + +> crate::models::ListUsageRecordThisMonthResponse list_usage_record_this_month(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordThisMonthEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordThisMonthResponse**](ListUsageRecordThisMonthResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TodayApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TodayApi.md new file mode 100644 index 00000000..74e9f886 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TodayApi.md @@ -0,0 +1,46 @@ +# \Api20100401TodayApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_today**](Api20100401TodayApi.md#list_usage_record_today) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json | + + + +## list_usage_record_today + +> crate::models::ListUsageRecordTodayResponse list_usage_record_today(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordTodayEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordTodayResponse**](ListUsageRecordTodayResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TokenApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TokenApi.md new file mode 100644 index 00000000..66456e90 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TokenApi.md @@ -0,0 +1,40 @@ +# \Api20100401TokenApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_token**](Api20100401TokenApi.md#create_token) | **POST** /2010-04-01/Accounts/{AccountSid}/Tokens.json | + + + +## create_token + +> crate::models::ApiPeriodV2010PeriodAccountPeriodToken create_token(account_sid, ttl) + + +Create a new token for ICE servers + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**ttl** | Option<**i32**> | The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodToken**](api.v2010.account.token.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TollFreeApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TollFreeApi.md new file mode 100644 index 00000000..a11f4e11 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TollFreeApi.md @@ -0,0 +1,153 @@ +# \Api20100401TollFreeApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_incoming_phone_number_toll_free**](Api20100401TollFreeApi.md#create_incoming_phone_number_toll_free) | **POST** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +[**list_available_phone_number_toll_free**](Api20100401TollFreeApi.md#list_available_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | +[**list_incoming_phone_number_toll_free**](Api20100401TollFreeApi.md#list_incoming_phone_number_toll_free) | **GET** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | + + + +## create_incoming_phone_number_toll_free + +> crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree create_incoming_phone_number_toll_free(account_sid, phone_number, api_version, friendly_name, sms_application_sid, sms_fallback_method, sms_fallback_url, sms_method, sms_url, status_callback, status_callback_method, voice_application_sid, voice_caller_id_lookup, voice_fallback_method, voice_fallback_url, voice_method, voice_url, identity_sid, address_sid, emergency_status, emergency_address_sid, trunk_sid, voice_receive_mode, bundle_sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**phone_number** | **String** | The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. | [required] | +**api_version** | Option<**String**> | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | | +**friendly_name** | Option<**String**> | A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. | | +**sms_application_sid** | Option<**String**> | The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | | +**sms_fallback_method** | Option<**String**> | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_fallback_url** | Option<**String**> | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | | +**sms_method** | Option<**String**> | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**sms_url** | Option<**String**> | The URL we should call when the new phone number receives an incoming SMS message. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_application_sid** | Option<**String**> | The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | | +**voice_caller_id_lookup** | Option<**bool**> | Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. | | +**voice_fallback_method** | Option<**String**> | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_fallback_url** | Option<**String**> | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | | +**voice_method** | Option<**String**> | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | | +**voice_url** | Option<**String**> | The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. | | +**identity_sid** | Option<**String**> | The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. | | +**address_sid** | Option<**String**> | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | | +**emergency_status** | Option<**crate::models::IncomingPhoneNumberTollFreeEnumEmergencyStatus**> | | | +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration to use for emergency calling from the new phone number. | | +**trunk_sid** | Option<**String**> | The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | | +**voice_receive_mode** | Option<**crate::models::IncomingPhoneNumberTollFreeEnumVoiceReceiveMode**> | | | +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree**](api.v2010.account.incoming_phone_number.incoming_phone_number_toll_free.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_available_phone_number_toll_free + +> crate::models::ListAvailablePhoneNumberTollFreeResponse list_available_phone_number_toll_free(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberTollFreeResponse**](ListAvailablePhoneNumberTollFreeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_incoming_phone_number_toll_free + +> crate::models::ListIncomingPhoneNumberTollFreeResponse list_incoming_phone_number_toll_free(account_sid, beta, friendly_name, phone_number, origin, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | [required] | +**beta** | Option<**bool**> | Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**friendly_name** | Option<**String**> | A string that identifies the resources to read. | | +**phone_number** | Option<**String**> | The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | | +**origin** | Option<**String**> | Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListIncomingPhoneNumberTollFreeResponse**](ListIncomingPhoneNumberTollFreeResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TranscriptionApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TranscriptionApi.md new file mode 100644 index 00000000..0d8054fa --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TranscriptionApi.md @@ -0,0 +1,207 @@ +# \Api20100401TranscriptionApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_recording_transcription**](Api20100401TranscriptionApi.md#delete_recording_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +[**delete_transcription**](Api20100401TranscriptionApi.md#delete_transcription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +[**fetch_recording_transcription**](Api20100401TranscriptionApi.md#fetch_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +[**fetch_transcription**](Api20100401TranscriptionApi.md#fetch_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +[**list_recording_transcription**](Api20100401TranscriptionApi.md#list_recording_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json | +[**list_transcription**](Api20100401TranscriptionApi.md#list_transcription) | **GET** /2010-04-01/Accounts/{AccountSid}/Transcriptions.json | + + + +## delete_recording_transcription + +> delete_recording_transcription(account_sid, recording_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | [required] | +**recording_sid** | **String** | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_transcription + +> delete_transcription(account_sid, sid) + + +Delete a transcription from the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_recording_transcription + +> crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription fetch_recording_transcription(account_sid, recording_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | [required] | +**recording_sid** | **String** | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription**](api.v2010.account.recording.recording_transcription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_transcription + +> crate::models::ApiPeriodV2010PeriodAccountPeriodTranscription fetch_transcription(account_sid, sid) + + +Fetch an instance of a Transcription + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodTranscription**](api.v2010.account.transcription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_recording_transcription + +> crate::models::ListRecordingTranscriptionResponse list_recording_transcription(account_sid, recording_sid, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | [required] | +**recording_sid** | **String** | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListRecordingTranscriptionResponse**](ListRecordingTranscriptionResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_transcription + +> crate::models::ListTranscriptionResponse list_transcription(account_sid, page_size, page, page_token) + + +Retrieve a list of transcriptions belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | [required] | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListTranscriptionResponse**](ListTranscriptionResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TriggerApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TriggerApi.md new file mode 100644 index 00000000..ddf12d02 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401TriggerApi.md @@ -0,0 +1,182 @@ +# \Api20100401TriggerApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_usage_trigger**](Api20100401TriggerApi.md#create_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +[**delete_usage_trigger**](Api20100401TriggerApi.md#delete_usage_trigger) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +[**fetch_usage_trigger**](Api20100401TriggerApi.md#fetch_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +[**list_usage_trigger**](Api20100401TriggerApi.md#list_usage_trigger) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +[**update_usage_trigger**](Api20100401TriggerApi.md#update_usage_trigger) | **POST** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | + + + +## create_usage_trigger + +> crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger create_usage_trigger(account_sid, callback_url, trigger_value, usage_category, callback_method, friendly_name, recurring, trigger_by) + + +Create a new UsageTrigger + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | [required] | +**callback_url** | **String** | The URL we should call using `callback_method` when the trigger fires. | [required] | +**trigger_value** | **String** | The usage value at which the trigger should fire. For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`. | [required] | +**usage_category** | **crate::models::UsageTriggerEnumUsageCategory** | | [required] | +**callback_method** | Option<**String**> | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | +**recurring** | Option<**crate::models::UsageTriggerEnumRecurring**> | | | +**trigger_by** | Option<**crate::models::UsageTriggerEnumTriggerField**> | | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger**](api.v2010.account.usage.usage_trigger.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_usage_trigger + +> delete_usage_trigger(account_sid, sid) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## fetch_usage_trigger + +> crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger fetch_usage_trigger(account_sid, sid) + + +Fetch and instance of a usage-trigger + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. | [required] | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger**](api.v2010.account.usage.usage_trigger.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## list_usage_trigger + +> crate::models::ListUsageTriggerResponse list_usage_trigger(account_sid, recurring, trigger_by, usage_category, page_size, page, page_token) + + +Retrieve a list of usage-triggers belonging to the account used to make the request + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. | [required] | +**recurring** | Option<**UsageTriggerEnumRecurring**> | The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers. | | +**trigger_by** | Option<**UsageTriggerEnumTriggerField**> | The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). | | +**usage_category** | Option<**UsageTriggerEnumUsageCategory**> | The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageTriggerResponse**](ListUsageTriggerResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## update_usage_trigger + +> crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger update_usage_trigger(account_sid, sid, callback_method, callback_url, friendly_name) + + +Update an instance of a usage trigger + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. | [required] | +**sid** | **String** | The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. | [required] | +**callback_method** | Option<**String**> | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | | +**callback_url** | Option<**String**> | The URL we should call using `callback_method` when the trigger fires. | | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger**](api.v2010.account.usage.usage_trigger.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401UserDefinedMessageApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401UserDefinedMessageApi.md new file mode 100644 index 00000000..904b083b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401UserDefinedMessageApi.md @@ -0,0 +1,42 @@ +# \Api20100401UserDefinedMessageApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_user_defined_message**](Api20100401UserDefinedMessageApi.md#create_user_defined_message) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json | + + + +## create_user_defined_message + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage create_user_defined_message(account_sid, call_sid, content, idempotency_key) + + +Create a new User Defined Message for the given Call SID. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. | [required] | +**content** | **String** | The User Defined Message in the form of URL-encoded JSON string. | [required] | +**idempotency_key** | Option<**String**> | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage**](api.v2010.account.call.user_defined_message.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401UserDefinedMessageSubscriptionApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401UserDefinedMessageSubscriptionApi.md new file mode 100644 index 00000000..9eeca087 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401UserDefinedMessageSubscriptionApi.md @@ -0,0 +1,76 @@ +# \Api20100401UserDefinedMessageSubscriptionApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_user_defined_message_subscription**](Api20100401UserDefinedMessageSubscriptionApi.md#create_user_defined_message_subscription) | **POST** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json | +[**delete_user_defined_message_subscription**](Api20100401UserDefinedMessageSubscriptionApi.md#delete_user_defined_message_subscription) | **DELETE** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json | + + + +## create_user_defined_message_subscription + +> crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription create_user_defined_message_subscription(account_sid, call_sid, callback, idempotency_key, method) + + +Subscribe to User Defined Messages for a given Call SID. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the Call SID that is producing the user defined messages. | [required] | +**callback** | **String** | The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted). | [required] | +**idempotency_key** | Option<**String**> | A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. | | +**method** | Option<**String**> | The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription**](api.v2010.account.call.user_defined_message_subscription.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_user_defined_message_subscription + +> delete_user_defined_message_subscription(account_sid, call_sid, sid) + + +Delete a specific User Defined Message Subscription. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. | [required] | +**call_sid** | **String** | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. | [required] | +**sid** | **String** | The SID that uniquely identifies this User Defined Message Subscription. | [required] | + +### Return type + + (empty response body) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ValidationRequestApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ValidationRequestApi.md new file mode 100644 index 00000000..6b483983 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401ValidationRequestApi.md @@ -0,0 +1,45 @@ +# \Api20100401ValidationRequestApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_validation_request**](Api20100401ValidationRequestApi.md#create_validation_request) | **POST** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | + + + +## create_validation_request + +> crate::models::ApiPeriodV2010PeriodAccountPeriodValidationRequest create_validation_request(account_sid, phone_number, friendly_name, call_delay, extension, status_callback, status_callback_method) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. | [required] | +**phone_number** | **String** | The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [required] | +**friendly_name** | Option<**String**> | A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number. | | +**call_delay** | Option<**i32**> | The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. | | +**extension** | Option<**String**> | The digits to dial after connecting the verification call. | | +**status_callback** | Option<**String**> | The URL we should call using the `status_callback_method` to send status information about the verification process to your application. | | +**status_callback_method** | Option<**String**> | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. | | + +### Return type + +[**crate::models::ApiPeriodV2010PeriodAccountPeriodValidationRequest**](api.v2010.account.validation_request.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401VoipApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401VoipApi.md new file mode 100644 index 00000000..699d0d03 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401VoipApi.md @@ -0,0 +1,61 @@ +# \Api20100401VoipApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_available_phone_number_voip**](Api20100401VoipApi.md#list_available_phone_number_voip) | **GET** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | + + + +## list_available_phone_number_voip + +> crate::models::ListAvailablePhoneNumberVoipResponse list_available_phone_number_voip(account_sid, country_code, area_code, contains, sms_enabled, mms_enabled, voice_enabled, exclude_all_address_required, exclude_local_address_required, exclude_foreign_address_required, beta, near_number, near_lat_long, distance, in_postal_code, in_region, in_rate_center, in_lata, in_locality, fax_enabled, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | [required] | +**country_code** | **String** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. | [required] | +**area_code** | Option<**i32**> | The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | | +**contains** | Option<**String**> | The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. | | +**sms_enabled** | Option<**bool**> | Whether the phone numbers can receive text messages. Can be: `true` or `false`. | | +**mms_enabled** | Option<**bool**> | Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | | +**voice_enabled** | Option<**bool**> | Whether the phone numbers can receive calls. Can be: `true` or `false`. | | +**exclude_all_address_required** | Option<**bool**> | Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_local_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**exclude_foreign_address_required** | Option<**bool**> | Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. | | +**beta** | Option<**bool**> | Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | | +**near_number** | Option<**String**> | Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. | | +**near_lat_long** | Option<**String**> | Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. | | +**distance** | Option<**i32**> | The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. | | +**in_postal_code** | Option<**String**> | Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. | | +**in_region** | Option<**String**> | Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. | | +**in_rate_center** | Option<**String**> | Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. | | +**in_lata** | Option<**String**> | Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. | | +**in_locality** | Option<**String**> | Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | | +**fax_enabled** | Option<**bool**> | Whether the phone numbers can receive faxes. Can be: `true` or `false`. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListAvailablePhoneNumberVoipResponse**](ListAvailablePhoneNumberVoipResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401YearlyApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401YearlyApi.md new file mode 100644 index 00000000..79b5f84c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401YearlyApi.md @@ -0,0 +1,46 @@ +# \Api20100401YearlyApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_yearly**](Api20100401YearlyApi.md#list_usage_record_yearly) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json | + + + +## list_usage_record_yearly + +> crate::models::ListUsageRecordYearlyResponse list_usage_record_yearly(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordYearlyEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordYearlyResponse**](ListUsageRecordYearlyResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401YesterdayApi.md b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401YesterdayApi.md new file mode 100644 index 00000000..0443eba0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/Api20100401YesterdayApi.md @@ -0,0 +1,46 @@ +# \Api20100401YesterdayApi + +All URIs are relative to *https://api.twilio.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**list_usage_record_yesterday**](Api20100401YesterdayApi.md#list_usage_record_yesterday) | **GET** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json | + + + +## list_usage_record_yesterday + +> crate::models::ListUsageRecordYesterdayResponse list_usage_record_yesterday(account_sid, category, start_date, end_date, include_subaccounts, page_size, page, page_token) + + + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**account_sid** | **String** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | [required] | +**category** | Option<**UsageRecordYesterdayEnumCategory**> | The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. | | +**start_date** | Option<**String**> | Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. | | +**end_date** | Option<**String**> | Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. | | +**include_subaccounts** | Option<**bool**> | Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. | | +**page_size** | Option<**i32**> | How many resources to return in each list page. The default is 50, and the maximum is 1000. | | +**page** | Option<**i32**> | The page index. This value is simply for client state. | | +**page_token** | Option<**String**> | The page token. This is provided by the API. | | + +### Return type + +[**crate::models::ListUsageRecordYesterdayResponse**](ListUsageRecordYesterdayResponse.md) + +### Authorization + +[accountSid_authToken](../README.md#accountSid_authToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccount.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccount.md new file mode 100644 index 00000000..bc5993ff --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccount.md @@ -0,0 +1,20 @@ +# ApiPeriodV2010PeriodAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**auth_token** | Option<**String**> | The authorization token for this account. This token should be kept a secret, so no sharing. | [optional] +**date_created** | Option<**String**> | The date that this account was created, in GMT in RFC 2822 format | [optional] +**date_updated** | Option<**String**> | The date that this account was last updated, in GMT in RFC 2822 format. | [optional] +**friendly_name** | Option<**String**> | A human readable description of this account, up to 64 characters long. By default the FriendlyName is your email address. | [optional] +**owner_account_sid** | Option<**String**> | The unique 34 character id that represents the parent of this account. The OwnerAccountSid of a parent account is it's own sid. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**status** | Option<[**crate::models::AccountEnumStatus**](account_enum_status.md)> | | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A Map of various subresources available for the given Account Instance | [optional] +**r#type** | Option<[**crate::models::AccountEnumType**](account_enum_type.md)> | | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAddress.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAddress.md new file mode 100644 index 00000000..534c5243 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAddress.md @@ -0,0 +1,26 @@ +# ApiPeriodV2010PeriodAccountPeriodAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource. | [optional] +**city** | Option<**String**> | The city in which the address is located. | [optional] +**customer_name** | Option<**String**> | The name associated with the address.This property has a maximum length of 16 4-byte characters, or 21 3-byte characters. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**iso_country** | Option<**String**> | The ISO country code of the address. | [optional] +**postal_code** | Option<**String**> | The postal code of the address. | [optional] +**region** | Option<**String**> | The state or region of the address. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Address resource. | [optional] +**street** | Option<**String**> | The number and street address of the address. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**emergency_enabled** | Option<**bool**> | Whether emergency calling has been enabled on this number. | [optional] +**validated** | Option<**bool**> | Whether the address has been validated to comply with local regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been validated. `false` indicate the country doesn't require validation or the Address is not valid. | [optional] +**verified** | Option<**bool**> | Whether the address has been verified to comply with regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been verified. `false` indicate the country doesn't require verified or the Address is not valid. | [optional] +**street_secondary** | Option<**String**> | The additional number and street address of the address. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md new file mode 100644 index 00000000..3f57fdd5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber.md @@ -0,0 +1,36 @@ +# ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the DependentPhoneNumber resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resource. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database. Can be: `true` or `false`. Caller ID lookups can cost $0.01 each. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**address_requirements** | Option<[**crate::models::DependentPhoneNumberEnumAddressRequirement**](dependent_phone_number_enum_address_requirement.md)> | | [optional] +**capabilities** | Option<[**serde_json::Value**](.md)> | The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**emergency_status** | Option<[**crate::models::DependentPhoneNumberEnumEmergencyStatus**](dependent_phone_number_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from the phone number. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodApplication.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodApplication.md new file mode 100644 index 00000000..9c4e89dd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodApplication.md @@ -0,0 +1,31 @@ +# ApiPeriodV2010PeriodAccountPeriodApplication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource. | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**message_status_callback** | Option<**String**> | The URL we call using a POST method to send message status information to your application. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Application resource. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_status_callback** | Option<**String**> | The URL we call using a POST method to send status information to your application about SMS messages that refer to the application. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number assigned to this application receives a call. | [optional] +**public_application_connect_enabled** | Option<**bool**> | Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md new file mode 100644 index 00000000..4d23af8a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp.md @@ -0,0 +1,20 @@ +# ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource. | [optional] +**connect_app_company_name** | Option<**String**> | The company name set for the Connect App. | [optional] +**connect_app_description** | Option<**String**> | A detailed description of the Connect App. | [optional] +**connect_app_friendly_name** | Option<**String**> | The name of the Connect App. | [optional] +**connect_app_homepage_url** | Option<**String**> | The public URL for the Connect App. | [optional] +**connect_app_sid** | Option<**String**> | The SID that we assigned to the Connect App. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**permissions** | Option<[**Vec**](authorized_connect_app_enum_permission.md)> | The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md new file mode 100644 index 00000000..39dc0050 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**country_code** | Option<**String**> | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country. | [optional] +**country** | Option<**String**> | The name of the country. | [optional] +**uri** | Option<**String**> | The URI of the Country resource, relative to `https://api.twilio.com`. | [optional] +**beta** | Option<**bool**> | Whether all phone numbers available in the country are new to the Twilio platform. `true` if they are and `false` if all numbers are not in the Twilio Phone Number Beta program. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related AvailablePhoneNumber resources identified by their URIs relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md new file mode 100644 index 00000000..439be46b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md new file mode 100644 index 00000000..e690c9bf --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md new file mode 100644 index 00000000..90b24e15 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md new file mode 100644 index 00000000..af41c4a9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md new file mode 100644 index 00000000..b13e70b1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md new file mode 100644 index 00000000..51a475e4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md new file mode 100644 index 00000000..3fe12e4e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**friendly_name** | Option<**String**> | A formatted version of the phone number. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**lata** | Option<**String**> | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**locality** | Option<**String**> | The locality or city of this phone number's location. | [optional] +**rate_center** | Option<**String**> | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. | [optional] +**latitude** | Option<**f32**> | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**longitude** | Option<**f32**> | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**region** | Option<**String**> | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**postal_code** | Option<**String**> | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. | [optional] +**iso_country** | Option<**String**> | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. | [optional] +**address_requirements** | Option<**String**> | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities**](api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodBalance.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodBalance.md new file mode 100644 index 00000000..967f840b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodBalance.md @@ -0,0 +1,13 @@ +# ApiPeriodV2010PeriodAccountPeriodBalance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique SID identifier of the Account. | [optional] +**balance** | Option<**String**> | The balance of the Account, in units specified by the unit parameter. Balance changes may not be reflected immediately. Child accounts do not contain balance information | [optional] +**currency** | Option<**String**> | The units of currency for the account balance | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCall.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCall.md new file mode 100644 index 00000000..250ac419 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCall.md @@ -0,0 +1,36 @@ +# ApiPeriodV2010PeriodAccountPeriodCall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that we created to identify this Call resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**parent_call_sid** | Option<**String**> | The SID that identifies the call that created this leg. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Call resource. | [optional] +**to** | Option<**String**> | The phone number, SIP address, Client identifier or SIM SID that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. | [optional] +**to_formatted** | Option<**String**> | The phone number, SIP address or Client identifier that received this call. Formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). | [optional] +**from** | Option<**String**> | The phone number, SIP address, Client identifier or SIM SID that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. | [optional] +**from_formatted** | Option<**String**> | The calling phone number, SIP address, or Client identifier formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). | [optional] +**phone_number_sid** | Option<**String**> | If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. | [optional] +**status** | Option<[**crate::models::CallEnumStatus**](call_enum_status.md)> | | [optional] +**start_time** | Option<**String**> | The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. | [optional] +**end_time** | Option<**String**> | The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. | [optional] +**duration** | Option<**String**> | The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. | [optional] +**price** | Option<**String**> | The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. | [optional] +**price_unit** | Option<**String**> | The currency in which `Price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g., `USD`, `EUR`, `JPY`). Always capitalized for calls. | [optional] +**direction** | Option<**String**> | A string describing the direction of the call. Can be: `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `` verb. Using [Elastic SIP Trunking](https://www.twilio.com/docs/sip-trunking), the values can be [`trunking-terminating`](https://www.twilio.com/docs/sip-trunking#termination) for outgoing calls from your communications infrastructure to the PSTN or [`trunking-originating`](https://www.twilio.com/docs/sip-trunking#origination) for incoming calls to your communications infrastructure from the PSTN. | [optional] +**answered_by** | Option<**String**> | Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise. | [optional] +**api_version** | Option<**String**> | The API version used to create the call. | [optional] +**forwarded_from** | Option<**String**> | The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty. | [optional] +**group_sid** | Option<**String**> | The Group SID associated with this call. If no Group is associated with the call, the field is empty. | [optional] +**caller_name** | Option<**String**> | The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty. | [optional] +**queue_time** | Option<**String**> | The wait time in milliseconds before the call is placed. | [optional] +**trunk_sid** | Option<**String**> | The unique identifier of the trunk resource that was used for this call. The field is empty if the call was not made using a SIP trunk or if the call is not terminated. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of subresources available to this call, identified by their URIs relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md new file mode 100644 index 00000000..093fbbbc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent.md @@ -0,0 +1,12 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**request** | Option<[**serde_json::Value**](.md)> | Contains a dictionary representing the request of the call. | [optional] +**response** | Option<[**serde_json::Value**](.md)> | Contains a dictionary representing the call response, including a list of the call events. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md new file mode 100644 index 00000000..9ac1b802 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**issues** | Option<[**Vec**](call_feedback_enum_issues.md)> | A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. | [optional] +**quality_score** | Option<**i32**> | `1` to `5` quality score where `1` represents imperfect experience and `5` represents a perfect call. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md new file mode 100644 index 00000000..45cd0c5a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | [optional] +**call_count** | Option<**i32**> | The total number of calls. | [optional] +**call_feedback_count** | Option<**i32**> | The total number of calls with a feedback entry. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which feedback entries are included in this Feedback Summary, formatted as `YYYY-MM-DD` and specified in UTC. | [optional] +**include_subaccounts** | Option<**bool**> | Whether the feedback summary includes subaccounts; `true` if it does, otherwise `false`. | [optional] +**issues** | Option<[**Vec**](serde_json::Value.md)> | A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`. | [optional] +**quality_score_average** | Option<**f32**> | The average QualityScore of the feedback entries. | [optional] +**quality_score_median** | Option<**f32**> | The median QualityScore of the feedback entries. | [optional] +**quality_score_standard_deviation** | Option<**f32**> | The standard deviation of the quality scores. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC. | [optional] +**status** | Option<[**crate::models::CallFeedbackSummaryEnumStatus**](call_feedback_summary_enum_status.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md new file mode 100644 index 00000000..f4e88fc0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the Call Notification resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Call Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md new file mode 100644 index 00000000..4d2f7e7a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance.md @@ -0,0 +1,27 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the Call Notification resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**request_variables** | Option<**String**> | The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. | [optional] +**response_body** | Option<**String**> | The HTTP body returned by your server. | [optional] +**response_headers** | Option<**String**> | The HTTP headers returned by your server. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Call Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md new file mode 100644 index 00000000..930269ce --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording.md @@ -0,0 +1,28 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. | [optional] +**api_version** | Option<**String**> | The API version used to make the recording. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. | [optional] +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording, if a conference recording. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**start_time** | Option<**String**> | The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**duration** | Option<**String**> | The length of the recording in seconds. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Recording resource. | [optional] +**price** | Option<**f32**> | The one-time cost of creating the recording in the `price_unit` currency. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**encryption_details** | Option<[**serde_json::Value**](.md)> | How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. | [optional] +**price_unit** | Option<**String**> | The currency used in the `price` property. Example: `USD`. | [optional] +**status** | Option<[**crate::models::CallRecordingEnumStatus**](call_recording_enum_status.md)> | | [optional] +**channels** | Option<**i32**> | The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. | [optional] +**source** | Option<[**crate::models::CallRecordingEnumSource**](call_recording_enum_source.md)> | | [optional] +**error_code** | Option<**i32**> | The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. | [optional] +**track** | Option<**String**> | The recorded track. Can be: `inbound`, `outbound`, or `both`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md new file mode 100644 index 00000000..bac3fcc9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Payments resource is associated with. This will refer to the call sid that is producing the payment card (credit/ACH) information thru DTMF. | [optional] +**sid** | Option<**String**> | The SID of the Payments resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md new file mode 100644 index 00000000..a07b794d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The SID of the Siprec resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. | [optional] +**name** | Option<**String**> | The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. | [optional] +**status** | Option<[**crate::models::SiprecEnumStatus**](siprec_enum_status.md)> | | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md new file mode 100644 index 00000000..16f31797 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodStream.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodStream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The SID of the Stream resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. | [optional] +**name** | Option<**String**> | The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. | [optional] +**status** | Option<[**crate::models::StreamEnumStatus**](stream_enum_status.md)> | | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md new file mode 100644 index 00000000..dbaca72e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage.md @@ -0,0 +1,14 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. | [optional] +**sid** | Option<**String**> | The SID that uniquely identifies this User Defined Message. | [optional] +**date_created** | Option<**String**> | The date that this User Defined Message was created, given in RFC 2822 format. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md new file mode 100644 index 00000000..11277482 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. | [optional] +**sid** | Option<**String**> | The SID that uniquely identifies this User Defined Message Subscription. | [optional] +**date_created** | Option<**String**> | The date that this User Defined Message Subscription was created, given in RFC 2822 format. | [optional] +**uri** | Option<**String**> | The URI of the User Defined Message Subscription Resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConference.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConference.md new file mode 100644 index 00000000..9e639238 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConference.md @@ -0,0 +1,22 @@ +# ApiPeriodV2010PeriodAccountPeriodConference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Conference resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**api_version** | Option<**String**> | The API version used to create this conference. | [optional] +**friendly_name** | Option<**String**> | A string that you assigned to describe this conference room. Maxiumum length is 128 characters. | [optional] +**region** | Option<**String**> | A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this Conference resource. | [optional] +**status** | Option<[**crate::models::ConferenceEnumStatus**](conference_enum_status.md)> | | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs relative to `https://api.twilio.com`. | [optional] +**reason_conference_ended** | Option<[**crate::models::ConferenceEnumReasonConferenceEnded**](conference_enum_reason_conference_ended.md)> | | [optional] +**call_sid_ending_conference** | Option<**String**> | The call SID that caused the conference to end. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md new file mode 100644 index 00000000..873f892f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording.md @@ -0,0 +1,27 @@ +# ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the recording. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Conference Recording resource is associated with. | [optional] +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**start_time** | Option<**String**> | The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**duration** | Option<**String**> | The length of the recording in seconds. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Conference Recording resource. | [optional] +**price** | Option<**String**> | The one-time cost of creating the recording in the `price_unit` currency. | [optional] +**price_unit** | Option<**String**> | The currency used in the `price` property. Example: `USD`. | [optional] +**status** | Option<[**crate::models::ConferenceRecordingEnumStatus**](conference_recording_enum_status.md)> | | [optional] +**channels** | Option<**i32**> | The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. | [optional] +**source** | Option<[**crate::models::ConferenceRecordingEnumSource**](conference_recording_enum_source.md)> | | [optional] +**error_code** | Option<**i32**> | The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. | [optional] +**encryption_details** | Option<[**serde_json::Value**](.md)> | How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md new file mode 100644 index 00000000..36ad84fb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Participant resource is associated with. | [optional] +**label** | Option<**String**> | The user-specified label of this participant, if one was given when the participant was created. This may be used to fetch, update or delete the participant. | [optional] +**call_sid_to_coach** | Option<**String**> | The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. | [optional] +**coaching** | Option<**bool**> | Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. | [optional] +**conference_sid** | Option<**String**> | The SID of the conference the participant is in. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**end_conference_on_exit** | Option<**bool**> | Whether the conference ends when the participant leaves. Can be: `true` or `false` and the default is `false`. If `true`, the conference ends and all other participants drop out when the participant leaves. | [optional] +**muted** | Option<**bool**> | Whether the participant is muted. Can be `true` or `false`. | [optional] +**hold** | Option<**bool**> | Whether the participant is on hold. Can be `true` or `false`. | [optional] +**start_conference_on_enter** | Option<**bool**> | Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. | [optional] +**status** | Option<[**crate::models::ParticipantEnumStatus**](participant_enum_status.md)> | | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md new file mode 100644 index 00000000..d51f3196 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodConnectApp.md @@ -0,0 +1,21 @@ +# ApiPeriodV2010PeriodAccountPeriodConnectApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource. | [optional] +**authorize_redirect_url** | Option<**String**> | The URL we redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | [optional] +**company_name** | Option<**String**> | The company name set for the Connect App. | [optional] +**deauthorize_callback_method** | Option<**String**> | The HTTP method we use to call `deauthorize_callback_url`. | [optional] +**deauthorize_callback_url** | Option<**String**> | The URL we call using the `deauthorize_callback_method` to de-authorize the Connect App. | [optional] +**description** | Option<**String**> | The description of the Connect App. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**homepage_url** | Option<**String**> | The public URL where users can obtain more information about this Connect App. | [optional] +**permissions** | Option<[**Vec**](connect_app_enum_permission.md)> | The set of permissions that your ConnectApp requests. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the ConnectApp resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md new file mode 100644 index 00000000..deae24e3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this IncomingPhoneNumber resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberEnumAddressRequirement**](incoming_phone_number_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this IncomingPhoneNumber resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberEnumVoiceReceiveMode**](incoming_phone_number_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberEnumEmergencyStatus**](incoming_phone_number_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberEnumEmergencyAddressStatus**](incoming_phone_number_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md new file mode 100644 index 00000000..49564485 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn.md @@ -0,0 +1,21 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**resource_sid** | Option<**String**> | The SID of the Phone Number to which the Add-on is assigned. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**description** | Option<**String**> | A short description of the functionality that the Add-on provides. | [optional] +**configuration** | Option<[**serde_json::Value**](.md)> | A JSON string that represents the current configuration of this Add-on installation. | [optional] +**unique_name** | Option<**String**> | An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md new file mode 100644 index 00000000..43815ea8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension.md @@ -0,0 +1,19 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**resource_sid** | Option<**String**> | The SID of the Phone Number to which the Add-on is assigned. | [optional] +**assigned_add_on_sid** | Option<**String**> | The SID that uniquely identifies the assigned Add-on installation. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**product_name** | Option<**String**> | A string that you assigned to describe the Product this Extension is used within. | [optional] +**unique_name** | Option<**String**> | An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**enabled** | Option<**bool**> | Whether the Extension will be invoked. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md new file mode 100644 index 00000000..652bf3b8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberLocalEnumAddressRequirement**](incoming_phone_number_local_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberLocalEnumVoiceReceiveMode**](incoming_phone_number_local_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when this phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberLocalEnumEmergencyStatus**](incoming_phone_number_local_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberLocalEnumEmergencyAddressStatus**](incoming_phone_number_local_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md new file mode 100644 index 00000000..b013f848 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberMobileEnumAddressRequirement**](incoming_phone_number_mobile_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberMobileEnumVoiceReceiveMode**](incoming_phone_number_mobile_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberMobileEnumEmergencyStatus**](incoming_phone_number_mobile_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberMobileEnumEmergencyAddressStatus**](incoming_phone_number_mobile_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md new file mode 100644 index 00000000..94c17c58 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree.md @@ -0,0 +1,44 @@ +# ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. | [optional] +**address_sid** | Option<**String**> | The SID of the Address resource associated with the phone number. | [optional] +**address_requirements** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumAddressRequirement**](incoming_phone_number_toll_free_enum_address_requirement.md)> | | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session. | [optional] +**beta** | Option<**bool**> | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. | [optional] +**capabilities** | Option<[**crate::models::ApiV2010AccountIncomingPhoneNumberCapabilities**](api_v2010_account_incoming_phone_number_capabilities.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**identity_sid** | Option<**String**> | The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**origin** | Option<**String**> | The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the resource. | [optional] +**sms_application_sid** | Option<**String**> | The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when the phone number receives an incoming SMS message. | [optional] +**status_callback** | Option<**String**> | The URL we call using the `status_callback_method` to send status information to your application. | [optional] +**status_callback_method** | Option<**String**> | The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**trunk_sid** | Option<**String**> | The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_receive_mode** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumVoiceReceiveMode**](incoming_phone_number_toll_free_enum_voice_receive_mode.md)> | | [optional] +**voice_application_sid** | Option<**String**> | The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. | [optional] +**voice_caller_id_lookup** | Option<**bool**> | Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_url** | Option<**String**> | The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. | [optional] +**emergency_status** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumEmergencyStatus**](incoming_phone_number_toll_free_enum_emergency_status.md)> | | [optional] +**emergency_address_sid** | Option<**String**> | The SID of the emergency address configuration that we use for emergency calling from this phone number. | [optional] +**emergency_address_status** | Option<[**crate::models::IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus**](incoming_phone_number_toll_free_enum_emergency_address_status.md)> | | [optional] +**bundle_sid** | Option<**String**> | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**status** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodKey.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodKey.md new file mode 100644 index 00000000..7e972f96 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodKey.md @@ -0,0 +1,14 @@ +# ApiPeriodV2010PeriodAccountPeriodKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Key resource. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessage.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessage.md new file mode 100644 index 00000000..49185389 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessage.md @@ -0,0 +1,30 @@ +# ApiPeriodV2010PeriodAccountPeriodMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**body** | Option<**String**> | The text content of the message | [optional] +**num_segments** | Option<**String**> | The number of segments that make up the complete message. SMS message bodies that exceed the [character limit](https://www.twilio.com/docs/glossary/what-sms-character-limit) are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, `num_segments` is initially `0`, since a sender hasn't yet been assigned. | [optional] +**direction** | Option<[**crate::models::MessageEnumDirection**](message_enum_direction.md)> | | [optional] +**from** | Option<**String**> | The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent. | [optional] +**to** | Option<**String**> | The recipient's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format) or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g. `whatsapp:+15552229999`) | [optional] +**date_updated** | Option<**String**> | The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was last updated | [optional] +**price** | Option<**String**> | The amount billed for the message in the currency specified by `price_unit`. The `price` is populated after the message has been sent/received, and may not be immediately availalble. View the [Pricing page](https://www.twilio.com/en-us/pricing) for more details. | [optional] +**error_message** | Option<**String**> | The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. | [optional] +**uri** | Option<**String**> | The URI of the Message resource, relative to `https://api.twilio.com`. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource | [optional] +**num_media** | Option<**String**> | The number of media files associated with the Message resource. | [optional] +**status** | Option<[**crate::models::MessageEnumStatus**](message_enum_status.md)> | | [optional] +**messaging_service_sid** | Option<**String**> | The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. The value is `null` if a Messaging Service was not used. | [optional] +**sid** | Option<**String**> | The unique, Twilio-provided string that identifies the Message resource. | [optional] +**date_sent** | Option<**String**> | The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL. | [optional] +**date_created** | Option<**String**> | The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was created | [optional] +**error_code** | Option<**i32**> | The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). | [optional] +**api_version** | Option<**String**> | The API version used to process the Message | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md new file mode 100644 index 00000000..bcf1a332 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this Media resource. | [optional] +**content_type** | Option<**String**> | The default [MIME type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif`. | [optional] +**date_created** | Option<**String**> | The date and time in GMT when this Media resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT when this Media resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**parent_sid** | Option<**String**> | The SID of the Message resource that is associated with this Media resource. | [optional] +**sid** | Option<**String**> | The unique string that identifies this Media resource. | [optional] +**uri** | Option<**String**> | The URI of this Media resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md new file mode 100644 index 00000000..cd3874f5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource. | [optional] +**message_sid** | Option<**String**> | The SID of the Message resource associated with this MessageFeedback resource. | [optional] +**outcome** | Option<[**crate::models::MessageFeedbackEnumOutcome**](message_feedback_enum_outcome.md)> | | [optional] +**date_created** | Option<**String**> | The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md new file mode 100644 index 00000000..e0c77208 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNewKey.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodNewKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**secret** | Option<**String**> | The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md new file mode 100644 index 00000000..35c7471a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNewSigningKey.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodNewSigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the NewSigningKey resource. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**secret** | Option<**String**> | The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNotification.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNotification.md new file mode 100644 index 00000000..93dcb3e7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNotification.md @@ -0,0 +1,24 @@ +# ApiPeriodV2010PeriodAccountPeriodNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md new file mode 100644 index 00000000..cf44a365 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodNotificationInstance.md @@ -0,0 +1,27 @@ +# ApiPeriodV2010PeriodAccountPeriodNotificationInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. | [optional] +**api_version** | Option<**String**> | The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**error_code** | Option<**String**> | A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**log** | Option<**String**> | An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. | [optional] +**message_date** | Option<**String**> | The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. | [optional] +**message_text** | Option<**String**> | The text of the notification. | [optional] +**more_info** | Option<**String**> | The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). | [optional] +**request_method** | Option<**String**> | The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. | [optional] +**request_url** | Option<**String**> | The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. | [optional] +**request_variables** | Option<**String**> | The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. | [optional] +**response_body** | Option<**String**> | The HTTP body returned by your server. | [optional] +**response_headers** | Option<**String**> | The HTTP headers returned by your server. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Notification resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md new file mode 100644 index 00000000..2ee638f7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the OutgoingCallerId resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource. | [optional] +**phone_number** | Option<**String**> | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodQueue.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodQueue.md new file mode 100644 index 00000000..d3431688 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodQueue.md @@ -0,0 +1,19 @@ +# ApiPeriodV2010PeriodAccountPeriodQueue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**current_size** | Option<**i32**> | The number of calls currently in the queue. | [optional] +**friendly_name** | Option<**String**> | A string that you assigned to describe this resource. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource. | [optional] +**average_wait_time** | Option<**i32**> | The average wait time in seconds of the members in this queue. This is calculated at the time of the request. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this Queue resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**max_size** | Option<**i32**> | The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md new file mode 100644 index 00000000..1cfff809 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember.md @@ -0,0 +1,16 @@ +# ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Member resource is associated with. | [optional] +**date_enqueued** | Option<**String**> | The date that the member was enqueued, given in RFC 2822 format. | [optional] +**position** | Option<**i32**> | This member's current position in the queue. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**wait_time** | Option<**i32**> | The number of seconds the member has been in the queue. | [optional] +**queue_sid** | Option<**String**> | The SID of the Queue the member is in. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecording.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecording.md new file mode 100644 index 00000000..f2408beb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecording.md @@ -0,0 +1,29 @@ +# ApiPeriodV2010PeriodAccountPeriodRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. | [optional] +**api_version** | Option<**String**> | The API version used during the recording. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. This will always refer to the parent leg of a two-leg call. | [optional] +**conference_sid** | Option<**String**> | The Conference SID that identifies the conference associated with the recording, if a conference recording. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**start_time** | Option<**String**> | The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**duration** | Option<**String**> | The length of the recording in seconds. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Recording resource. | [optional] +**price** | Option<**String**> | The one-time cost of creating the recording in the `price_unit` currency. | [optional] +**price_unit** | Option<**String**> | The currency used in the `price` property. Example: `USD`. | [optional] +**status** | Option<[**crate::models::RecordingEnumStatus**](recording_enum_status.md)> | | [optional] +**channels** | Option<**i32**> | The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call). | [optional] +**source** | Option<[**crate::models::RecordingEnumSource**](recording_enum_source.md)> | | [optional] +**error_code** | Option<**i32**> | The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**encryption_details** | Option<[**serde_json::Value**](.md)> | How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] +**media_url** | Option<**String**> | The URL of the media file associated with this recording resource. When stored externally, this is the full URL location of the media file. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md new file mode 100644 index 00000000..6593b8c5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult.md @@ -0,0 +1,20 @@ +# ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Recording AddOnResult resource. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource. | [optional] +**status** | Option<[**crate::models::RecordingAddOnResultEnumStatus**](recording_add_on_result_enum_status.md)> | | [optional] +**add_on_sid** | Option<**String**> | The SID of the Add-on to which the result belongs. | [optional] +**add_on_configuration_sid** | Option<**String**> | The SID of the Add-on configuration. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_completed** | Option<**String**> | The date and time in GMT that the result was completed specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**reference_sid** | Option<**String**> | The SID of the recording to which the AddOnResult resource belongs. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md new file mode 100644 index 00000000..a63b9537 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload.md @@ -0,0 +1,21 @@ +# ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that that we created to identify the Recording AddOnResult Payload resource. | [optional] +**add_on_result_sid** | Option<**String**> | The SID of the AddOnResult to which the payload belongs. | [optional] +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource. | [optional] +**label** | Option<**String**> | The string provided by the vendor that describes the payload. | [optional] +**add_on_sid** | Option<**String**> | The SID of the Add-on to which the result belongs. | [optional] +**add_on_configuration_sid** | Option<**String**> | The SID of the Add-on configuration. | [optional] +**content_type** | Option<**String**> | The MIME type of the payload. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**reference_sid** | Option<**String**> | The SID of the recording to which the AddOnResult resource that contains the payload belongs. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their relative URIs. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md new file mode 100644 index 00000000..2075798f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the transcription. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**duration** | Option<**String**> | The duration of the transcribed audio in seconds. | [optional] +**price** | Option<**f32**> | The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). | [optional] +**recording_sid** | Option<**String**> | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Transcription resource. | [optional] +**status** | Option<[**crate::models::RecordingTranscriptionEnumStatus**](recording_transcription_enum_status.md)> | | [optional] +**transcription_text** | Option<**String**> | The text content of the transcription. | [optional] +**r#type** | Option<**String**> | The transcription type. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md new file mode 100644 index 00000000..52c10422 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodShortCode.md @@ -0,0 +1,22 @@ +# ApiPeriodV2010PeriodAccountPeriodShortCode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource. | [optional] +**api_version** | Option<**String**> | The API version used to start a new TwiML session when an SMS message is sent to this short code. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code. | [optional] +**short_code** | Option<**String**> | The short code. e.g., 894546. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify this ShortCode resource. | [optional] +**sms_fallback_method** | Option<**String**> | The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**sms_fallback_url** | Option<**String**> | The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**sms_method** | Option<**String**> | The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. | [optional] +**sms_url** | Option<**String**> | The URL we call when receiving an incoming SMS message to this short code. | [optional] +**uri** | Option<**String**> | The URI of this resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md new file mode 100644 index 00000000..d81e182d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSigningKey.md @@ -0,0 +1,14 @@ +# ApiPeriodV2010PeriodAccountPeriodSigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | | [optional] +**friendly_name** | Option<**String**> | | [optional] +**date_created** | Option<**String**> | | [optional] +**date_updated** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md new file mode 100644 index 00000000..252eb09c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text that describes the CredentialList, up to 64 characters long. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of credentials associated with this credential list. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md new file mode 100644 index 00000000..4b314346 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**credential_list_sid** | Option<**String**> | The unique id that identifies the credential list that includes this credential. | [optional] +**username** | Option<**String**> | The username for this credential. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md new file mode 100644 index 00000000..c10ccfc4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain.md @@ -0,0 +1,31 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource. | [optional] +**api_version** | Option<**String**> | The API version used to process the call. | [optional] +**auth_type** | Option<**String**> | The types of authentication you have mapped to your domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If you have both defined for your domain, both will be returned in a comma delimited string. If `auth_type` is not defined, the domain will not be able to receive any traffic. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**domain_name** | Option<**String**> | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\" and must end with `sip.twilio.com`. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the SipDomain resource. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**voice_fallback_method** | Option<**String**> | The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**voice_fallback_url** | Option<**String**> | The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`. | [optional] +**voice_method** | Option<**String**> | The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**voice_status_callback_method** | Option<**String**> | The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. | [optional] +**voice_status_callback_url** | Option<**String**> | The URL that we call to pass status parameters (such as call ended) to your application. | [optional] +**voice_url** | Option<**String**> | The URL we call using the `voice_method` when the domain receives a call. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of mapping resources associated with the SIP Domain resource identified by their relative URIs. | [optional] +**sip_registration** | Option<**bool**> | Whether to allow SIP Endpoints to register with the domain to receive calls. | [optional] +**emergency_calling_enabled** | Option<**bool**> | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | [optional] +**secure** | Option<**bool**> | Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. | [optional] +**byoc_trunk_sid** | Option<**String**> | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | [optional] +**emergency_caller_sid** | Option<**String**> | Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md new file mode 100644 index 00000000..fc3c3eec --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the CredentialListMapping resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md new file mode 100644 index 00000000..30efa171 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the IpAccessControlListMapping resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md new file mode 100644 index 00000000..cdbaba14 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the CredentialListMapping resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md new file mode 100644 index 00000000..1157f543 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**domain_sid** | Option<**String**> | The unique string that is created to identify the SipDomain resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 64 characters long. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md new file mode 100644 index 00000000..b6c1cd2c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**domain_sid** | Option<**String**> | The unique string that is created to identify the SipDomain resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 64 characters long. | [optional] +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md new file mode 100644 index 00000000..b81f6bf9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**account_sid** | Option<**String**> | The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text, up to 255 characters long. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of the IpAddress resources associated with this IP access control list resource. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md new file mode 100644 index 00000000..918e76b8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress.md @@ -0,0 +1,19 @@ +# ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | A 34 character string that uniquely identifies this resource. | [optional] +**account_sid** | Option<**String**> | The unique id of the Account that is responsible for this resource. | [optional] +**friendly_name** | Option<**String**> | A human readable descriptive text for this resource, up to 255 characters long. | [optional] +**ip_address** | Option<**String**> | An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. | [optional] +**cidr_prefix_length** | Option<**i32**> | An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. | [optional] +**ip_access_control_list_sid** | Option<**String**> | The unique id of the IpAccessControlList resource that includes this resource. | [optional] +**date_created** | Option<**String**> | The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**date_updated** | Option<**String**> | The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. | [optional] +**uri** | Option<**String**> | The URI for this resource, relative to `https://api.twilio.com` | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodToken.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodToken.md new file mode 100644 index 00000000..3b17489b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodToken.md @@ -0,0 +1,17 @@ +# ApiPeriodV2010PeriodAccountPeriodToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Token resource. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**ice_servers** | Option<[**Vec**](api_v2010_account_token_ice_servers_inner.md)> | An array representing the ephemeral credentials and the STUN and TURN server URIs. | [optional] +**password** | Option<**String**> | The temporary password that the username will use when authenticating with Twilio. | [optional] +**ttl** | Option<**String**> | The duration in seconds for which the username and password are valid. | [optional] +**username** | Option<**String**> | The temporary username that uniquely identifies a Token. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md new file mode 100644 index 00000000..03d9bd8f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodTranscription.md @@ -0,0 +1,23 @@ +# ApiPeriodV2010PeriodAccountPeriodTranscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. | [optional] +**api_version** | Option<**String**> | The API version used to create the transcription. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**duration** | Option<**String**> | The duration of the transcribed audio in seconds. | [optional] +**price** | Option<**f32**> | The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). | [optional] +**recording_sid** | Option<**String**> | The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the Transcription resource. | [optional] +**status** | Option<[**crate::models::TranscriptionEnumStatus**](transcription_enum_status.md)> | | [optional] +**transcription_text** | Option<**String**> | The text content of the transcription. | [optional] +**r#type** | Option<**String**> | The transcription type. Can only be: `fast`. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md new file mode 100644 index 00000000..3856974a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordEnumCategory**](usage_record_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md new file mode 100644 index 00000000..04b764a4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordAllTimeEnumCategory**](usage_record_all_time_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md new file mode 100644 index 00000000..adae96a2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordDailyEnumCategory**](usage_record_daily_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md new file mode 100644 index 00000000..2e95db0d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordLastMonthEnumCategory**](usage_record_last_month_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md new file mode 100644 index 00000000..1a25ea5d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordMonthlyEnumCategory**](usage_record_monthly_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md new file mode 100644 index 00000000..875e4dc9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordThisMonthEnumCategory**](usage_record_this_month_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md new file mode 100644 index 00000000..1c8d4f9a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordTodayEnumCategory**](usage_record_today_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md new file mode 100644 index 00000000..abded2de --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordYearlyEnumCategory**](usage_record_yearly_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md new file mode 100644 index 00000000..228fed4f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday.md @@ -0,0 +1,25 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**as_of** | Option<**String**> | Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT | [optional] +**category** | Option<[**crate::models::UsageRecordYesterdayEnumCategory**](usage_record_yesterday_enum_category.md)> | | [optional] +**count** | Option<**String**> | The number of usage events, such as the number of calls. | [optional] +**count_unit** | Option<**String**> | The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. | [optional] +**description** | Option<**String**> | A plain-language description of the usage category. | [optional] +**end_date** | Option<[**String**](string.md)> | The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**price** | Option<**f32**> | The total price of the usage in the currency specified in `price_unit` and associated with the account. | [optional] +**price_unit** | Option<**String**> | The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. | [optional] +**start_date** | Option<[**String**](string.md)> | The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. | [optional] +**subresource_uris** | Option<[**serde_json::Value**](.md)> | A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage** | Option<**String**> | The amount used to bill usage and measured in units described in `usage_unit`. | [optional] +**usage_unit** | Option<**String**> | The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md new file mode 100644 index 00000000..07634652 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger.md @@ -0,0 +1,26 @@ +# ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors. | [optional] +**api_version** | Option<**String**> | The API version used to create the resource. | [optional] +**callback_method** | Option<**String**> | The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. | [optional] +**callback_url** | Option<**String**> | The URL we call using the `callback_method` when the trigger fires. | [optional] +**current_value** | Option<**String**> | The current value of the field the trigger is watching. | [optional] +**date_created** | Option<**String**> | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_fired** | Option<**String**> | The date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**date_updated** | Option<**String**> | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the trigger. | [optional] +**recurring** | Option<[**crate::models::UsageTriggerEnumRecurring**](usage_trigger_enum_recurring.md)> | | [optional] +**sid** | Option<**String**> | The unique string that that we created to identify the UsageTrigger resource. | [optional] +**trigger_by** | Option<[**crate::models::UsageTriggerEnumTriggerField**](usage_trigger_enum_trigger_field.md)> | | [optional] +**trigger_value** | Option<**String**> | The value at which the trigger will fire. Must be a positive, numeric value. | [optional] +**uri** | Option<**String**> | The URI of the resource, relative to `https://api.twilio.com`. | [optional] +**usage_category** | Option<[**crate::models::UsageTriggerEnumUsageCategory**](usage_trigger_enum_usage_category.md)> | | [optional] +**usage_record_uri** | Option<**String**> | The URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md new file mode 100644 index 00000000..8687e6f7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodAccountPeriodValidationRequest.md @@ -0,0 +1,15 @@ +# ApiPeriodV2010PeriodAccountPeriodValidationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**account_sid** | Option<**String**> | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the Caller ID. | [optional] +**call_sid** | Option<**String**> | The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Caller ID is associated with. | [optional] +**friendly_name** | Option<**String**> | The string that you assigned to describe the resource. | [optional] +**phone_number** | Option<**String**> | The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | [optional] +**validation_code** | Option<**String**> | The 6 digit validation code that someone must enter to validate the Caller ID when `phone_number` is called. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodSafelist.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodSafelist.md new file mode 100644 index 00000000..7a198ba6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiPeriodV2010PeriodSafelist.md @@ -0,0 +1,12 @@ +# ApiPeriodV2010PeriodSafelist + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sid** | Option<**String**> | The unique string that we created to identify the SafeList resource. | [optional] +**phone_number** | Option<**String**> | The phone number in SafeList. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md new file mode 100644 index 00000000..1537e345 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities.md @@ -0,0 +1,14 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mms** | Option<**bool**> | | [optional] +**sms** | Option<**bool**> | | [optional] +**voice** | Option<**bool**> | | [optional] +**fax** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md new file mode 100644 index 00000000..04c18819 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountIncomingPhoneNumberCapabilities.md @@ -0,0 +1,14 @@ +# ApiV2010AccountIncomingPhoneNumberCapabilities + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mms** | Option<**bool**> | | [optional] +**sms** | Option<**bool**> | | [optional] +**voice** | Option<**bool**> | | [optional] +**fax** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountTokenIceServersInner.md b/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountTokenIceServersInner.md new file mode 100644 index 00000000..e15b9dd5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ApiV2010AccountTokenIceServersInner.md @@ -0,0 +1,14 @@ +# ApiV2010AccountTokenIceServersInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential** | Option<**String**> | | [optional] +**username** | Option<**String**> | | [optional] +**url** | Option<**String**> | | [optional] +**urls** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/AuthorizedConnectAppEnumPermission.md b/unmnemonic_devices_vrs/twilio-rust/docs/AuthorizedConnectAppEnumPermission.md new file mode 100644 index 00000000..734f65da --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/AuthorizedConnectAppEnumPermission.md @@ -0,0 +1,10 @@ +# AuthorizedConnectAppEnumPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumEvent.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumEvent.md new file mode 100644 index 00000000..1401bece --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumEvent.md @@ -0,0 +1,10 @@ +# CallEnumEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumStatus.md new file mode 100644 index 00000000..2e98508c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumStatus.md @@ -0,0 +1,10 @@ +# CallEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumUpdateStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumUpdateStatus.md new file mode 100644 index 00000000..181d62a1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallEnumUpdateStatus.md @@ -0,0 +1,10 @@ +# CallEnumUpdateStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallFeedbackEnumIssues.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallFeedbackEnumIssues.md new file mode 100644 index 00000000..cac876c3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallFeedbackEnumIssues.md @@ -0,0 +1,10 @@ +# CallFeedbackEnumIssues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallFeedbackSummaryEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallFeedbackSummaryEnumStatus.md new file mode 100644 index 00000000..659cd569 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallFeedbackSummaryEnumStatus.md @@ -0,0 +1,10 @@ +# CallFeedbackSummaryEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallRecordingEnumSource.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallRecordingEnumSource.md new file mode 100644 index 00000000..50ad1a3c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallRecordingEnumSource.md @@ -0,0 +1,10 @@ +# CallRecordingEnumSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/CallRecordingEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/CallRecordingEnumStatus.md new file mode 100644 index 00000000..8a160c37 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/CallRecordingEnumStatus.md @@ -0,0 +1,10 @@ +# CallRecordingEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumReasonConferenceEnded.md b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumReasonConferenceEnded.md new file mode 100644 index 00000000..57257c05 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumReasonConferenceEnded.md @@ -0,0 +1,10 @@ +# ConferenceEnumReasonConferenceEnded + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumStatus.md new file mode 100644 index 00000000..623255e1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumStatus.md @@ -0,0 +1,10 @@ +# ConferenceEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumUpdateStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumUpdateStatus.md new file mode 100644 index 00000000..8c948206 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceEnumUpdateStatus.md @@ -0,0 +1,10 @@ +# ConferenceEnumUpdateStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceRecordingEnumSource.md b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceRecordingEnumSource.md new file mode 100644 index 00000000..8812dab1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceRecordingEnumSource.md @@ -0,0 +1,10 @@ +# ConferenceRecordingEnumSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceRecordingEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceRecordingEnumStatus.md new file mode 100644 index 00000000..c5ec13d5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ConferenceRecordingEnumStatus.md @@ -0,0 +1,10 @@ +# ConferenceRecordingEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ConnectAppEnumPermission.md b/unmnemonic_devices_vrs/twilio-rust/docs/ConnectAppEnumPermission.md new file mode 100644 index 00000000..71afab85 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ConnectAppEnumPermission.md @@ -0,0 +1,10 @@ +# ConnectAppEnumPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/DependentPhoneNumberEnumAddressRequirement.md b/unmnemonic_devices_vrs/twilio-rust/docs/DependentPhoneNumberEnumAddressRequirement.md new file mode 100644 index 00000000..0288ec90 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/DependentPhoneNumberEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# DependentPhoneNumberEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/DependentPhoneNumberEnumEmergencyStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/DependentPhoneNumberEnumEmergencyStatus.md new file mode 100644 index 00000000..d3796e1f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/DependentPhoneNumberEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# DependentPhoneNumberEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumAddressRequirement.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumAddressRequirement.md new file mode 100644 index 00000000..80465046 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md new file mode 100644 index 00000000..49566424 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumEmergencyStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumEmergencyStatus.md new file mode 100644 index 00000000..99c9c20c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumVoiceReceiveMode.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumVoiceReceiveMode.md new file mode 100644 index 00000000..51055865 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumAddressRequirement.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumAddressRequirement.md new file mode 100644 index 00000000..ae7af87b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md new file mode 100644 index 00000000..39502265 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md new file mode 100644 index 00000000..5e1b33a0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md new file mode 100644 index 00000000..e8f1b789 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberLocalEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberLocalEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumAddressRequirement.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumAddressRequirement.md new file mode 100644 index 00000000..2b6164d6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md new file mode 100644 index 00000000..bfa41af2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md new file mode 100644 index 00000000..1172b90a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md new file mode 100644 index 00000000..b41c5c07 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberMobileEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberMobileEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md new file mode 100644 index 00000000..559d38d0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumAddressRequirement.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumAddressRequirement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md new file mode 100644 index 00000000..822e939c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md new file mode 100644 index 00000000..e59388f9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumEmergencyStatus.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumEmergencyStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md new file mode 100644 index 00000000..c4b0e526 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/IncomingPhoneNumberTollFreeEnumVoiceReceiveMode.md @@ -0,0 +1,10 @@ +# IncomingPhoneNumberTollFreeEnumVoiceReceiveMode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAccountResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAccountResponse.md new file mode 100644 index 00000000..649888e6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAccountResponse.md @@ -0,0 +1,19 @@ +# ListAccountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accounts** | Option<[**Vec**](api.v2010.account.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAddressResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAddressResponse.md new file mode 100644 index 00000000..1f443d62 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAddressResponse.md @@ -0,0 +1,19 @@ +# ListAddressResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | Option<[**Vec**](api.v2010.account.address.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListApplicationResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListApplicationResponse.md new file mode 100644 index 00000000..39e39df8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListApplicationResponse.md @@ -0,0 +1,19 @@ +# ListApplicationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**applications** | Option<[**Vec**](api.v2010.account.application.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAuthorizedConnectAppResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAuthorizedConnectAppResponse.md new file mode 100644 index 00000000..c637fa7e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAuthorizedConnectAppResponse.md @@ -0,0 +1,19 @@ +# ListAuthorizedConnectAppResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorized_connect_apps** | Option<[**Vec**](api.v2010.account.authorized_connect_app.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberCountryResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberCountryResponse.md new file mode 100644 index 00000000..53c746e5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberCountryResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberCountryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countries** | Option<[**Vec**](api.v2010.account.available_phone_number_country.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberLocalResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberLocalResponse.md new file mode 100644 index 00000000..677f53e2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberLocalResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberLocalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_local.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberMachineToMachineResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberMachineToMachineResponse.md new file mode 100644 index 00000000..1b6355ea --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberMachineToMachineResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberMachineToMachineResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_machine_to_machine.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberMobileResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberMobileResponse.md new file mode 100644 index 00000000..51cd2b30 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberMobileResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberMobileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_mobile.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberNationalResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberNationalResponse.md new file mode 100644 index 00000000..b3a1e637 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberNationalResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberNationalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_national.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberSharedCostResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberSharedCostResponse.md new file mode 100644 index 00000000..9dd25eff --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberSharedCostResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberSharedCostResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_shared_cost.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberTollFreeResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberTollFreeResponse.md new file mode 100644 index 00000000..89c70a09 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberTollFreeResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberTollFreeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_toll_free.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberVoipResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberVoipResponse.md new file mode 100644 index 00000000..f82978d6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListAvailablePhoneNumberVoipResponse.md @@ -0,0 +1,19 @@ +# ListAvailablePhoneNumberVoipResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**available_phone_numbers** | Option<[**Vec**](api.v2010.account.available_phone_number_country.available_phone_number_voip.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListCallEventResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallEventResponse.md new file mode 100644 index 00000000..f1491e77 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallEventResponse.md @@ -0,0 +1,19 @@ +# ListCallEventResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | Option<[**Vec**](api.v2010.account.call.call_event.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListCallNotificationResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallNotificationResponse.md new file mode 100644 index 00000000..a5f39fc0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallNotificationResponse.md @@ -0,0 +1,19 @@ +# ListCallNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | Option<[**Vec**](api.v2010.account.call.call_notification.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListCallRecordingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallRecordingResponse.md new file mode 100644 index 00000000..aae5e5a7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallRecordingResponse.md @@ -0,0 +1,19 @@ +# ListCallRecordingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordings** | Option<[**Vec**](api.v2010.account.call.call_recording.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListCallResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallResponse.md new file mode 100644 index 00000000..5a1d20a8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListCallResponse.md @@ -0,0 +1,19 @@ +# ListCallResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**calls** | Option<[**Vec**](api.v2010.account.call.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListConferenceRecordingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListConferenceRecordingResponse.md new file mode 100644 index 00000000..f3bcd8c1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListConferenceRecordingResponse.md @@ -0,0 +1,19 @@ +# ListConferenceRecordingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordings** | Option<[**Vec**](api.v2010.account.conference.conference_recording.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListConferenceResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListConferenceResponse.md new file mode 100644 index 00000000..e77c646f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListConferenceResponse.md @@ -0,0 +1,19 @@ +# ListConferenceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conferences** | Option<[**Vec**](api.v2010.account.conference.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListConnectAppResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListConnectAppResponse.md new file mode 100644 index 00000000..92bfc68e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListConnectAppResponse.md @@ -0,0 +1,19 @@ +# ListConnectAppResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connect_apps** | Option<[**Vec**](api.v2010.account.connect_app.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListDependentPhoneNumberResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListDependentPhoneNumberResponse.md new file mode 100644 index 00000000..3c045534 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListDependentPhoneNumberResponse.md @@ -0,0 +1,19 @@ +# ListDependentPhoneNumberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dependent_phone_numbers** | Option<[**Vec**](api.v2010.account.address.dependent_phone_number.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md new file mode 100644 index 00000000..2335c4f8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberAssignedAddOnExtensionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extensions** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.incoming_phone_number_assigned_add_on_extension.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md new file mode 100644 index 00000000..1163bc05 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberAssignedAddOnResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assigned_add_ons** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberLocalResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberLocalResponse.md new file mode 100644 index 00000000..d7b0f5e4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberLocalResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberLocalResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_local.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberMobileResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberMobileResponse.md new file mode 100644 index 00000000..e8d92be5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberMobileResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberMobileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_mobile.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberResponse.md new file mode 100644 index 00000000..093c3b67 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberTollFreeResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberTollFreeResponse.md new file mode 100644 index 00000000..008b4d96 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListIncomingPhoneNumberTollFreeResponse.md @@ -0,0 +1,19 @@ +# ListIncomingPhoneNumberTollFreeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**incoming_phone_numbers** | Option<[**Vec**](api.v2010.account.incoming_phone_number.incoming_phone_number_toll_free.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListKeyResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListKeyResponse.md new file mode 100644 index 00000000..7b9e8adc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListKeyResponse.md @@ -0,0 +1,19 @@ +# ListKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keys** | Option<[**Vec**](api.v2010.account.key.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListMediaResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListMediaResponse.md new file mode 100644 index 00000000..5ec44533 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListMediaResponse.md @@ -0,0 +1,19 @@ +# ListMediaResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**media_list** | Option<[**Vec**](api.v2010.account.message.media.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListMemberResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListMemberResponse.md new file mode 100644 index 00000000..4e959359 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListMemberResponse.md @@ -0,0 +1,19 @@ +# ListMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queue_members** | Option<[**Vec**](api.v2010.account.queue.member.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListMessageResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListMessageResponse.md new file mode 100644 index 00000000..c56f6f32 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListMessageResponse.md @@ -0,0 +1,19 @@ +# ListMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**messages** | Option<[**Vec**](api.v2010.account.message.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListNotificationResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListNotificationResponse.md new file mode 100644 index 00000000..6bc1857c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListNotificationResponse.md @@ -0,0 +1,19 @@ +# ListNotificationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notifications** | Option<[**Vec**](api.v2010.account.notification.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListOutgoingCallerIdResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListOutgoingCallerIdResponse.md new file mode 100644 index 00000000..93ec9e9f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListOutgoingCallerIdResponse.md @@ -0,0 +1,19 @@ +# ListOutgoingCallerIdResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**outgoing_caller_ids** | Option<[**Vec**](api.v2010.account.outgoing_caller_id.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListParticipantResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListParticipantResponse.md new file mode 100644 index 00000000..fe5bee1f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListParticipantResponse.md @@ -0,0 +1,19 @@ +# ListParticipantResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**participants** | Option<[**Vec**](api.v2010.account.conference.participant.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListQueueResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListQueueResponse.md new file mode 100644 index 00000000..612bb0c9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListQueueResponse.md @@ -0,0 +1,19 @@ +# ListQueueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**queues** | Option<[**Vec**](api.v2010.account.queue.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingAddOnResultPayloadResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingAddOnResultPayloadResponse.md new file mode 100644 index 00000000..0f19b679 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingAddOnResultPayloadResponse.md @@ -0,0 +1,19 @@ +# ListRecordingAddOnResultPayloadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payloads** | Option<[**Vec**](api.v2010.account.recording.recording_add_on_result.recording_add_on_result_payload.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingAddOnResultResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingAddOnResultResponse.md new file mode 100644 index 00000000..1c4697d6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingAddOnResultResponse.md @@ -0,0 +1,19 @@ +# ListRecordingAddOnResultResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**add_on_results** | Option<[**Vec**](api.v2010.account.recording.recording_add_on_result.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingResponse.md new file mode 100644 index 00000000..c15205e1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingResponse.md @@ -0,0 +1,19 @@ +# ListRecordingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**recordings** | Option<[**Vec**](api.v2010.account.recording.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingTranscriptionResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingTranscriptionResponse.md new file mode 100644 index 00000000..34aa9e28 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListRecordingTranscriptionResponse.md @@ -0,0 +1,19 @@ +# ListRecordingTranscriptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transcriptions** | Option<[**Vec**](api.v2010.account.recording.recording_transcription.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListShortCodeResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListShortCodeResponse.md new file mode 100644 index 00000000..48609f72 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListShortCodeResponse.md @@ -0,0 +1,19 @@ +# ListShortCodeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**short_codes** | Option<[**Vec**](api.v2010.account.short_code.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSigningKeyResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSigningKeyResponse.md new file mode 100644 index 00000000..10298f7d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSigningKeyResponse.md @@ -0,0 +1,19 @@ +# ListSigningKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**signing_keys** | Option<[**Vec**](api.v2010.account.signing_key.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthCallsCredentialListMappingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthCallsCredentialListMappingResponse.md new file mode 100644 index 00000000..c27e60a8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthCallsCredentialListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipAuthCallsCredentialListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md new file mode 100644 index 00000000..35256a76 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipAuthCallsIpAccessControlListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md new file mode 100644 index 00000000..ed43c924 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipAuthRegistrationsCredentialListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contents** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialListMappingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialListMappingResponse.md new file mode 100644 index 00000000..4f97d0e6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipCredentialListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential_list_mappings** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialListResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialListResponse.md new file mode 100644 index 00000000..717bbf6f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialListResponse.md @@ -0,0 +1,19 @@ +# ListSipCredentialListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credential_lists** | Option<[**Vec**](api.v2010.account.sip.sip_credential_list.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialResponse.md new file mode 100644 index 00000000..944dd07f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipCredentialResponse.md @@ -0,0 +1,19 @@ +# ListSipCredentialResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credentials** | Option<[**Vec**](api.v2010.account.sip.sip_credential_list.sip_credential.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipDomainResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipDomainResponse.md new file mode 100644 index 00000000..819155c0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipDomainResponse.md @@ -0,0 +1,19 @@ +# ListSipDomainResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domains** | Option<[**Vec**](api.v2010.account.sip.sip_domain.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAccessControlListMappingResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAccessControlListMappingResponse.md new file mode 100644 index 00000000..bc53a077 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAccessControlListMappingResponse.md @@ -0,0 +1,19 @@ +# ListSipIpAccessControlListMappingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_access_control_list_mappings** | Option<[**Vec**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAccessControlListResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAccessControlListResponse.md new file mode 100644 index 00000000..821dae08 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAccessControlListResponse.md @@ -0,0 +1,19 @@ +# ListSipIpAccessControlListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_access_control_lists** | Option<[**Vec**](api.v2010.account.sip.sip_ip_access_control_list.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAddressResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAddressResponse.md new file mode 100644 index 00000000..5069e48d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListSipIpAddressResponse.md @@ -0,0 +1,19 @@ +# ListSipIpAddressResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip_addresses** | Option<[**Vec**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListTranscriptionResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListTranscriptionResponse.md new file mode 100644 index 00000000..f743245d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListTranscriptionResponse.md @@ -0,0 +1,19 @@ +# ListTranscriptionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transcriptions** | Option<[**Vec**](api.v2010.account.transcription.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordAllTimeResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordAllTimeResponse.md new file mode 100644 index 00000000..6717a942 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordAllTimeResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordAllTimeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_all_time.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordDailyResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordDailyResponse.md new file mode 100644 index 00000000..2f4a9181 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordDailyResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordDailyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_daily.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordLastMonthResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordLastMonthResponse.md new file mode 100644 index 00000000..0af3d461 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordLastMonthResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordLastMonthResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_last_month.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordMonthlyResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordMonthlyResponse.md new file mode 100644 index 00000000..8a0c2f8e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordMonthlyResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordMonthlyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_monthly.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordResponse.md new file mode 100644 index 00000000..38294cf1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordThisMonthResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordThisMonthResponse.md new file mode 100644 index 00000000..cbda89b3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordThisMonthResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordThisMonthResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_this_month.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordTodayResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordTodayResponse.md new file mode 100644 index 00000000..1f028e98 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordTodayResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordTodayResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_today.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordYearlyResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordYearlyResponse.md new file mode 100644 index 00000000..9f863e8d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordYearlyResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordYearlyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_yearly.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordYesterdayResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordYesterdayResponse.md new file mode 100644 index 00000000..6c6a9565 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageRecordYesterdayResponse.md @@ -0,0 +1,19 @@ +# ListUsageRecordYesterdayResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_records** | Option<[**Vec**](api.v2010.account.usage.usage_record.usage_record_yesterday.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageTriggerResponse.md b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageTriggerResponse.md new file mode 100644 index 00000000..ea671abc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ListUsageTriggerResponse.md @@ -0,0 +1,19 @@ +# ListUsageTriggerResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usage_triggers** | Option<[**Vec**](api.v2010.account.usage.usage_trigger.md)> | | [optional] +**end** | Option<**i32**> | | [optional] +**first_page_uri** | Option<**String**> | | [optional] +**next_page_uri** | Option<**String**> | | [optional] +**page** | Option<**i32**> | | [optional] +**page_size** | Option<**i32**> | | [optional] +**previous_page_uri** | Option<**String**> | | [optional] +**start** | Option<**i32**> | | [optional] +**uri** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumAddressRetention.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumAddressRetention.md new file mode 100644 index 00000000..5e0e31be --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumAddressRetention.md @@ -0,0 +1,10 @@ +# MessageEnumAddressRetention + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumContentRetention.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumContentRetention.md new file mode 100644 index 00000000..26ddef83 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumContentRetention.md @@ -0,0 +1,10 @@ +# MessageEnumContentRetention + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumDirection.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumDirection.md new file mode 100644 index 00000000..9fd17754 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumDirection.md @@ -0,0 +1,10 @@ +# MessageEnumDirection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumRiskCheck.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumRiskCheck.md new file mode 100644 index 00000000..78ef5852 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumRiskCheck.md @@ -0,0 +1,10 @@ +# MessageEnumRiskCheck + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumScheduleType.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumScheduleType.md new file mode 100644 index 00000000..d995d274 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumScheduleType.md @@ -0,0 +1,10 @@ +# MessageEnumScheduleType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumStatus.md new file mode 100644 index 00000000..69d594c9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumStatus.md @@ -0,0 +1,10 @@ +# MessageEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumTrafficType.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumTrafficType.md new file mode 100644 index 00000000..616173aa --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumTrafficType.md @@ -0,0 +1,10 @@ +# MessageEnumTrafficType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumUpdateStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumUpdateStatus.md new file mode 100644 index 00000000..f125b9f2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageEnumUpdateStatus.md @@ -0,0 +1,10 @@ +# MessageEnumUpdateStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/MessageFeedbackEnumOutcome.md b/unmnemonic_devices_vrs/twilio-rust/docs/MessageFeedbackEnumOutcome.md new file mode 100644 index 00000000..ee562521 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/MessageFeedbackEnumOutcome.md @@ -0,0 +1,10 @@ +# MessageFeedbackEnumOutcome + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/ParticipantEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/ParticipantEnumStatus.md new file mode 100644 index 00000000..25aa2eb9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/ParticipantEnumStatus.md @@ -0,0 +1,10 @@ +# ParticipantEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumBankAccountType.md b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumBankAccountType.md new file mode 100644 index 00000000..3fbb519f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumBankAccountType.md @@ -0,0 +1,10 @@ +# PaymentsEnumBankAccountType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumCapture.md b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumCapture.md new file mode 100644 index 00000000..ef2601bb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumCapture.md @@ -0,0 +1,10 @@ +# PaymentsEnumCapture + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumPaymentMethod.md b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumPaymentMethod.md new file mode 100644 index 00000000..109bc729 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumPaymentMethod.md @@ -0,0 +1,10 @@ +# PaymentsEnumPaymentMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumStatus.md new file mode 100644 index 00000000..d3fdc4f1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumStatus.md @@ -0,0 +1,10 @@ +# PaymentsEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumTokenType.md b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumTokenType.md new file mode 100644 index 00000000..cdde552d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/PaymentsEnumTokenType.md @@ -0,0 +1,10 @@ +# PaymentsEnumTokenType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/RecordingAddOnResultEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingAddOnResultEnumStatus.md new file mode 100644 index 00000000..c615b3d7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingAddOnResultEnumStatus.md @@ -0,0 +1,10 @@ +# RecordingAddOnResultEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/RecordingEnumSource.md b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingEnumSource.md new file mode 100644 index 00000000..c73a02b4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingEnumSource.md @@ -0,0 +1,10 @@ +# RecordingEnumSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/RecordingEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingEnumStatus.md new file mode 100644 index 00000000..0c67e26b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingEnumStatus.md @@ -0,0 +1,10 @@ +# RecordingEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/RecordingTranscriptionEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingTranscriptionEnumStatus.md new file mode 100644 index 00000000..e4c13c00 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/RecordingTranscriptionEnumStatus.md @@ -0,0 +1,10 @@ +# RecordingTranscriptionEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumStatus.md new file mode 100644 index 00000000..bd04f70b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumStatus.md @@ -0,0 +1,10 @@ +# SiprecEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumTrack.md b/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumTrack.md new file mode 100644 index 00000000..47e41531 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumTrack.md @@ -0,0 +1,10 @@ +# SiprecEnumTrack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumUpdateStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumUpdateStatus.md new file mode 100644 index 00000000..ce4ca7dd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/SiprecEnumUpdateStatus.md @@ -0,0 +1,10 @@ +# SiprecEnumUpdateStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumStatus.md new file mode 100644 index 00000000..dbd95255 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumStatus.md @@ -0,0 +1,10 @@ +# StreamEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumTrack.md b/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumTrack.md new file mode 100644 index 00000000..bb703bea --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumTrack.md @@ -0,0 +1,10 @@ +# StreamEnumTrack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumUpdateStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumUpdateStatus.md new file mode 100644 index 00000000..1d6e3c2b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/StreamEnumUpdateStatus.md @@ -0,0 +1,10 @@ +# StreamEnumUpdateStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/TranscriptionEnumStatus.md b/unmnemonic_devices_vrs/twilio-rust/docs/TranscriptionEnumStatus.md new file mode 100644 index 00000000..3086de50 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/TranscriptionEnumStatus.md @@ -0,0 +1,10 @@ +# TranscriptionEnumStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordAllTimeEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordAllTimeEnumCategory.md new file mode 100644 index 00000000..6a3619cd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordAllTimeEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordAllTimeEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordDailyEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordDailyEnumCategory.md new file mode 100644 index 00000000..2916b5ce --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordDailyEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordDailyEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordEnumCategory.md new file mode 100644 index 00000000..a53e4979 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordLastMonthEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordLastMonthEnumCategory.md new file mode 100644 index 00000000..8bdd61aa --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordLastMonthEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordLastMonthEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordMonthlyEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordMonthlyEnumCategory.md new file mode 100644 index 00000000..15a986ad --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordMonthlyEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordMonthlyEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordThisMonthEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordThisMonthEnumCategory.md new file mode 100644 index 00000000..65618b5f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordThisMonthEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordThisMonthEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordTodayEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordTodayEnumCategory.md new file mode 100644 index 00000000..84c0c16c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordTodayEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordTodayEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordYearlyEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordYearlyEnumCategory.md new file mode 100644 index 00000000..e8ac83a7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordYearlyEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordYearlyEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordYesterdayEnumCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordYesterdayEnumCategory.md new file mode 100644 index 00000000..4a10d1e1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageRecordYesterdayEnumCategory.md @@ -0,0 +1,10 @@ +# UsageRecordYesterdayEnumCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumRecurring.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumRecurring.md new file mode 100644 index 00000000..3dd82125 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumRecurring.md @@ -0,0 +1,10 @@ +# UsageTriggerEnumRecurring + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumTriggerField.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumTriggerField.md new file mode 100644 index 00000000..2fb7762c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumTriggerField.md @@ -0,0 +1,10 @@ +# UsageTriggerEnumTriggerField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumUsageCategory.md b/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumUsageCategory.md new file mode 100644 index 00000000..5dac1243 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/docs/UsageTriggerEnumUsageCategory.md @@ -0,0 +1,10 @@ +# UsageTriggerEnumUsageCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/unmnemonic_devices_vrs/twilio-rust/git_push.sh b/unmnemonic_devices_vrs/twilio-rust/git_push.sh new file mode 100644 index 00000000..f53a75d4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_account_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_account_api.rs new file mode 100644 index 00000000..4b95ef9c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_account_api.rs @@ -0,0 +1,259 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_account`] +#[derive(Clone, Debug)] +pub struct CreateAccountParams { + /// A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` + pub friendly_name: Option +} + +/// struct for passing parameters to the method [`fetch_account`] +#[derive(Clone, Debug)] +pub struct FetchAccountParams { + /// The Account Sid that uniquely identifies the account to fetch + pub sid: String +} + +/// struct for passing parameters to the method [`list_account`] +#[derive(Clone, Debug)] +pub struct ListAccountParams { + /// Only return the Account resources with friendly names that exactly match this name. + pub friendly_name: Option, + /// Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. + pub status: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_account`] +#[derive(Clone, Debug)] +pub struct UpdateAccountParams { + /// The Account Sid that uniquely identifies the account to update + pub sid: String, + /// Update the human-readable description of this Account + pub friendly_name: Option, + pub status: Option +} + + +/// struct for typed errors of method [`create_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAccountError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_account`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateAccountError { + UnknownValue(serde_json::Value), +} + + +/// Create a new Twilio Subaccount from the account making the request +pub async fn create_account(configuration: &configuration::Configuration, params: CreateAccountParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the account specified by the provided Account Sid +pub async fn fetch_account(configuration: &configuration::Configuration, params: FetchAccountParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{Sid}.json", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieves a collection of Accounts belonging to the account used to make the request +pub async fn list_account(configuration: &configuration::Configuration, params: ListAccountParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let friendly_name = params.friendly_name; + let status = params.status; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = status { + local_var_req_builder = local_var_req_builder.query(&[("Status", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Modify the properties of a given Account +pub async fn update_account(configuration: &configuration::Configuration, params: UpdateAccountParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let sid = params.sid; + let friendly_name = params.friendly_name; + let status = params.status; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{Sid}.json", local_var_configuration.base_path, Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_add_on_result_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_add_on_result_api.rs new file mode 100644 index 00000000..f39157b8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_add_on_result_api.rs @@ -0,0 +1,198 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_recording_add_on_result`] +#[derive(Clone, Debug)] +pub struct DeleteRecordingAddOnResultParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. + pub account_sid: String, + /// The SID of the recording to which the result to delete belongs. + pub reference_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_recording_add_on_result`] +#[derive(Clone, Debug)] +pub struct FetchRecordingAddOnResultParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. + pub account_sid: String, + /// The SID of the recording to which the result to fetch belongs. + pub reference_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_recording_add_on_result`] +#[derive(Clone, Debug)] +pub struct ListRecordingAddOnResultParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. + pub account_sid: String, + /// The SID of the recording to which the result to read belongs. + pub reference_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`delete_recording_add_on_result`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingAddOnResultError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording_add_on_result`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingAddOnResultError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording_add_on_result`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingAddOnResultError { + UnknownValue(serde_json::Value), +} + + +/// Delete a result and purge all associated Payloads +pub async fn delete_recording_add_on_result(configuration: &configuration::Configuration, params: DeleteRecordingAddOnResultParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let reference_sid = params.reference_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of an AddOnResult +pub async fn fetch_recording_add_on_result(configuration: &configuration::Configuration, params: FetchRecordingAddOnResultParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let reference_sid = params.reference_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of results belonging to the recording +pub async fn list_recording_add_on_result(configuration: &configuration::Configuration, params: ListRecordingAddOnResultParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let reference_sid = params.reference_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_address_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_address_api.rs new file mode 100644 index 00000000..d5330c31 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_address_api.rs @@ -0,0 +1,414 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_address`] +#[derive(Clone, Debug)] +pub struct CreateAddressParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. + pub account_sid: String, + /// The name to associate with the new address. + pub customer_name: String, + /// The number and street address of the new address. + pub street: String, + /// The city of the new address. + pub city: String, + /// The state or region of the new address. + pub region: String, + /// The postal code of the new address. + pub postal_code: String, + /// The ISO country code of the new address. + pub iso_country: String, + /// A descriptive string that you create to describe the new address. It can be up to 64 characters long. + pub friendly_name: Option, + /// Whether to enable emergency calling on the new address. Can be: `true` or `false`. + pub emergency_enabled: Option, + /// Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide. + pub auto_correct_address: Option, + /// The additional number and street address of the address. + pub street_secondary: Option +} + +/// struct for passing parameters to the method [`delete_address`] +#[derive(Clone, Debug)] +pub struct DeleteAddressParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Address resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_address`] +#[derive(Clone, Debug)] +pub struct FetchAddressParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Address resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_address`] +#[derive(Clone, Debug)] +pub struct ListAddressParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. + pub account_sid: String, + /// The `customer_name` of the Address resources to read. + pub customer_name: Option, + /// The string that identifies the Address resources to read. + pub friendly_name: Option, + /// The ISO country code of the Address resources to read. + pub iso_country: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_address`] +#[derive(Clone, Debug)] +pub struct UpdateAddressParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Address resource to update. + pub sid: String, + /// A descriptive string that you create to describe the address. It can be up to 64 characters long. + pub friendly_name: Option, + /// The name to associate with the address. + pub customer_name: Option, + /// The number and street address of the address. + pub street: Option, + /// The city of the address. + pub city: Option, + /// The state or region of the address. + pub region: Option, + /// The postal code of the address. + pub postal_code: Option, + /// Whether to enable emergency calling on the address. Can be: `true` or `false`. + pub emergency_enabled: Option, + /// Whether we should automatically correct the address. Can be: `true` or `false` and the default is `true`. If empty or `true`, we will correct the address you provide if necessary. If `false`, we won't alter the address you provide. + pub auto_correct_address: Option, + /// The additional number and street address of the address. + pub street_secondary: Option +} + + +/// struct for typed errors of method [`create_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateAddressError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_address(configuration: &configuration::Configuration, params: CreateAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let customer_name = params.customer_name; + let street = params.street; + let city = params.city; + let region = params.region; + let postal_code = params.postal_code; + let iso_country = params.iso_country; + let friendly_name = params.friendly_name; + let emergency_enabled = params.emergency_enabled; + let auto_correct_address = params.auto_correct_address; + let street_secondary = params.street_secondary; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CustomerName", customer_name.to_string()); + local_var_form_params.insert("Street", street.to_string()); + local_var_form_params.insert("City", city.to_string()); + local_var_form_params.insert("Region", region.to_string()); + local_var_form_params.insert("PostalCode", postal_code.to_string()); + local_var_form_params.insert("IsoCountry", iso_country.to_string()); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_enabled { + local_var_form_params.insert("EmergencyEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = auto_correct_address { + local_var_form_params.insert("AutoCorrectAddress", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = street_secondary { + local_var_form_params.insert("StreetSecondary", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_address(configuration: &configuration::Configuration, params: DeleteAddressParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_address(configuration: &configuration::Configuration, params: FetchAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_address(configuration: &configuration::Configuration, params: ListAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let customer_name = params.customer_name; + let friendly_name = params.friendly_name; + let iso_country = params.iso_country; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = customer_name { + local_var_req_builder = local_var_req_builder.query(&[("CustomerName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = iso_country { + local_var_req_builder = local_var_req_builder.query(&[("IsoCountry", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_address(configuration: &configuration::Configuration, params: UpdateAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + let customer_name = params.customer_name; + let street = params.street; + let city = params.city; + let region = params.region; + let postal_code = params.postal_code; + let emergency_enabled = params.emergency_enabled; + let auto_correct_address = params.auto_correct_address; + let street_secondary = params.street_secondary; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = customer_name { + local_var_form_params.insert("CustomerName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = street { + local_var_form_params.insert("Street", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = city { + local_var_form_params.insert("City", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = region { + local_var_form_params.insert("Region", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = postal_code { + local_var_form_params.insert("PostalCode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_enabled { + local_var_form_params.insert("EmergencyEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = auto_correct_address { + local_var_form_params.insert("AutoCorrectAddress", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = street_secondary { + local_var_form_params.insert("StreetSecondary", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_all_time_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_all_time_api.rs new file mode 100644 index 00000000..6080743a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_all_time_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_all_time`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordAllTimeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_all_time`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordAllTimeError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_all_time(configuration: &configuration::Configuration, params: ListUsageRecordAllTimeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_application_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_application_api.rs new file mode 100644 index 00000000..d3a0f56e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_application_api.rs @@ -0,0 +1,492 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_application`] +#[derive(Clone, Debug)] +pub struct CreateApplicationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is the account's default API version. + pub api_version: Option, + /// The URL we should call when the phone number assigned to this application receives a call. + pub voice_url: Option, + /// The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + pub voice_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + pub voice_fallback_method: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. + pub status_callback_method: Option, + /// Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + pub voice_caller_id_lookup: Option, + /// The URL we should call when the phone number receives an incoming SMS message. + pub sms_url: Option, + /// The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. + pub sms_method: Option, + /// The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. + pub sms_fallback_method: Option, + /// The URL we should call using a POST method to send status information about SMS messages sent by the application. + pub sms_status_callback: Option, + /// The URL we should call using a POST method to send message status information to your application. + pub message_status_callback: Option, + /// A descriptive string that you create to describe the new application. It can be up to 64 characters long. + pub friendly_name: Option, + /// Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. + pub public_application_connect_enabled: Option +} + +/// struct for passing parameters to the method [`delete_application`] +#[derive(Clone, Debug)] +pub struct DeleteApplicationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Application resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_application`] +#[derive(Clone, Debug)] +pub struct FetchApplicationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Application resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_application`] +#[derive(Clone, Debug)] +pub struct ListApplicationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. + pub account_sid: String, + /// The string that identifies the Application resources to read. + pub friendly_name: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_application`] +#[derive(Clone, Debug)] +pub struct UpdateApplicationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Application resource to update. + pub sid: String, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option, + /// The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is your account's default API version. + pub api_version: Option, + /// The URL we should call when the phone number assigned to this application receives a call. + pub voice_url: Option, + /// The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + pub voice_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + pub voice_fallback_method: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. + pub status_callback_method: Option, + /// Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + pub voice_caller_id_lookup: Option, + /// The URL we should call when the phone number receives an incoming SMS message. + pub sms_url: Option, + /// The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. + pub sms_method: Option, + /// The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. + pub sms_fallback_method: Option, + /// Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility. + pub sms_status_callback: Option, + /// The URL we should call using a POST method to send message status information to your application. + pub message_status_callback: Option, + /// Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. + pub public_application_connect_enabled: Option +} + + +/// struct for typed errors of method [`create_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListApplicationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_application`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateApplicationError { + UnknownValue(serde_json::Value), +} + + +/// Create a new application within your account +pub async fn create_application(configuration: &configuration::Configuration, params: CreateApplicationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let api_version = params.api_version; + let voice_url = params.voice_url; + let voice_method = params.voice_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_fallback_method = params.voice_fallback_method; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let sms_url = params.sms_url; + let sms_method = params.sms_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_fallback_method = params.sms_fallback_method; + let sms_status_callback = params.sms_status_callback; + let message_status_callback = params.message_status_callback; + let friendly_name = params.friendly_name; + let public_application_connect_enabled = params.public_application_connect_enabled; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_status_callback { + local_var_form_params.insert("SmsStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = message_status_callback { + local_var_form_params.insert("MessageStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = public_application_connect_enabled { + local_var_form_params.insert("PublicApplicationConnectEnabled", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete the application by the specified application sid +pub async fn delete_application(configuration: &configuration::Configuration, params: DeleteApplicationParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the application specified by the provided sid +pub async fn fetch_application(configuration: &configuration::Configuration, params: FetchApplicationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of applications representing an application within the requesting account +pub async fn list_application(configuration: &configuration::Configuration, params: ListApplicationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the application's properties +pub async fn update_application(configuration: &configuration::Configuration, params: UpdateApplicationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + let api_version = params.api_version; + let voice_url = params.voice_url; + let voice_method = params.voice_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_fallback_method = params.voice_fallback_method; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let sms_url = params.sms_url; + let sms_method = params.sms_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_fallback_method = params.sms_fallback_method; + let sms_status_callback = params.sms_status_callback; + let message_status_callback = params.message_status_callback; + let public_application_connect_enabled = params.public_application_connect_enabled; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_status_callback { + local_var_form_params.insert("SmsStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = message_status_callback { + local_var_form_params.insert("MessageStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = public_application_connect_enabled { + local_var_form_params.insert("PublicApplicationConnectEnabled", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_assigned_add_on_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_assigned_add_on_api.rs new file mode 100644 index 00000000..2f8bddb2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_assigned_add_on_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_incoming_phone_number_assigned_add_on`] +#[derive(Clone, Debug)] +pub struct CreateIncomingPhoneNumberAssignedAddOnParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the Phone Number to assign the Add-on. + pub resource_sid: String, + /// The SID that identifies the Add-on installation. + pub installed_add_on_sid: String +} + +/// struct for passing parameters to the method [`delete_incoming_phone_number_assigned_add_on`] +#[derive(Clone, Debug)] +pub struct DeleteIncomingPhoneNumberAssignedAddOnParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. + pub account_sid: String, + /// The SID of the Phone Number to which the Add-on is assigned. + pub resource_sid: String, + /// The Twilio-provided string that uniquely identifies the resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_incoming_phone_number_assigned_add_on`] +#[derive(Clone, Debug)] +pub struct FetchIncomingPhoneNumberAssignedAddOnParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. + pub account_sid: String, + /// The SID of the Phone Number to which the Add-on is assigned. + pub resource_sid: String, + /// The Twilio-provided string that uniquely identifies the resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_incoming_phone_number_assigned_add_on`] +#[derive(Clone, Debug)] +pub struct ListIncomingPhoneNumberAssignedAddOnParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + pub account_sid: String, + /// The SID of the Phone Number to which the Add-on is assigned. + pub resource_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_assigned_add_on`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberAssignedAddOnError { + UnknownValue(serde_json::Value), +} + + +/// Assign an Add-on installation to the Number specified. +pub async fn create_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, params: CreateIncomingPhoneNumberAssignedAddOnParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let resource_sid = params.resource_sid; + let installed_add_on_sid = params.installed_add_on_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("InstalledAddOnSid", installed_add_on_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Remove the assignment of an Add-on installation from the Number specified. +pub async fn delete_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, params: DeleteIncomingPhoneNumberAssignedAddOnParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let resource_sid = params.resource_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of an Add-on installation currently assigned to this Number. +pub async fn fetch_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, params: FetchIncomingPhoneNumberAssignedAddOnParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let resource_sid = params.resource_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Add-on installations currently assigned to this Number. +pub async fn list_incoming_phone_number_assigned_add_on(configuration: &configuration::Configuration, params: ListIncomingPhoneNumberAssignedAddOnParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let resource_sid = params.resource_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_assigned_add_on_extension_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_assigned_add_on_extension_api.rs new file mode 100644 index 00000000..d6e90310 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_assigned_add_on_extension_api.rs @@ -0,0 +1,149 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_incoming_phone_number_assigned_add_on_extension`] +#[derive(Clone, Debug)] +pub struct FetchIncomingPhoneNumberAssignedAddOnExtensionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. + pub account_sid: String, + /// The SID of the Phone Number to which the Add-on is assigned. + pub resource_sid: String, + /// The SID that uniquely identifies the assigned Add-on installation. + pub assigned_add_on_sid: String, + /// The Twilio-provided string that uniquely identifies the resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_incoming_phone_number_assigned_add_on_extension`] +#[derive(Clone, Debug)] +pub struct ListIncomingPhoneNumberAssignedAddOnExtensionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + pub account_sid: String, + /// The SID of the Phone Number to which the Add-on is assigned. + pub resource_sid: String, + /// The SID that uniquely identifies the assigned Add-on installation. + pub assigned_add_on_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`fetch_incoming_phone_number_assigned_add_on_extension`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchIncomingPhoneNumberAssignedAddOnExtensionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_assigned_add_on_extension`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberAssignedAddOnExtensionError { + UnknownValue(serde_json::Value), +} + + +/// Fetch an instance of an Extension for the Assigned Add-on. +pub async fn fetch_incoming_phone_number_assigned_add_on_extension(configuration: &configuration::Configuration, params: FetchIncomingPhoneNumberAssignedAddOnExtensionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let resource_sid = params.resource_sid; + let assigned_add_on_sid = params.assigned_add_on_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), AssignedAddOnSid=crate::apis::urlencode(assigned_add_on_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Extensions for the Assigned Add-on. +pub async fn list_incoming_phone_number_assigned_add_on_extension(configuration: &configuration::Configuration, params: ListIncomingPhoneNumberAssignedAddOnExtensionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let resource_sid = params.resource_sid; + let assigned_add_on_sid = params.assigned_add_on_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ResourceSid=crate::apis::urlencode(resource_sid), AssignedAddOnSid=crate::apis::urlencode(assigned_add_on_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_calls_credential_list_mapping_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_calls_credential_list_mapping_api.rs new file mode 100644 index 00000000..b47563e8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_calls_credential_list_mapping_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_auth_calls_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct CreateSipAuthCallsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the SIP domain that will contain the new resource. + pub domain_sid: String, + /// The SID of the CredentialList resource to map to the SIP domain. + pub credential_list_sid: String +} + +/// struct for passing parameters to the method [`delete_sip_auth_calls_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct DeleteSipAuthCallsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. + pub account_sid: String, + /// The SID of the SIP domain that contains the resource to delete. + pub domain_sid: String, + /// The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_auth_calls_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct FetchSipAuthCallsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. + pub account_sid: String, + /// The SID of the SIP domain that contains the resource to fetch. + pub domain_sid: String, + /// The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_auth_calls_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct ListSipAuthCallsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. + pub account_sid: String, + /// The SID of the SIP domain that contains the resources to read. + pub domain_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_auth_calls_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipAuthCallsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + + +/// Create a new credential list mapping resource +pub async fn create_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, params: CreateSipAuthCallsCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let credential_list_sid = params.credential_list_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CredentialListSid", credential_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a credential list mapping from the requested domain +pub async fn delete_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, params: DeleteSipAuthCallsCredentialListMappingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of a credential list mapping +pub async fn fetch_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, params: FetchSipAuthCallsCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of credential list mappings belonging to the domain used in the request +pub async fn list_sip_auth_calls_credential_list_mapping(configuration: &configuration::Configuration, params: ListSipAuthCallsCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_calls_ip_access_control_list_mapping_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_calls_ip_access_control_list_mapping_api.rs new file mode 100644 index 00000000..3c269f7b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_calls_ip_access_control_list_mapping_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct CreateSipAuthCallsIpAccessControlListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the SIP domain that will contain the new resource. + pub domain_sid: String, + /// The SID of the IpAccessControlList resource to map to the SIP domain. + pub ip_access_control_list_sid: String +} + +/// struct for passing parameters to the method [`delete_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct DeleteSipAuthCallsIpAccessControlListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. + pub account_sid: String, + /// The SID of the SIP domain that contains the resources to delete. + pub domain_sid: String, + /// The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct FetchSipAuthCallsIpAccessControlListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. + pub account_sid: String, + /// The SID of the SIP domain that contains the resource to fetch. + pub domain_sid: String, + /// The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct ListSipAuthCallsIpAccessControlListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. + pub account_sid: String, + /// The SID of the SIP domain that contains the resources to read. + pub domain_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_auth_calls_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipAuthCallsIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + + +/// Create a new IP Access Control List mapping +pub async fn create_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: CreateSipAuthCallsIpAccessControlListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IpAccessControlListSid", ip_access_control_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IP Access Control List mapping from the requested domain +pub async fn delete_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: DeleteSipAuthCallsIpAccessControlListMappingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of an IP Access Control List mapping +pub async fn fetch_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: FetchSipAuthCallsIpAccessControlListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of IP Access Control List mappings belonging to the domain used in the request +pub async fn list_sip_auth_calls_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: ListSipAuthCallsIpAccessControlListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_registrations_credential_list_mapping_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_registrations_credential_list_mapping_api.rs new file mode 100644 index 00000000..4c056d7d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_auth_registrations_credential_list_mapping_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_auth_registrations_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct CreateSipAuthRegistrationsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the SIP domain that will contain the new resource. + pub domain_sid: String, + /// The SID of the CredentialList resource to map to the SIP domain. + pub credential_list_sid: String +} + +/// struct for passing parameters to the method [`delete_sip_auth_registrations_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct DeleteSipAuthRegistrationsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. + pub account_sid: String, + /// The SID of the SIP domain that contains the resources to delete. + pub domain_sid: String, + /// The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_auth_registrations_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct FetchSipAuthRegistrationsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. + pub account_sid: String, + /// The SID of the SIP domain that contains the resource to fetch. + pub domain_sid: String, + /// The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_auth_registrations_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct ListSipAuthRegistrationsCredentialListMappingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. + pub account_sid: String, + /// The SID of the SIP domain that contains the resources to read. + pub domain_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_auth_registrations_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipAuthRegistrationsCredentialListMappingError { + UnknownValue(serde_json::Value), +} + + +/// Create a new credential list mapping resource +pub async fn create_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, params: CreateSipAuthRegistrationsCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let credential_list_sid = params.credential_list_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CredentialListSid", credential_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a credential list mapping from the requested domain +pub async fn delete_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, params: DeleteSipAuthRegistrationsCredentialListMappingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of a credential list mapping +pub async fn fetch_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, params: FetchSipAuthRegistrationsCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of credential list mappings belonging to the domain used in the request +pub async fn list_sip_auth_registrations_credential_list_mapping(configuration: &configuration::Configuration, params: ListSipAuthRegistrationsCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_authorized_connect_app_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_authorized_connect_app_api.rs new file mode 100644 index 00000000..f0928b15 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_authorized_connect_app_api.rs @@ -0,0 +1,137 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_authorized_connect_app`] +#[derive(Clone, Debug)] +pub struct FetchAuthorizedConnectAppParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. + pub account_sid: String, + /// The SID of the Connect App to fetch. + pub connect_app_sid: String +} + +/// struct for passing parameters to the method [`list_authorized_connect_app`] +#[derive(Clone, Debug)] +pub struct ListAuthorizedConnectAppParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`fetch_authorized_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAuthorizedConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_authorized_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAuthorizedConnectAppError { + UnknownValue(serde_json::Value), +} + + +/// Fetch an instance of an authorized-connect-app +pub async fn fetch_authorized_connect_app(configuration: &configuration::Configuration, params: FetchAuthorizedConnectAppParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let connect_app_sid = params.connect_app_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConnectAppSid=crate::apis::urlencode(connect_app_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of authorized-connect-apps belonging to the account used to make the request +pub async fn list_authorized_connect_app(configuration: &configuration::Configuration, params: ListAuthorizedConnectAppParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_available_phone_number_country_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_available_phone_number_country_api.rs new file mode 100644 index 00000000..b773dbcf --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_available_phone_number_country_api.rs @@ -0,0 +1,137 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_available_phone_number_country`] +#[derive(Clone, Debug)] +pub struct FetchAvailablePhoneNumberCountryParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country to fetch available phone number information about. + pub country_code: String +} + +/// struct for passing parameters to the method [`list_available_phone_number_country`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberCountryParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`fetch_available_phone_number_country`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchAvailablePhoneNumberCountryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_country`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberCountryError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn fetch_available_phone_number_country(configuration: &configuration::Configuration, params: FetchAvailablePhoneNumberCountryParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_country(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberCountryParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_balance_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_balance_api.rs new file mode 100644 index 00000000..8683333b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_balance_api.rs @@ -0,0 +1,67 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_balance`] +#[derive(Clone, Debug)] +pub struct FetchBalanceParams { + /// The unique SID identifier of the Account. + pub account_sid: String +} + + +/// struct for typed errors of method [`fetch_balance`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchBalanceError { + UnknownValue(serde_json::Value), +} + + +/// Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information +pub async fn fetch_balance(configuration: &configuration::Configuration, params: FetchBalanceParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Balance.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_call_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_call_api.rs new file mode 100644 index 00000000..4bf83132 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_call_api.rs @@ -0,0 +1,613 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_call`] +#[derive(Clone, Debug)] +pub struct CreateCallParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The phone number, SIP address, or client identifier to call. + pub to: String, + /// The phone number or client identifier to use as the caller id. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `From` must also be a phone number. + pub from: String, + /// The HTTP method we should use when calling the `url` parameter's value. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. + pub method: Option, + /// The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored. + pub fallback_url: Option, + /// The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. + pub fallback_method: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted). + pub status_callback: Option, + /// The call progress events that we will send to the `status_callback` URL. Can be: `initiated`, `ringing`, `answered`, and `completed`. If no event is specified, we send the `completed` status. If you want to receive multiple events, specify each one in a separate `status_callback_event` parameter. See the code sample for [monitoring call progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json). If an `application_sid` is present, this parameter is ignored. + pub status_callback_event: Option>, + /// The HTTP method we should use when calling the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. + pub status_callback_method: Option, + /// A string of keys to dial after connecting to the number, maximum of 32 digits. Valid digits in the string include: any digit (`0`-`9`), '`#`', '`*`' and '`w`', to insert a half second pause. For example, if you connected to a company phone number and wanted to pause for one second, and then dial extension 1234 followed by the pound key, the value of this parameter would be `ww1234#`. Remember to URL-encode this string, since the '`#`' character has special meaning in a URL. If both `SendDigits` and `MachineDetection` parameters are provided, then `MachineDetection` will be ignored. + pub send_digits: Option, + /// The integer number of seconds that we should allow the phone to ring before assuming there is no answer. The default is `60` seconds and the maximum is `600` seconds. For some call flows, we will add a 5-second buffer to the timeout value you provide. For this reason, a timeout value of 10 seconds could result in an actual timeout closer to 15 seconds. You can set this to a short time, such as `15` seconds, to hang up before reaching an answering machine or voicemail. + pub timeout: Option, + /// Whether to record the call. Can be `true` to record the phone call, or `false` to not. The default is `false`. The `recording_url` is sent to the `status_callback` URL. + pub record: Option, + /// The number of channels in the final recording. Can be: `mono` or `dual`. The default is `mono`. `mono` records both legs of the call in a single channel of the recording file. `dual` records each leg to a separate channel of the recording file. The first channel of a dual-channel recording contains the parent call and the second channel contains the child call. + pub recording_channels: Option, + /// The URL that we call when the recording is available to be accessed. + pub recording_status_callback: Option, + /// The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. + pub recording_status_callback_method: Option, + /// The username used to authenticate the caller making a SIP call. + pub sip_auth_username: Option, + /// The password required to authenticate the user account specified in `sip_auth_username`. + pub sip_auth_password: Option, + /// Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. If `send_digits` is provided, this parameter is ignored. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). + pub machine_detection: Option, + /// The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. + pub machine_detection_timeout: Option, + /// The recording status events that will trigger calls to the URL specified in `recording_status_callback`. Can be: `in-progress`, `completed` and `absent`. Defaults to `completed`. Separate multiple values with a space. + pub recording_status_callback_event: Option>, + /// Whether to trim any leading and trailing silence from the recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. + pub trim: Option, + /// The phone number, SIP address, or Client identifier that made this call. Phone numbers are in [E.164 format](https://wwnw.twilio.com/docs/glossary/what-e164) (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. + pub caller_id: Option, + /// The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400. + pub machine_detection_speech_threshold: Option, + /// The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. + pub machine_detection_speech_end_threshold: Option, + /// The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. + pub machine_detection_silence_timeout: Option, + /// Select whether to perform answering machine detection in the background. Default, blocks the execution of the call until Answering Machine Detection is completed. Can be: `true` or `false`. + pub async_amd: Option, + /// The URL that we should call using the `async_amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. + pub async_amd_status_callback: Option, + /// The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. + pub async_amd_status_callback_method: Option, + /// The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta) + pub byoc: Option, + /// The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta) + pub call_reason: Option, + /// A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. + pub call_token: Option, + /// The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. + pub recording_track: Option, + /// The maximum duration of the call in seconds. Constraints depend on account and configuration. + pub time_limit: Option, + /// The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). + pub url: Option, + /// TwiML instructions for the call Twilio will use without fetching Twiml from url parameter. If both `twiml` and `url` are provided then `twiml` parameter will be ignored. Max 4000 characters. + pub twiml: Option, + /// The SID of the Application resource that will handle the call, if the call will be handled by an application. + pub application_sid: Option +} + +/// struct for passing parameters to the method [`delete_call`] +#[derive(Clone, Debug)] +pub struct DeleteCallParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. + pub account_sid: String, + /// The Twilio-provided Call SID that uniquely identifies the Call resource to delete + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_call`] +#[derive(Clone, Debug)] +pub struct FetchCallParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. + pub account_sid: String, + /// The SID of the Call resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_call`] +#[derive(Clone, Debug)] +pub struct ListCallParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. + pub account_sid: String, + /// Only show calls made to this phone number, SIP address, Client identifier or SIM SID. + pub to: Option, + /// Only include calls from this phone number, SIP address, Client identifier or SIM SID. + pub from: Option, + /// Only include calls spawned by calls with this SID. + pub parent_call_sid: Option, + /// The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. + pub status: Option, + /// Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. + pub start_time: Option, + /// Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. + pub start_time_less_than: Option, + /// Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. + pub start_time_greater_than: Option, + /// Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. + pub end_time: Option, + /// Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. + pub end_time_less_than: Option, + /// Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. + pub end_time_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_call`] +#[derive(Clone, Debug)] +pub struct UpdateCallParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Call resource to update + pub sid: String, + /// The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls). + pub url: Option, + /// The HTTP method we should use when calling the `url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. + pub method: Option, + pub status: Option, + /// The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored. + pub fallback_url: Option, + /// The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. + pub fallback_method: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted). + pub status_callback: Option, + /// The HTTP method we should use when requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored. + pub status_callback_method: Option, + /// TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive + pub twiml: Option, + /// The maximum duration of the call in seconds. Constraints depend on account and configuration. + pub time_limit: Option +} + + +/// struct for typed errors of method [`create_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_call`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCallError { + UnknownValue(serde_json::Value), +} + + +/// Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections +pub async fn create_call(configuration: &configuration::Configuration, params: CreateCallParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let to = params.to; + let from = params.from; + let method = params.method; + let fallback_url = params.fallback_url; + let fallback_method = params.fallback_method; + let status_callback = params.status_callback; + let status_callback_event = params.status_callback_event; + let status_callback_method = params.status_callback_method; + let send_digits = params.send_digits; + let timeout = params.timeout; + let record = params.record; + let recording_channels = params.recording_channels; + let recording_status_callback = params.recording_status_callback; + let recording_status_callback_method = params.recording_status_callback_method; + let sip_auth_username = params.sip_auth_username; + let sip_auth_password = params.sip_auth_password; + let machine_detection = params.machine_detection; + let machine_detection_timeout = params.machine_detection_timeout; + let recording_status_callback_event = params.recording_status_callback_event; + let trim = params.trim; + let caller_id = params.caller_id; + let machine_detection_speech_threshold = params.machine_detection_speech_threshold; + let machine_detection_speech_end_threshold = params.machine_detection_speech_end_threshold; + let machine_detection_silence_timeout = params.machine_detection_silence_timeout; + let async_amd = params.async_amd; + let async_amd_status_callback = params.async_amd_status_callback; + let async_amd_status_callback_method = params.async_amd_status_callback_method; + let byoc = params.byoc; + let call_reason = params.call_reason; + let call_token = params.call_token; + let recording_track = params.recording_track; + let time_limit = params.time_limit; + let url = params.url; + let twiml = params.twiml; + let application_sid = params.application_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("To", to.to_string()); + local_var_form_params.insert("From", from.to_string()); + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_url { + local_var_form_params.insert("FallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_method { + local_var_form_params.insert("FallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_event { + local_var_form_params.insert("StatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = send_digits { + local_var_form_params.insert("SendDigits", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = timeout { + local_var_form_params.insert("Timeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = record { + local_var_form_params.insert("Record", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_channels { + local_var_form_params.insert("RecordingChannels", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback { + local_var_form_params.insert("RecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_method { + local_var_form_params.insert("RecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_username { + local_var_form_params.insert("SipAuthUsername", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_password { + local_var_form_params.insert("SipAuthPassword", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection { + local_var_form_params.insert("MachineDetection", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_timeout { + local_var_form_params.insert("MachineDetectionTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_event { + local_var_form_params.insert("RecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = trim { + local_var_form_params.insert("Trim", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = caller_id { + local_var_form_params.insert("CallerId", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_threshold { + local_var_form_params.insert("MachineDetectionSpeechThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_end_threshold { + local_var_form_params.insert("MachineDetectionSpeechEndThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_silence_timeout { + local_var_form_params.insert("MachineDetectionSilenceTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = async_amd { + local_var_form_params.insert("AsyncAmd", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = async_amd_status_callback { + local_var_form_params.insert("AsyncAmdStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = async_amd_status_callback_method { + local_var_form_params.insert("AsyncAmdStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc { + local_var_form_params.insert("Byoc", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_reason { + local_var_form_params.insert("CallReason", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_token { + local_var_form_params.insert("CallToken", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_track { + local_var_form_params.insert("RecordingTrack", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = time_limit { + local_var_form_params.insert("TimeLimit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = url { + local_var_form_params.insert("Url", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = twiml { + local_var_form_params.insert("Twiml", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = application_sid { + local_var_form_params.insert("ApplicationSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. +pub async fn delete_call(configuration: &configuration::Configuration, params: DeleteCallParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch the call specified by the provided Call SID +pub async fn fetch_call(configuration: &configuration::Configuration, params: FetchCallParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieves a collection of calls made to and from your account +pub async fn list_call(configuration: &configuration::Configuration, params: ListCallParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let to = params.to; + let from = params.from; + let parent_call_sid = params.parent_call_sid; + let status = params.status; + let start_time = params.start_time; + let start_time_less_than = params.start_time_less_than; + let start_time_greater_than = params.start_time_greater_than; + let end_time = params.end_time; + let end_time_less_than = params.end_time_less_than; + let end_time_greater_than = params.end_time_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = to { + local_var_req_builder = local_var_req_builder.query(&[("To", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = from { + local_var_req_builder = local_var_req_builder.query(&[("From", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = parent_call_sid { + local_var_req_builder = local_var_req_builder.query(&[("ParentCallSid", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = status { + local_var_req_builder = local_var_req_builder.query(&[("Status", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_time { + local_var_req_builder = local_var_req_builder.query(&[("StartTime", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_time_less_than { + local_var_req_builder = local_var_req_builder.query(&[("StartTime<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_time_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("StartTime>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_time { + local_var_req_builder = local_var_req_builder.query(&[("EndTime", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_time_less_than { + local_var_req_builder = local_var_req_builder.query(&[("EndTime<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_time_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("EndTime>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Initiates a call redirect or terminates a call +pub async fn update_call(configuration: &configuration::Configuration, params: UpdateCallParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let url = params.url; + let method = params.method; + let status = params.status; + let fallback_url = params.fallback_url; + let fallback_method = params.fallback_method; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let twiml = params.twiml; + let time_limit = params.time_limit; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = url { + local_var_form_params.insert("Url", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_url { + local_var_form_params.insert("FallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = fallback_method { + local_var_form_params.insert("FallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = twiml { + local_var_form_params.insert("Twiml", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = time_limit { + local_var_form_params.insert("TimeLimit", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_conference_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_conference_api.rs new file mode 100644 index 00000000..70343cc4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_conference_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_conference`] +#[derive(Clone, Debug)] +pub struct FetchConferenceParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Conference resource to fetch + pub sid: String +} + +/// struct for passing parameters to the method [`list_conference`] +#[derive(Clone, Debug)] +pub struct ListConferenceParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. + pub account_sid: String, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + pub date_created: Option, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + pub date_created_less_than: Option, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + pub date_created_greater_than: Option, + /// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + pub date_updated: Option, + /// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + pub date_updated_less_than: Option, + /// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + pub date_updated_greater_than: Option, + /// The string that identifies the Conference resources to read. + pub friendly_name: Option, + /// The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. + pub status: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_conference`] +#[derive(Clone, Debug)] +pub struct UpdateConferenceParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Conference resource to update + pub sid: String, + pub status: Option, + /// The URL we should call to announce something into the conference. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. + pub announce_url: Option, + /// The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` + pub announce_method: Option +} + + +/// struct for typed errors of method [`fetch_conference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchConferenceError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_conference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListConferenceError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_conference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateConferenceError { + UnknownValue(serde_json::Value), +} + + +/// Fetch an instance of a conference +pub async fn fetch_conference(configuration: &configuration::Configuration, params: FetchConferenceParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of conferences belonging to the account used to make the request +pub async fn list_conference(configuration: &configuration::Configuration, params: ListConferenceParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let date_created = params.date_created; + let date_created_less_than = params.date_created_less_than; + let date_created_greater_than = params.date_created_greater_than; + let date_updated = params.date_updated; + let date_updated_less_than = params.date_updated_less_than; + let date_updated_greater_than = params.date_updated_greater_than; + let friendly_name = params.friendly_name; + let status = params.status; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_updated { + local_var_req_builder = local_var_req_builder.query(&[("DateUpdated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_updated_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateUpdated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_updated_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateUpdated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = status { + local_var_req_builder = local_var_req_builder.query(&[("Status", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_conference(configuration: &configuration::Configuration, params: UpdateConferenceParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let status = params.status; + let announce_url = params.announce_url; + let announce_method = params.announce_method; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_url { + local_var_form_params.insert("AnnounceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_method { + local_var_form_params.insert("AnnounceMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_connect_app_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_connect_app_api.rs new file mode 100644 index 00000000..b84f8a03 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_connect_app_api.rs @@ -0,0 +1,291 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_connect_app`] +#[derive(Clone, Debug)] +pub struct DeleteConnectAppParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_connect_app`] +#[derive(Clone, Debug)] +pub struct FetchConnectAppParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_connect_app`] +#[derive(Clone, Debug)] +pub struct ListConnectAppParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_connect_app`] +#[derive(Clone, Debug)] +pub struct UpdateConnectAppParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the ConnectApp resource to update. + pub sid: String, + /// The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. + pub authorize_redirect_url: Option, + /// The company name to set for the Connect App. + pub company_name: Option, + /// The HTTP method to use when calling `deauthorize_callback_url`. + pub deauthorize_callback_method: Option, + /// The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. + pub deauthorize_callback_url: Option, + /// A description of the Connect App. + pub description: Option, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option, + /// A public URL where users can obtain more information about this Connect App. + pub homepage_url: Option, + /// A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. + pub permissions: Option> +} + + +/// struct for typed errors of method [`delete_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListConnectAppError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_connect_app`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateConnectAppError { + UnknownValue(serde_json::Value), +} + + +/// Delete an instance of a connect-app +pub async fn delete_connect_app(configuration: &configuration::Configuration, params: DeleteConnectAppParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a connect-app +pub async fn fetch_connect_app(configuration: &configuration::Configuration, params: FetchConnectAppParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of connect-apps belonging to the account used to make the request +pub async fn list_connect_app(configuration: &configuration::Configuration, params: ListConnectAppParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a connect-app with the specified parameters +pub async fn update_connect_app(configuration: &configuration::Configuration, params: UpdateConnectAppParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let authorize_redirect_url = params.authorize_redirect_url; + let company_name = params.company_name; + let deauthorize_callback_method = params.deauthorize_callback_method; + let deauthorize_callback_url = params.deauthorize_callback_url; + let description = params.description; + let friendly_name = params.friendly_name; + let homepage_url = params.homepage_url; + let permissions = params.permissions; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = authorize_redirect_url { + local_var_form_params.insert("AuthorizeRedirectUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = company_name { + local_var_form_params.insert("CompanyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = deauthorize_callback_method { + local_var_form_params.insert("DeauthorizeCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = deauthorize_callback_url { + local_var_form_params.insert("DeauthorizeCallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = description { + local_var_form_params.insert("Description", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = homepage_url { + local_var_form_params.insert("HomepageUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = permissions { + local_var_form_params.insert("Permissions", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_api.rs new file mode 100644 index 00000000..a63e31d4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_api.rs @@ -0,0 +1,323 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_credential`] +#[derive(Clone, Debug)] +pub struct CreateSipCredentialParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The unique id that identifies the credential list to include the created credential. + pub credential_list_sid: String, + /// The username that will be passed when authenticating SIP requests. The username should be sent in response to Twilio's challenge of the initial INVITE. It can be up to 32 characters long. + pub username: String, + /// The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`) + pub password: String +} + +/// struct for passing parameters to the method [`delete_sip_credential`] +#[derive(Clone, Debug)] +pub struct DeleteSipCredentialParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The unique id that identifies the credential list that contains the desired credentials. + pub credential_list_sid: String, + /// The unique id that identifies the resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_credential`] +#[derive(Clone, Debug)] +pub struct FetchSipCredentialParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The unique id that identifies the credential list that contains the desired credential. + pub credential_list_sid: String, + /// The unique id that identifies the resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_credential`] +#[derive(Clone, Debug)] +pub struct ListSipCredentialParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The unique id that identifies the credential list that contains the desired credentials. + pub credential_list_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_sip_credential`] +#[derive(Clone, Debug)] +pub struct UpdateSipCredentialParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The unique id that identifies the credential list that includes this credential. + pub credential_list_sid: String, + /// The unique id that identifies the resource to update. + pub sid: String, + /// The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`) + pub password: Option +} + + +/// struct for typed errors of method [`create_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipCredentialError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_credential`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipCredentialError { + UnknownValue(serde_json::Value), +} + + +/// Create a new credential resource. +pub async fn create_sip_credential(configuration: &configuration::Configuration, params: CreateSipCredentialParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let credential_list_sid = params.credential_list_sid; + let username = params.username; + let password = params.password; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Username", username.to_string()); + local_var_form_params.insert("Password", password.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a credential resource. +pub async fn delete_sip_credential(configuration: &configuration::Configuration, params: DeleteSipCredentialParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let credential_list_sid = params.credential_list_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a single credential. +pub async fn fetch_sip_credential(configuration: &configuration::Configuration, params: FetchSipCredentialParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let credential_list_sid = params.credential_list_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of credentials. +pub async fn list_sip_credential(configuration: &configuration::Configuration, params: ListSipCredentialParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let credential_list_sid = params.credential_list_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a credential resource. +pub async fn update_sip_credential(configuration: &configuration::Configuration, params: UpdateSipCredentialParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let credential_list_sid = params.credential_list_sid; + let sid = params.sid; + let password = params.password; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CredentialListSid=crate::apis::urlencode(credential_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = password { + local_var_form_params.insert("Password", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_list_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_list_api.rs new file mode 100644 index 00000000..84d7e442 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_list_api.rs @@ -0,0 +1,302 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_credential_list`] +#[derive(Clone, Debug)] +pub struct CreateSipCredentialListParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// A human readable descriptive text that describes the CredentialList, up to 64 characters long. + pub friendly_name: String +} + +/// struct for passing parameters to the method [`delete_sip_credential_list`] +#[derive(Clone, Debug)] +pub struct DeleteSipCredentialListParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The credential list Sid that uniquely identifies this resource + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_credential_list`] +#[derive(Clone, Debug)] +pub struct FetchSipCredentialListParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The credential list Sid that uniquely identifies this resource + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_credential_list`] +#[derive(Clone, Debug)] +pub struct ListSipCredentialListParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_sip_credential_list`] +#[derive(Clone, Debug)] +pub struct UpdateSipCredentialListParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// The credential list Sid that uniquely identifies this resource + pub sid: String, + /// A human readable descriptive text for a CredentialList, up to 64 characters long. + pub friendly_name: String +} + + +/// struct for typed errors of method [`create_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipCredentialListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_credential_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipCredentialListError { + UnknownValue(serde_json::Value), +} + + +/// Create a Credential List +pub async fn create_sip_credential_list(configuration: &configuration::Configuration, params: CreateSipCredentialListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a Credential List +pub async fn delete_sip_credential_list(configuration: &configuration::Configuration, params: DeleteSipCredentialListParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get a Credential List +pub async fn fetch_sip_credential_list(configuration: &configuration::Configuration, params: FetchSipCredentialListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Get All Credential Lists +pub async fn list_sip_credential_list(configuration: &configuration::Configuration, params: ListSipCredentialListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a Credential List +pub async fn update_sip_credential_list(configuration: &configuration::Configuration, params: UpdateSipCredentialListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_list_mapping_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_list_mapping_api.rs new file mode 100644 index 00000000..b1022fae --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_credential_list_mapping_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct CreateSipCredentialListMappingParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. + pub domain_sid: String, + /// A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. + pub credential_list_sid: String +} + +/// struct for passing parameters to the method [`delete_sip_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct DeleteSipCredentialListMappingParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. + pub domain_sid: String, + /// A 34 character string that uniquely identifies the resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct FetchSipCredentialListMappingParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. + pub domain_sid: String, + /// A 34 character string that uniquely identifies the resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_credential_list_mapping`] +#[derive(Clone, Debug)] +pub struct ListSipCredentialListMappingParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. + pub domain_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_credential_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipCredentialListMappingError { + UnknownValue(serde_json::Value), +} + + +/// Create a CredentialListMapping resource for an account. +pub async fn create_sip_credential_list_mapping(configuration: &configuration::Configuration, params: CreateSipCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let credential_list_sid = params.credential_list_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CredentialListSid", credential_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a CredentialListMapping resource from an account. +pub async fn delete_sip_credential_list_mapping(configuration: &configuration::Configuration, params: DeleteSipCredentialListMappingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a single CredentialListMapping resource from an account. +pub async fn fetch_sip_credential_list_mapping(configuration: &configuration::Configuration, params: FetchSipCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read multiple CredentialListMapping resources from an account. +pub async fn list_sip_credential_list_mapping(configuration: &configuration::Configuration, params: ListSipCredentialListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_daily_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_daily_api.rs new file mode 100644 index 00000000..dc55a3bd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_daily_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_daily`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordDailyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_daily`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordDailyError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_daily(configuration: &configuration::Configuration, params: ListUsageRecordDailyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_dependent_phone_number_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_dependent_phone_number_api.rs new file mode 100644 index 00000000..c12dd8dc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_dependent_phone_number_api.rs @@ -0,0 +1,88 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_dependent_phone_number`] +#[derive(Clone, Debug)] +pub struct ListDependentPhoneNumberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. + pub account_sid: String, + /// The SID of the Address resource associated with the phone number. + pub address_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_dependent_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListDependentPhoneNumberError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_dependent_phone_number(configuration: &configuration::Configuration, params: ListDependentPhoneNumberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let address_sid = params.address_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), AddressSid=crate::apis::urlencode(address_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_domain_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_domain_api.rs new file mode 100644 index 00000000..cc2d9a27 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_domain_api.rs @@ -0,0 +1,448 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_domain`] +#[derive(Clone, Debug)] +pub struct CreateSipDomainParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\" and must end with `sip.twilio.com`. + pub domain_name: String, + /// A descriptive string that you created to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option, + /// The URL we should when the domain receives a call. + pub voice_url: Option, + /// The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + pub voice_method: Option, + /// The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. + pub voice_fallback_url: Option, + /// The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call to pass status parameters (such as call ended) to your application. + pub voice_status_callback_url: Option, + /// The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. + pub voice_status_callback_method: Option, + /// Whether to allow SIP Endpoints to register with the domain to receive calls. Can be `true` or `false`. `true` allows SIP Endpoints to register with the domain to receive calls, `false` does not. + pub sip_registration: Option, + /// Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + pub emergency_calling_enabled: Option, + /// Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. + pub secure: Option, + /// The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + pub byoc_trunk_sid: Option, + /// Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. + pub emergency_caller_sid: Option +} + +/// struct for passing parameters to the method [`delete_sip_domain`] +#[derive(Clone, Debug)] +pub struct DeleteSipDomainParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the SipDomain resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_domain`] +#[derive(Clone, Debug)] +pub struct FetchSipDomainParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_domain`] +#[derive(Clone, Debug)] +pub struct ListSipDomainParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_sip_domain`] +#[derive(Clone, Debug)] +pub struct UpdateSipDomainParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the SipDomain resource to update. + pub sid: String, + /// A descriptive string that you created to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option, + /// The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. + pub voice_fallback_url: Option, + /// The HTTP method we should use to call `voice_url` + pub voice_method: Option, + /// The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. + pub voice_status_callback_method: Option, + /// The URL that we should call to pass status parameters (such as call ended) to your application. + pub voice_status_callback_url: Option, + /// The URL we should call when the domain receives a call. + pub voice_url: Option, + /// Whether to allow SIP Endpoints to register with the domain to receive calls. Can be `true` or `false`. `true` allows SIP Endpoints to register with the domain to receive calls, `false` does not. + pub sip_registration: Option, + /// The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\" and must end with `sip.twilio.com`. + pub domain_name: Option, + /// Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + pub emergency_calling_enabled: Option, + /// Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. + pub secure: Option, + /// The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + pub byoc_trunk_sid: Option, + /// Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. + pub emergency_caller_sid: Option +} + + +/// struct for typed errors of method [`create_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipDomainError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_domain`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipDomainError { + UnknownValue(serde_json::Value), +} + + +/// Create a new Domain +pub async fn create_sip_domain(configuration: &configuration::Configuration, params: CreateSipDomainParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_name = params.domain_name; + let friendly_name = params.friendly_name; + let voice_url = params.voice_url; + let voice_method = params.voice_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_fallback_method = params.voice_fallback_method; + let voice_status_callback_url = params.voice_status_callback_url; + let voice_status_callback_method = params.voice_status_callback_method; + let sip_registration = params.sip_registration; + let emergency_calling_enabled = params.emergency_calling_enabled; + let secure = params.secure; + let byoc_trunk_sid = params.byoc_trunk_sid; + let emergency_caller_sid = params.emergency_caller_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("DomainName", domain_name.to_string()); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_url { + local_var_form_params.insert("VoiceStatusCallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_method { + local_var_form_params.insert("VoiceStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_registration { + local_var_form_params.insert("SipRegistration", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_calling_enabled { + local_var_form_params.insert("EmergencyCallingEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = secure { + local_var_form_params.insert("Secure", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc_trunk_sid { + local_var_form_params.insert("ByocTrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_caller_sid { + local_var_form_params.insert("EmergencyCallerSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an instance of a Domain +pub async fn delete_sip_domain(configuration: &configuration::Configuration, params: DeleteSipDomainParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a Domain +pub async fn fetch_sip_domain(configuration: &configuration::Configuration, params: FetchSipDomainParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of domains belonging to the account used to make the request +pub async fn list_sip_domain(configuration: &configuration::Configuration, params: ListSipDomainParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update the attributes of a domain +pub async fn update_sip_domain(configuration: &configuration::Configuration, params: UpdateSipDomainParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + let voice_fallback_method = params.voice_fallback_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_method = params.voice_method; + let voice_status_callback_method = params.voice_status_callback_method; + let voice_status_callback_url = params.voice_status_callback_url; + let voice_url = params.voice_url; + let sip_registration = params.sip_registration; + let domain_name = params.domain_name; + let emergency_calling_enabled = params.emergency_calling_enabled; + let secure = params.secure; + let byoc_trunk_sid = params.byoc_trunk_sid; + let emergency_caller_sid = params.emergency_caller_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_method { + local_var_form_params.insert("VoiceStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_status_callback_url { + local_var_form_params.insert("VoiceStatusCallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_registration { + local_var_form_params.insert("SipRegistration", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = domain_name { + local_var_form_params.insert("DomainName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_calling_enabled { + local_var_form_params.insert("EmergencyCallingEnabled", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = secure { + local_var_form_params.insert("Secure", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc_trunk_sid { + local_var_form_params.insert("ByocTrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_caller_sid { + local_var_form_params.insert("EmergencyCallerSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_event_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_event_api.rs new file mode 100644 index 00000000..f33f0871 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_event_api.rs @@ -0,0 +1,88 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_call_event`] +#[derive(Clone, Debug)] +pub struct ListCallEventParams { + /// The unique SID identifier of the Account. + pub account_sid: String, + /// The unique SID identifier of the Call. + pub call_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_call_event`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallEventError { + UnknownValue(serde_json::Value), +} + + +/// Retrieve a list of all events for a call. +pub async fn list_call_event(configuration: &configuration::Configuration, params: ListCallEventParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_feedback_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_feedback_api.rs new file mode 100644 index 00000000..ac76ca41 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_feedback_api.rs @@ -0,0 +1,195 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_message_feedback`] +#[derive(Clone, Debug)] +pub struct CreateMessageFeedbackParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. + pub account_sid: String, + /// The SID of the Message resource for which to create MessageFeedback. + pub message_sid: String, + pub outcome: Option +} + +/// struct for passing parameters to the method [`fetch_call_feedback`] +#[derive(Clone, Debug)] +pub struct FetchCallFeedbackParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The call sid that uniquely identifies the call + pub call_sid: String +} + +/// struct for passing parameters to the method [`update_call_feedback`] +#[derive(Clone, Debug)] +pub struct UpdateCallFeedbackParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The call sid that uniquely identifies the call + pub call_sid: String, + /// The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. + pub quality_score: Option, + /// One or more issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. + pub issue: Option> +} + + +/// struct for typed errors of method [`create_message_feedback`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateMessageFeedbackError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_feedback`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallFeedbackError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_call_feedback`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCallFeedbackError { + UnknownValue(serde_json::Value), +} + + +/// Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message +pub async fn create_message_feedback(configuration: &configuration::Configuration, params: CreateMessageFeedbackParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let message_sid = params.message_sid; + let outcome = params.outcome; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = outcome { + local_var_form_params.insert("Outcome", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a Feedback resource from a call +pub async fn fetch_call_feedback(configuration: &configuration::Configuration, params: FetchCallFeedbackParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a Feedback resource for a call +pub async fn update_call_feedback(configuration: &configuration::Configuration, params: UpdateCallFeedbackParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let quality_score = params.quality_score; + let issue = params.issue; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = quality_score { + local_var_form_params.insert("QualityScore", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = issue { + local_var_form_params.insert("Issue", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_feedback_summary_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_feedback_summary_api.rs new file mode 100644 index 00000000..e5e37011 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_feedback_summary_api.rs @@ -0,0 +1,199 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_call_feedback_summary`] +#[derive(Clone, Debug)] +pub struct CreateCallFeedbackSummaryParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. + pub start_date: String, + /// Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. + pub end_date: String, + /// Whether to also include Feedback resources from all subaccounts. `true` includes feedback from all subaccounts and `false`, the default, includes feedback from only the specified account. + pub include_subaccounts: Option, + /// The URL that we will request when the feedback summary is complete. + pub status_callback: Option, + /// The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. + pub status_callback_method: Option +} + +/// struct for passing parameters to the method [`delete_call_feedback_summary`] +#[derive(Clone, Debug)] +pub struct DeleteCallFeedbackSummaryParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies this resource. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_call_feedback_summary`] +#[derive(Clone, Debug)] +pub struct FetchCallFeedbackSummaryParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies this resource. + pub sid: String +} + + +/// struct for typed errors of method [`create_call_feedback_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateCallFeedbackSummaryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_call_feedback_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteCallFeedbackSummaryError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_feedback_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallFeedbackSummaryError { + UnknownValue(serde_json::Value), +} + + +/// Create a FeedbackSummary resource for a call +pub async fn create_call_feedback_summary(configuration: &configuration::Configuration, params: CreateCallFeedbackSummaryParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("StartDate", start_date.to_string()); + local_var_form_params.insert("EndDate", end_date.to_string()); + if let Some(local_var_param_value) = include_subaccounts { + local_var_form_params.insert("IncludeSubaccounts", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a FeedbackSummary resource from a call +pub async fn delete_call_feedback_summary(configuration: &configuration::Configuration, params: DeleteCallFeedbackSummaryParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a FeedbackSummary resource from a call +pub async fn fetch_call_feedback_summary(configuration: &configuration::Configuration, params: FetchCallFeedbackSummaryParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_incoming_phone_number_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_incoming_phone_number_api.rs new file mode 100644 index 00000000..998fb7a7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_incoming_phone_number_api.rs @@ -0,0 +1,596 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_incoming_phone_number`] +#[derive(Clone, Debug)] +pub struct CreateIncomingPhoneNumberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + pub api_version: Option, + /// A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the new phone number. + pub friendly_name: Option, + /// The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. + pub sms_application_sid: Option, + /// The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_fallback_method: Option, + /// The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_method: Option, + /// The URL we should call when the new phone number receives an incoming SMS message. + pub sms_url: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub status_callback_method: Option, + /// The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + pub voice_application_sid: Option, + /// Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. + pub voice_caller_id_lookup: Option, + /// The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_method: Option, + /// The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. + pub voice_url: Option, + pub emergency_status: Option, + /// The SID of the emergency address configuration to use for emergency calling from the new phone number. + pub emergency_address_sid: Option, + /// The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + pub trunk_sid: Option, + /// The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. + pub identity_sid: Option, + /// The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + pub address_sid: Option, + pub voice_receive_mode: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + pub bundle_sid: Option, + /// The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. + pub phone_number: Option, + /// The desired area code for your new incoming phone number. Can be any three-digit, US or Canada area code. We will provision an available phone number within this area code for you. **You must provide an `area_code` or a `phone_number`.** (US and Canada only). + pub area_code: Option +} + +/// struct for passing parameters to the method [`delete_incoming_phone_number`] +#[derive(Clone, Debug)] +pub struct DeleteIncomingPhoneNumberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_incoming_phone_number`] +#[derive(Clone, Debug)] +pub struct FetchIncomingPhoneNumberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_incoming_phone_number`] +#[derive(Clone, Debug)] +pub struct ListIncomingPhoneNumberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. + pub account_sid: String, + /// Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// A string that identifies the IncomingPhoneNumber resources to read. + pub friendly_name: Option, + /// The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + pub phone_number: Option, + /// Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + pub origin: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_incoming_phone_number`] +#[derive(Clone, Debug)] +pub struct UpdateIncomingPhoneNumberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers). + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. + pub sid: String, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to update. For more information, see [Exchanging Numbers Between Subaccounts](https://www.twilio.com/docs/iam/api/subaccounts#exchanging-numbers). + pub account_sid2: Option, + /// The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. + pub api_version: Option, + /// A descriptive string that you created to describe this phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. + pub friendly_name: Option, + /// The SID of the application that should handle SMS messages sent to the number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. + pub sms_application_sid: Option, + /// The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_fallback_method: Option, + /// The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_method: Option, + /// The URL we should call when the phone number receives an incoming SMS message. + pub sms_url: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub status_callback_method: Option, + /// The SID of the application we should use to handle phone calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + pub voice_application_sid: Option, + /// Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. + pub voice_caller_id_lookup: Option, + /// The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_method: Option, + /// The URL that we should call to answer a call to the phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. + pub voice_url: Option, + pub emergency_status: Option, + /// The SID of the emergency address configuration to use for emergency calling from this phone number. + pub emergency_address_sid: Option, + /// The SID of the Trunk we should use to handle phone calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + pub trunk_sid: Option, + pub voice_receive_mode: Option, + /// The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. + pub identity_sid: Option, + /// The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. + pub address_sid: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + pub bundle_sid: Option +} + + +/// struct for typed errors of method [`create_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_incoming_phone_number`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateIncomingPhoneNumberError { + UnknownValue(serde_json::Value), +} + + +/// Purchase a phone-number for the account. +pub async fn create_incoming_phone_number(configuration: &configuration::Configuration, params: CreateIncomingPhoneNumberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let api_version = params.api_version; + let friendly_name = params.friendly_name; + let sms_application_sid = params.sms_application_sid; + let sms_fallback_method = params.sms_fallback_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_method = params.sms_method; + let sms_url = params.sms_url; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_application_sid = params.voice_application_sid; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let voice_fallback_method = params.voice_fallback_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_method = params.voice_method; + let voice_url = params.voice_url; + let emergency_status = params.emergency_status; + let emergency_address_sid = params.emergency_address_sid; + let trunk_sid = params.trunk_sid; + let identity_sid = params.identity_sid; + let address_sid = params.address_sid; + let voice_receive_mode = params.voice_receive_mode; + let bundle_sid = params.bundle_sid; + let phone_number = params.phone_number; + let area_code = params.area_code; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = phone_number { + local_var_form_params.insert("PhoneNumber", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = area_code { + local_var_form_params.insert("AreaCode", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a phone-numbers belonging to the account used to make the request. +pub async fn delete_incoming_phone_number(configuration: &configuration::Configuration, params: DeleteIncomingPhoneNumberParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an incoming-phone-number belonging to the account used to make the request. +pub async fn fetch_incoming_phone_number(configuration: &configuration::Configuration, params: FetchIncomingPhoneNumberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. +pub async fn list_incoming_phone_number(configuration: &configuration::Configuration, params: ListIncomingPhoneNumberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let beta = params.beta; + let friendly_name = params.friendly_name; + let phone_number = params.phone_number; + let origin = params.origin; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update an incoming-phone-number instance. +pub async fn update_incoming_phone_number(configuration: &configuration::Configuration, params: UpdateIncomingPhoneNumberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let account_sid2 = params.account_sid2; + let api_version = params.api_version; + let friendly_name = params.friendly_name; + let sms_application_sid = params.sms_application_sid; + let sms_fallback_method = params.sms_fallback_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_method = params.sms_method; + let sms_url = params.sms_url; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_application_sid = params.voice_application_sid; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let voice_fallback_method = params.voice_fallback_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_method = params.voice_method; + let voice_url = params.voice_url; + let emergency_status = params.emergency_status; + let emergency_address_sid = params.emergency_address_sid; + let trunk_sid = params.trunk_sid; + let voice_receive_mode = params.voice_receive_mode; + let identity_sid = params.identity_sid; + let address_sid = params.address_sid; + let bundle_sid = params.bundle_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = account_sid2 { + local_var_form_params.insert("AccountSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_access_control_list_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_access_control_list_api.rs new file mode 100644 index 00000000..06d8d120 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_access_control_list_api.rs @@ -0,0 +1,302 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_ip_access_control_list`] +#[derive(Clone, Debug)] +pub struct CreateSipIpAccessControlListParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A human readable descriptive text that describes the IpAccessControlList, up to 255 characters long. + pub friendly_name: String +} + +/// struct for passing parameters to the method [`delete_sip_ip_access_control_list`] +#[derive(Clone, Debug)] +pub struct DeleteSipIpAccessControlListParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_ip_access_control_list`] +#[derive(Clone, Debug)] +pub struct FetchSipIpAccessControlListParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_ip_access_control_list`] +#[derive(Clone, Debug)] +pub struct ListSipIpAccessControlListParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_sip_ip_access_control_list`] +#[derive(Clone, Debug)] +pub struct UpdateSipIpAccessControlListParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the resource to udpate. + pub sid: String, + /// A human readable descriptive text, up to 255 characters long. + pub friendly_name: String +} + + +/// struct for typed errors of method [`create_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_ip_access_control_list`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipIpAccessControlListError { + UnknownValue(serde_json::Value), +} + + +/// Create a new IpAccessControlList resource +pub async fn create_sip_ip_access_control_list(configuration: &configuration::Configuration, params: CreateSipIpAccessControlListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IpAccessControlList from the requested account +pub async fn delete_sip_ip_access_control_list(configuration: &configuration::Configuration, params: DeleteSipIpAccessControlListParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific instance of an IpAccessControlList +pub async fn fetch_sip_ip_access_control_list(configuration: &configuration::Configuration, params: FetchSipIpAccessControlListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of IpAccessControlLists that belong to the account used to make the request +pub async fn list_sip_ip_access_control_list(configuration: &configuration::Configuration, params: ListSipIpAccessControlListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Rename an IpAccessControlList +pub async fn update_sip_ip_access_control_list(configuration: &configuration::Configuration, params: UpdateSipIpAccessControlListParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_access_control_list_mapping_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_access_control_list_mapping_api.rs new file mode 100644 index 00000000..e6913fac --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_access_control_list_mapping_api.rs @@ -0,0 +1,256 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct CreateSipIpAccessControlListMappingParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP domain. + pub domain_sid: String, + /// The unique id of the IP access control list to map to the SIP domain. + pub ip_access_control_list_sid: String +} + +/// struct for passing parameters to the method [`delete_sip_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct DeleteSipIpAccessControlListMappingParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP domain. + pub domain_sid: String, + /// A 34 character string that uniquely identifies the resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct FetchSipIpAccessControlListMappingParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP domain. + pub domain_sid: String, + /// A 34 character string that uniquely identifies the resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_ip_access_control_list_mapping`] +#[derive(Clone, Debug)] +pub struct ListSipIpAccessControlListMappingParams { + /// The unique id of the Account that is responsible for this resource. + pub account_sid: String, + /// A 34 character string that uniquely identifies the SIP domain. + pub domain_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_ip_access_control_list_mapping`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipIpAccessControlListMappingError { + UnknownValue(serde_json::Value), +} + + +/// Create a new IpAccessControlListMapping resource. +pub async fn create_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: CreateSipIpAccessControlListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IpAccessControlListSid", ip_access_control_list_sid.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IpAccessControlListMapping resource. +pub async fn delete_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: DeleteSipIpAccessControlListMappingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an IpAccessControlListMapping resource. +pub async fn fetch_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: FetchSipIpAccessControlListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of IpAccessControlListMapping resources. +pub async fn list_sip_ip_access_control_list_mapping(configuration: &configuration::Configuration, params: ListSipIpAccessControlListMappingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let domain_sid = params.domain_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), DomainSid=crate::apis::urlencode(domain_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_address_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_address_api.rs new file mode 100644 index 00000000..cafb6825 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_ip_address_api.rs @@ -0,0 +1,341 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_sip_ip_address`] +#[derive(Clone, Debug)] +pub struct CreateSipIpAddressParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The IpAccessControlList Sid with which to associate the created IpAddress resource. + pub ip_access_control_list_sid: String, + /// A human readable descriptive text for this resource, up to 255 characters long. + pub friendly_name: String, + /// An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. + pub ip_address: String, + /// An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. + pub cidr_prefix_length: Option +} + +/// struct for passing parameters to the method [`delete_sip_ip_address`] +#[derive(Clone, Debug)] +pub struct DeleteSipIpAddressParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The IpAccessControlList Sid that identifies the IpAddress resources to delete. + pub ip_access_control_list_sid: String, + /// A 34 character string that uniquely identifies the resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_sip_ip_address`] +#[derive(Clone, Debug)] +pub struct FetchSipIpAddressParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The IpAccessControlList Sid that identifies the IpAddress resources to fetch. + pub ip_access_control_list_sid: String, + /// A 34 character string that uniquely identifies the IpAddress resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_sip_ip_address`] +#[derive(Clone, Debug)] +pub struct ListSipIpAddressParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The IpAccessControlList Sid that identifies the IpAddress resources to read. + pub ip_access_control_list_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_sip_ip_address`] +#[derive(Clone, Debug)] +pub struct UpdateSipIpAddressParams { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + pub account_sid: String, + /// The IpAccessControlList Sid that identifies the IpAddress resources to update. + pub ip_access_control_list_sid: String, + /// A 34 character string that identifies the IpAddress resource to update. + pub sid: String, + /// An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. + pub ip_address: Option, + /// A human readable descriptive text for this resource, up to 255 characters long. + pub friendly_name: Option, + /// An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. + pub cidr_prefix_length: Option +} + + +/// struct for typed errors of method [`create_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSipIpAddressError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_sip_ip_address`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSipIpAddressError { + UnknownValue(serde_json::Value), +} + + +/// Create a new IpAddress resource. +pub async fn create_sip_ip_address(configuration: &configuration::Configuration, params: CreateSipIpAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + let friendly_name = params.friendly_name; + let ip_address = params.ip_address; + let cidr_prefix_length = params.cidr_prefix_length; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + local_var_form_params.insert("IpAddress", ip_address.to_string()); + if let Some(local_var_param_value) = cidr_prefix_length { + local_var_form_params.insert("CidrPrefixLength", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete an IpAddress resource. +pub async fn delete_sip_ip_address(configuration: &configuration::Configuration, params: DeleteSipIpAddressParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read one IpAddress resource. +pub async fn fetch_sip_ip_address(configuration: &configuration::Configuration, params: FetchSipIpAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read multiple IpAddress resources. +pub async fn list_sip_ip_address(configuration: &configuration::Configuration, params: ListSipIpAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update an IpAddress resource. +pub async fn update_sip_ip_address(configuration: &configuration::Configuration, params: UpdateSipIpAddressParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let ip_access_control_list_sid = params.ip_access_control_list_sid; + let sid = params.sid; + let ip_address = params.ip_address; + let friendly_name = params.friendly_name; + let cidr_prefix_length = params.cidr_prefix_length; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), IpAccessControlListSid=crate::apis::urlencode(ip_access_control_list_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = ip_address { + local_var_form_params.insert("IpAddress", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = cidr_prefix_length { + local_var_form_params.insert("CidrPrefixLength", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_key_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_key_api.rs new file mode 100644 index 00000000..6938b96c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_key_api.rs @@ -0,0 +1,249 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_key`] +#[derive(Clone, Debug)] +pub struct DeleteKeyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Key resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_key`] +#[derive(Clone, Debug)] +pub struct FetchKeyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Key resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_key`] +#[derive(Clone, Debug)] +pub struct ListKeyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_key`] +#[derive(Clone, Debug)] +pub struct UpdateKeyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Key resource to update. + pub sid: String, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option +} + + +/// struct for typed errors of method [`delete_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateKeyError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn delete_key(configuration: &configuration::Configuration, params: DeleteKeyParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_key(configuration: &configuration::Configuration, params: FetchKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_key(configuration: &configuration::Configuration, params: ListKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_key(configuration: &configuration::Configuration, params: UpdateKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_last_month_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_last_month_api.rs new file mode 100644 index 00000000..201cd466 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_last_month_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_last_month`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordLastMonthParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_last_month`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordLastMonthError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_last_month(configuration: &configuration::Configuration, params: ListUsageRecordLastMonthParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_local_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_local_api.rs new file mode 100644 index 00000000..86c711e9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_local_api.rs @@ -0,0 +1,472 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_incoming_phone_number_local`] +#[derive(Clone, Debug)] +pub struct CreateIncomingPhoneNumberLocalParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. + pub phone_number: String, + /// The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + pub api_version: Option, + /// A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. + pub friendly_name: Option, + /// The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those set on the application. + pub sms_application_sid: Option, + /// The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_fallback_method: Option, + /// The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_method: Option, + /// The URL we should call when the new phone number receives an incoming SMS message. + pub sms_url: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub status_callback_method: Option, + /// The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + pub voice_application_sid: Option, + /// Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. + pub voice_caller_id_lookup: Option, + /// The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_method: Option, + /// The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. + pub voice_url: Option, + /// The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. + pub identity_sid: Option, + /// The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + pub address_sid: Option, + pub emergency_status: Option, + /// The SID of the emergency address configuration to use for emergency calling from the new phone number. + pub emergency_address_sid: Option, + /// The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + pub trunk_sid: Option, + pub voice_receive_mode: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + pub bundle_sid: Option +} + +/// struct for passing parameters to the method [`list_available_phone_number_local`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberLocalParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_incoming_phone_number_local`] +#[derive(Clone, Debug)] +pub struct ListIncomingPhoneNumberLocalParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + pub account_sid: String, + /// Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// A string that identifies the resources to read. + pub friendly_name: Option, + /// The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + pub phone_number: Option, + /// Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + pub origin: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_incoming_phone_number_local`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberLocalError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_local`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberLocalError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_local`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberLocalError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_incoming_phone_number_local(configuration: &configuration::Configuration, params: CreateIncomingPhoneNumberLocalParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let phone_number = params.phone_number; + let api_version = params.api_version; + let friendly_name = params.friendly_name; + let sms_application_sid = params.sms_application_sid; + let sms_fallback_method = params.sms_fallback_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_method = params.sms_method; + let sms_url = params.sms_url; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_application_sid = params.voice_application_sid; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let voice_fallback_method = params.voice_fallback_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_method = params.voice_method; + let voice_url = params.voice_url; + let identity_sid = params.identity_sid; + let address_sid = params.address_sid; + let emergency_status = params.emergency_status; + let emergency_address_sid = params.emergency_address_sid; + let trunk_sid = params.trunk_sid; + let voice_receive_mode = params.voice_receive_mode; + let bundle_sid = params.bundle_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_local(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberLocalParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_incoming_phone_number_local(configuration: &configuration::Configuration, params: ListIncomingPhoneNumberLocalParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let beta = params.beta; + let friendly_name = params.friendly_name; + let phone_number = params.phone_number; + let origin = params.origin; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_machine_to_machine_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_machine_to_machine_api.rs new file mode 100644 index 00000000..ecce5591 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_machine_to_machine_api.rs @@ -0,0 +1,196 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_available_phone_number_machine_to_machine`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberMachineToMachineParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_available_phone_number_machine_to_machine`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberMachineToMachineError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_available_phone_number_machine_to_machine(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberMachineToMachineParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_media_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_media_api.rs new file mode 100644 index 00000000..86cebe5b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_media_api.rs @@ -0,0 +1,216 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_media`] +#[derive(Clone, Debug)] +pub struct DeleteMediaParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resource. + pub account_sid: String, + /// The SID of the Message resource that is associated with the Media resource. + pub message_sid: String, + /// The unique identifier of the to-be-deleted Media resource. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_media`] +#[derive(Clone, Debug)] +pub struct FetchMediaParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Media resource. + pub account_sid: String, + /// The SID of the Message resource that is associated with the Media resource. + pub message_sid: String, + /// The Twilio-provided string that uniquely identifies the Media resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_media`] +#[derive(Clone, Debug)] +pub struct ListMediaParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resources. + pub account_sid: String, + /// The SID of the Message resource that is associated with the Media resources. + pub message_sid: String, + /// Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. + pub date_created: Option, + /// Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. + pub date_created_less_than: Option, + /// Only include Media resources that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read Media that were created on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read Media that were created on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read Media that were created on or after midnight of this date. + pub date_created_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`delete_media`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMediaError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_media`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchMediaError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_media`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMediaError { + UnknownValue(serde_json::Value), +} + + +/// Delete the Media resource. +pub async fn delete_media(configuration: &configuration::Configuration, params: DeleteMediaParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let message_sid = params.message_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a single Media resource associated with a specific Message resource +pub async fn fetch_media(configuration: &configuration::Configuration, params: FetchMediaParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let message_sid = params.message_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Read a list of Media resources associated with a specific Message resource +pub async fn list_media(configuration: &configuration::Configuration, params: ListMediaParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let message_sid = params.message_sid; + let date_created = params.date_created; + let date_created_less_than = params.date_created_less_than; + let date_created_greater_than = params.date_created_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), MessageSid=crate::apis::urlencode(message_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_member_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_member_api.rs new file mode 100644 index 00000000..c1a8a9a8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_member_api.rs @@ -0,0 +1,210 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_member`] +#[derive(Clone, Debug)] +pub struct FetchMemberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. + pub account_sid: String, + /// The SID of the Queue in which to find the members to fetch. + pub queue_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. + pub call_sid: String +} + +/// struct for passing parameters to the method [`list_member`] +#[derive(Clone, Debug)] +pub struct ListMemberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. + pub account_sid: String, + /// The SID of the Queue in which to find the members + pub queue_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_member`] +#[derive(Clone, Debug)] +pub struct UpdateMemberParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. + pub account_sid: String, + /// The SID of the Queue in which to find the members to update. + pub queue_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. + pub call_sid: String, + /// The absolute URL of the Queue resource. + pub url: String, + /// How to pass the update request data. Can be `GET` or `POST` and the default is `POST`. `POST` sends the data as encoded form data and `GET` sends the data as query parameters. + pub method: Option +} + + +/// struct for typed errors of method [`fetch_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchMemberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMemberError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_member`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMemberError { + UnknownValue(serde_json::Value), +} + + +/// Fetch a specific member from the queue +pub async fn fetch_member(configuration: &configuration::Configuration, params: FetchMemberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let queue_sid = params.queue_sid; + let call_sid = params.call_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), QueueSid=crate::apis::urlencode(queue_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve the members of the queue +pub async fn list_member(configuration: &configuration::Configuration, params: ListMemberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let queue_sid = params.queue_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), QueueSid=crate::apis::urlencode(queue_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL +pub async fn update_member(configuration: &configuration::Configuration, params: UpdateMemberParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let queue_sid = params.queue_sid; + let call_sid = params.call_sid; + let url = params.url; + let method = params.method; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), QueueSid=crate::apis::urlencode(queue_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Url", url.to_string()); + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_message_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_message_api.rs new file mode 100644 index 00000000..5558053c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_message_api.rs @@ -0,0 +1,467 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_message`] +#[derive(Clone, Debug)] +pub struct CreateMessageParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) creating the Message resource. + pub account_sid: String, + /// The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`. + pub to: String, + /// The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource). + pub status_callback: Option, + /// The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. + pub application_sid: Option, + /// The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`. + pub max_price: Option, + /// Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`. + pub provide_feedback: Option, + /// Total number of attempts made (including this request) to send the message regardless of the provider used + pub attempt: Option, + /// The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html) + pub validity_period: Option, + /// Reserved + pub force_delivery: Option, + pub content_retention: Option, + pub address_retention: Option, + /// Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. + pub smart_encoded: Option, + /// Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). + pub persistent_action: Option>, + /// For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. + pub shorten_urls: Option, + pub schedule_type: Option, + /// The time that Twilio will send the message. Must be in ISO 8601 format. + pub send_at: Option, + /// If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. + pub send_as_mms: Option, + /// For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. + pub content_variables: Option, + pub risk_check: Option, + /// The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool. + pub from: Option, + /// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. + pub messaging_service_sid: Option, + /// The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). + pub body: Option, + /// The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. + pub media_url: Option>, + /// For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio's response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). + pub content_sid: Option +} + +/// struct for passing parameters to the method [`delete_message`] +#[derive(Clone, Debug)] +pub struct DeleteMessageParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource + pub account_sid: String, + /// The SID of the Message resource you wish to delete + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_message`] +#[derive(Clone, Debug)] +pub struct FetchMessageParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource + pub account_sid: String, + /// The SID of the Message resource to be fetched + pub sid: String +} + +/// struct for passing parameters to the method [`list_message`] +#[derive(Clone, Debug)] +pub struct ListMessageParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resources. + pub account_sid: String, + /// Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111` + pub to: Option, + /// Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999` + pub from: Option, + /// Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). + pub date_sent: Option, + /// Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). + pub date_sent_less_than: Option, + /// Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date). + pub date_sent_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_message`] +#[derive(Clone, Debug)] +pub struct UpdateMessageParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. + pub account_sid: String, + /// The SID of the Message resource to be updated + pub sid: String, + /// The new `body` of the Message resource. To redact the text content of a Message, this parameter's value must be an empty string + pub body: Option, + pub status: Option +} + + +/// struct for typed errors of method [`create_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListMessageError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateMessageError { + UnknownValue(serde_json::Value), +} + + +/// Send a message +pub async fn create_message(configuration: &configuration::Configuration, params: CreateMessageParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let to = params.to; + let status_callback = params.status_callback; + let application_sid = params.application_sid; + let max_price = params.max_price; + let provide_feedback = params.provide_feedback; + let attempt = params.attempt; + let validity_period = params.validity_period; + let force_delivery = params.force_delivery; + let content_retention = params.content_retention; + let address_retention = params.address_retention; + let smart_encoded = params.smart_encoded; + let persistent_action = params.persistent_action; + let shorten_urls = params.shorten_urls; + let schedule_type = params.schedule_type; + let send_at = params.send_at; + let send_as_mms = params.send_as_mms; + let content_variables = params.content_variables; + let risk_check = params.risk_check; + let from = params.from; + let messaging_service_sid = params.messaging_service_sid; + let body = params.body; + let media_url = params.media_url; + let content_sid = params.content_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("To", to.to_string()); + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = application_sid { + local_var_form_params.insert("ApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = max_price { + local_var_form_params.insert("MaxPrice", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = provide_feedback { + local_var_form_params.insert("ProvideFeedback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = attempt { + local_var_form_params.insert("Attempt", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = validity_period { + local_var_form_params.insert("ValidityPeriod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = force_delivery { + local_var_form_params.insert("ForceDelivery", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = content_retention { + local_var_form_params.insert("ContentRetention", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_retention { + local_var_form_params.insert("AddressRetention", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = smart_encoded { + local_var_form_params.insert("SmartEncoded", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = persistent_action { + local_var_form_params.insert("PersistentAction", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = shorten_urls { + local_var_form_params.insert("ShortenUrls", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = schedule_type { + local_var_form_params.insert("ScheduleType", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = send_at { + local_var_form_params.insert("SendAt", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = send_as_mms { + local_var_form_params.insert("SendAsMms", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = content_variables { + local_var_form_params.insert("ContentVariables", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = risk_check { + local_var_form_params.insert("RiskCheck", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = from { + local_var_form_params.insert("From", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = messaging_service_sid { + local_var_form_params.insert("MessagingServiceSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = body { + local_var_form_params.insert("Body", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = media_url { + local_var_form_params.insert("MediaUrl", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = content_sid { + local_var_form_params.insert("ContentSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Deletes a Message resource from your account +pub async fn delete_message(configuration: &configuration::Configuration, params: DeleteMessageParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a specific Message +pub async fn fetch_message(configuration: &configuration::Configuration, params: FetchMessageParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of Message resources associated with a Twilio Account +pub async fn list_message(configuration: &configuration::Configuration, params: ListMessageParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let to = params.to; + let from = params.from; + let date_sent = params.date_sent; + let date_sent_less_than = params.date_sent_less_than; + let date_sent_greater_than = params.date_sent_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = to { + local_var_req_builder = local_var_req_builder.query(&[("To", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = from { + local_var_req_builder = local_var_req_builder.query(&[("From", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_sent { + local_var_req_builder = local_var_req_builder.query(&[("DateSent", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_sent_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateSent<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_sent_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateSent>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a Message resource (used to redact Message `body` text and to cancel not-yet-sent messages) +pub async fn update_message(configuration: &configuration::Configuration, params: UpdateMessageParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let body = params.body; + let status = params.status; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = body { + local_var_form_params.insert("Body", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_mobile_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_mobile_api.rs new file mode 100644 index 00000000..9ef12772 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_mobile_api.rs @@ -0,0 +1,472 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_incoming_phone_number_mobile`] +#[derive(Clone, Debug)] +pub struct CreateIncomingPhoneNumberMobileParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. + pub phone_number: String, + /// The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + pub api_version: Option, + /// A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, the is a formatted version of the phone number. + pub friendly_name: Option, + /// The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all of the `sms_*_url` urls and use those of the application. + pub sms_application_sid: Option, + /// The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_fallback_method: Option, + /// The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_method: Option, + /// The URL we should call when the new phone number receives an incoming SMS message. + pub sms_url: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub status_callback_method: Option, + /// The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use only those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + pub voice_application_sid: Option, + /// Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. + pub voice_caller_id_lookup: Option, + /// The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_method: Option, + /// The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. + pub voice_url: Option, + /// The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. + pub identity_sid: Option, + /// The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + pub address_sid: Option, + pub emergency_status: Option, + /// The SID of the emergency address configuration to use for emergency calling from the new phone number. + pub emergency_address_sid: Option, + /// The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + pub trunk_sid: Option, + pub voice_receive_mode: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + pub bundle_sid: Option +} + +/// struct for passing parameters to the method [`list_available_phone_number_mobile`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberMobileParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_incoming_phone_number_mobile`] +#[derive(Clone, Debug)] +pub struct ListIncomingPhoneNumberMobileParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + pub account_sid: String, + /// Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// A string that identifies the resources to read. + pub friendly_name: Option, + /// The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + pub phone_number: Option, + /// Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + pub origin: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_incoming_phone_number_mobile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberMobileError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_mobile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberMobileError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_mobile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberMobileError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_incoming_phone_number_mobile(configuration: &configuration::Configuration, params: CreateIncomingPhoneNumberMobileParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let phone_number = params.phone_number; + let api_version = params.api_version; + let friendly_name = params.friendly_name; + let sms_application_sid = params.sms_application_sid; + let sms_fallback_method = params.sms_fallback_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_method = params.sms_method; + let sms_url = params.sms_url; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_application_sid = params.voice_application_sid; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let voice_fallback_method = params.voice_fallback_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_method = params.voice_method; + let voice_url = params.voice_url; + let identity_sid = params.identity_sid; + let address_sid = params.address_sid; + let emergency_status = params.emergency_status; + let emergency_address_sid = params.emergency_address_sid; + let trunk_sid = params.trunk_sid; + let voice_receive_mode = params.voice_receive_mode; + let bundle_sid = params.bundle_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_mobile(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberMobileParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_incoming_phone_number_mobile(configuration: &configuration::Configuration, params: ListIncomingPhoneNumberMobileParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let beta = params.beta; + let friendly_name = params.friendly_name; + let phone_number = params.phone_number; + let origin = params.origin; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_monthly_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_monthly_api.rs new file mode 100644 index 00000000..9d2999b9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_monthly_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_monthly`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordMonthlyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_monthly`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordMonthlyError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_monthly(configuration: &configuration::Configuration, params: ListUsageRecordMonthlyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_national_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_national_api.rs new file mode 100644 index 00000000..4d405527 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_national_api.rs @@ -0,0 +1,196 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_available_phone_number_national`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberNationalParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_available_phone_number_national`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberNationalError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_available_phone_number_national(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberNationalParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_new_key_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_new_key_api.rs new file mode 100644 index 00000000..f4efd491 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_new_key_api.rs @@ -0,0 +1,75 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_new_key`] +#[derive(Clone, Debug)] +pub struct CreateNewKeyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. + pub account_sid: String, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option +} + + +/// struct for typed errors of method [`create_new_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateNewKeyError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_new_key(configuration: &configuration::Configuration, params: CreateNewKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Keys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_new_signing_key_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_new_signing_key_api.rs new file mode 100644 index 00000000..7a8a4a4b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_new_signing_key_api.rs @@ -0,0 +1,75 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_new_signing_key`] +#[derive(Clone, Debug)] +pub struct CreateNewSigningKeyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. + pub account_sid: String, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option +} + + +/// struct for typed errors of method [`create_new_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateNewSigningKeyError { + UnknownValue(serde_json::Value), +} + + +/// Create a new Signing Key for the account making the request. +pub async fn create_new_signing_key(configuration: &configuration::Configuration, params: CreateNewSigningKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_notification_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_notification_api.rs new file mode 100644 index 00000000..382048c4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_notification_api.rs @@ -0,0 +1,310 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_call_notification`] +#[derive(Clone, Debug)] +pub struct FetchCallNotificationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. + pub account_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. + pub call_sid: String, + /// The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_notification`] +#[derive(Clone, Debug)] +pub struct FetchNotificationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Notification resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_call_notification`] +#[derive(Clone, Debug)] +pub struct ListCallNotificationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. + pub account_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. + pub call_sid: String, + /// Only read notifications of the specified log level. Can be: `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read. + pub log: Option, + /// Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. + pub message_date: Option, + /// Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. + pub message_date_less_than: Option, + /// Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. + pub message_date_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_notification`] +#[derive(Clone, Debug)] +pub struct ListNotificationParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. + pub account_sid: String, + /// Only read notifications of the specified log level. Can be: `0` to read only ERROR notifications or `1` to read only WARNING notifications. By default, all notifications are read. + pub log: Option, + /// Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. + pub message_date: Option, + /// Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. + pub message_date_less_than: Option, + /// Only show notifications for the specified date, formatted as `YYYY-MM-DD`. You can also specify an inequality, such as `<=YYYY-MM-DD` for messages logged at or before midnight on a date, or `>=YYYY-MM-DD` for messages logged at or after midnight on a date. + pub message_date_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`fetch_call_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallNotificationError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_notification`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListNotificationError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn fetch_call_notification(configuration: &configuration::Configuration, params: FetchCallNotificationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch a notification belonging to the account used to make the request +pub async fn fetch_notification(configuration: &configuration::Configuration, params: FetchNotificationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_call_notification(configuration: &configuration::Configuration, params: ListCallNotificationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let log = params.log; + let message_date = params.message_date; + let message_date_less_than = params.message_date_less_than; + let message_date_greater_than = params.message_date_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = log { + local_var_req_builder = local_var_req_builder.query(&[("Log", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_less_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of notifications belonging to the account used to make the request +pub async fn list_notification(configuration: &configuration::Configuration, params: ListNotificationParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let log = params.log; + let message_date = params.message_date; + let message_date_less_than = params.message_date_less_than; + let message_date_greater_than = params.message_date_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Notifications.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = log { + local_var_req_builder = local_var_req_builder.query(&[("Log", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_less_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = message_date_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("MessageDate>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_outgoing_caller_id_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_outgoing_caller_id_api.rs new file mode 100644 index 00000000..0bd4a858 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_outgoing_caller_id_api.rs @@ -0,0 +1,261 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_outgoing_caller_id`] +#[derive(Clone, Debug)] +pub struct DeleteOutgoingCallerIdParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_outgoing_caller_id`] +#[derive(Clone, Debug)] +pub struct FetchOutgoingCallerIdParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_outgoing_caller_id`] +#[derive(Clone, Debug)] +pub struct ListOutgoingCallerIdParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. + pub account_sid: String, + /// The phone number of the OutgoingCallerId resources to read. + pub phone_number: Option, + /// The string that identifies the OutgoingCallerId resources to read. + pub friendly_name: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_outgoing_caller_id`] +#[derive(Clone, Debug)] +pub struct UpdateOutgoingCallerIdParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. + pub sid: String, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option +} + + +/// struct for typed errors of method [`delete_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_outgoing_caller_id`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateOutgoingCallerIdError { + UnknownValue(serde_json::Value), +} + + +/// Delete the caller-id specified from the account +pub async fn delete_outgoing_caller_id(configuration: &configuration::Configuration, params: DeleteOutgoingCallerIdParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an outgoing-caller-id belonging to the account used to make the request +pub async fn fetch_outgoing_caller_id(configuration: &configuration::Configuration, params: FetchOutgoingCallerIdParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of outgoing-caller-ids belonging to the account used to make the request +pub async fn list_outgoing_caller_id(configuration: &configuration::Configuration, params: ListOutgoingCallerIdParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let phone_number = params.phone_number; + let friendly_name = params.friendly_name; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Updates the caller-id +pub async fn update_outgoing_caller_id(configuration: &configuration::Configuration, params: UpdateOutgoingCallerIdParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_participant_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_participant_api.rs new file mode 100644 index 00000000..63b3948c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_participant_api.rs @@ -0,0 +1,677 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_participant`] +#[derive(Clone, Debug)] +pub struct CreateParticipantParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the participant's conference. + pub conference_sid: String, + /// The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint. + pub from: String, + /// The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified. + pub to: String, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. + pub status_callback_method: Option, + /// The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`. + pub status_callback_event: Option>, + /// A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. + pub label: Option, + /// The number of seconds that we should allow the phone to ring before assuming there is no answer. Can be an integer between `5` and `600`, inclusive. The default value is `60`. We always add a 5-second timeout buffer to outgoing calls, so value of 10 would result in an actual timeout that was closer to 15 seconds. + pub timeout: Option, + /// Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. + pub record: Option, + /// Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. + pub muted: Option, + /// Whether to play a notification beep to the conference when the participant joins. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. + pub beep: Option, + /// Whether to start the conference when the participant joins, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. + pub start_conference_on_enter: Option, + /// Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. + pub end_conference_on_exit: Option, + /// The URL we should call using the `wait_method` for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic). + pub wait_url: Option, + /// The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file. + pub wait_method: Option, + /// Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. Can be: `true` or `false` and defaults to `true`. + pub early_media: Option, + /// The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + pub max_participants: Option, + /// Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. + pub conference_record: Option, + /// Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + pub conference_trim: Option, + /// The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. + pub conference_status_callback: Option, + /// The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub conference_status_callback_method: Option, + /// The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `modify`, `speaker`, and `announcement`. Separate multiple values with a space. Defaults to `start end`. + pub conference_status_callback_event: Option>, + /// The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + pub recording_channels: Option, + /// The URL that we should call using the `recording_status_callback_method` when the recording status changes. + pub recording_status_callback: Option, + /// The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub recording_status_callback_method: Option, + /// The SIP username used for authentication. + pub sip_auth_username: Option, + /// The SIP password for authentication. + pub sip_auth_password: Option, + /// The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`. + pub region: Option, + /// The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + pub conference_recording_status_callback: Option, + /// The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub conference_recording_status_callback_method: Option, + /// The recording state changes that should generate a call to `recording_status_callback`. Can be: `started`, `in-progress`, `paused`, `resumed`, `stopped`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'`. + pub recording_status_callback_event: Option>, + /// The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, `failed`, and `absent`. Separate multiple values with a space, ex: `'in-progress completed failed'` + pub conference_recording_status_callback_event: Option>, + /// Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. + pub coaching: Option, + /// The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. + pub call_sid_to_coach: Option, + /// Jitter buffer size for the connecting participant. Twilio will use this setting to apply Jitter Buffer before participant's audio is mixed into the conference. Can be: `off`, `small`, `medium`, and `large`. Default to `large`. + pub jitter_buffer_size: Option, + /// The SID of a BYOC (Bring Your Own Carrier) trunk to route this call with. Note that `byoc` is only meaningful when `to` is a phone number; it will otherwise be ignored. (Beta) + pub byoc: Option, + /// The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `callerId` must also be a phone number. If `to` is sip address, this value of `callerId` should be a username portion to be used to populate the From header that is passed to the SIP endpoint. + pub caller_id: Option, + /// The Reason for the outgoing call. Use it to specify the purpose of the call that is presented on the called party's phone. (Branded Calls Beta) + pub call_reason: Option, + /// The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is sent from Twilio. `both` records the audio that is received and sent by Twilio. + pub recording_track: Option, + /// The maximum duration of the call in seconds. Constraints depend on account and configuration. + pub time_limit: Option, + /// Whether to detect if a human, answering machine, or fax has picked up the call. Can be: `Enable` or `DetectMessageEnd`. Use `Enable` if you would like us to return `AnsweredBy` as soon as the called party is identified. Use `DetectMessageEnd`, if you would like to leave a message on an answering machine. For more information, see [Answering Machine Detection](https://www.twilio.com/docs/voice/answering-machine-detection). + pub machine_detection: Option, + /// The number of seconds that we should attempt to detect an answering machine before timing out and sending a voice request with `AnsweredBy` of `unknown`. The default timeout is 30 seconds. + pub machine_detection_timeout: Option, + /// The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400. + pub machine_detection_speech_threshold: Option, + /// The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. + pub machine_detection_speech_end_threshold: Option, + /// The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. + pub machine_detection_silence_timeout: Option, + /// The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax. + pub amd_status_callback: Option, + /// The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. + pub amd_status_callback_method: Option, + /// Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. + pub trim: Option +} + +/// struct for passing parameters to the method [`delete_participant`] +#[derive(Clone, Debug)] +pub struct DeleteParticipantParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. + pub account_sid: String, + /// The SID of the conference with the participants to delete. + pub conference_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to delete. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. + pub call_sid: String +} + +/// struct for passing parameters to the method [`fetch_participant`] +#[derive(Clone, Debug)] +pub struct FetchParticipantParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. + pub account_sid: String, + /// The SID of the conference with the participant to fetch. + pub conference_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to fetch. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. + pub call_sid: String +} + +/// struct for passing parameters to the method [`list_participant`] +#[derive(Clone, Debug)] +pub struct ListParticipantParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. + pub account_sid: String, + /// The SID of the conference with the participants to read. + pub conference_sid: String, + /// Whether to return only participants that are muted. Can be: `true` or `false`. + pub muted: Option, + /// Whether to return only participants that are on hold. Can be: `true` or `false`. + pub hold: Option, + /// Whether to return only participants who are coaching another call. Can be: `true` or `false`. + pub coaching: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_participant`] +#[derive(Clone, Debug)] +pub struct UpdateParticipantParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. + pub account_sid: String, + /// The SID of the conference with the participant to update. + pub conference_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the participant to update. Non URL safe characters in a label must be percent encoded, for example, a space character is represented as %20. + pub call_sid: String, + /// Whether the participant should be muted. Can be `true` or `false`. `true` will mute the participant, and `false` will un-mute them. Anything value other than `true` or `false` is interpreted as `false`. + pub muted: Option, + /// Whether the participant should be on hold. Can be: `true` or `false`. `true` puts the participant on hold, and `false` lets them rejoin the conference. + pub hold: Option, + /// The URL we call using the `hold_method` for music that plays when the participant is on hold. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. + pub hold_url: Option, + /// The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. + pub hold_method: Option, + /// The URL we call using the `announce_method` for an announcement to the participant. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. + pub announce_url: Option, + /// The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub announce_method: Option, + /// The URL we call using the `wait_method` for the music to play while participants are waiting for the conference to start. The URL may return an MP3 file, a WAV file, or a TwiML document that contains ``, ``, ``, or `` verbs. The default value is the URL of our standard hold music. [Learn more about hold music](https://www.twilio.com/labs/twimlets/holdmusic). + pub wait_url: Option, + /// The HTTP method we should use to call `wait_url`. Can be `GET` or `POST` and the default is `POST`. When using a static audio file, this should be `GET` so that we can cache the file. + pub wait_method: Option, + /// Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. + pub beep_on_exit: Option, + /// Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. + pub end_conference_on_exit: Option, + /// Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. + pub coaching: Option, + /// The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. + pub call_sid_to_coach: Option +} + + +/// struct for typed errors of method [`create_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListParticipantError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_participant`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateParticipantError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_participant(configuration: &configuration::Configuration, params: CreateParticipantParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let from = params.from; + let to = params.to; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let status_callback_event = params.status_callback_event; + let label = params.label; + let timeout = params.timeout; + let record = params.record; + let muted = params.muted; + let beep = params.beep; + let start_conference_on_enter = params.start_conference_on_enter; + let end_conference_on_exit = params.end_conference_on_exit; + let wait_url = params.wait_url; + let wait_method = params.wait_method; + let early_media = params.early_media; + let max_participants = params.max_participants; + let conference_record = params.conference_record; + let conference_trim = params.conference_trim; + let conference_status_callback = params.conference_status_callback; + let conference_status_callback_method = params.conference_status_callback_method; + let conference_status_callback_event = params.conference_status_callback_event; + let recording_channels = params.recording_channels; + let recording_status_callback = params.recording_status_callback; + let recording_status_callback_method = params.recording_status_callback_method; + let sip_auth_username = params.sip_auth_username; + let sip_auth_password = params.sip_auth_password; + let region = params.region; + let conference_recording_status_callback = params.conference_recording_status_callback; + let conference_recording_status_callback_method = params.conference_recording_status_callback_method; + let recording_status_callback_event = params.recording_status_callback_event; + let conference_recording_status_callback_event = params.conference_recording_status_callback_event; + let coaching = params.coaching; + let call_sid_to_coach = params.call_sid_to_coach; + let jitter_buffer_size = params.jitter_buffer_size; + let byoc = params.byoc; + let caller_id = params.caller_id; + let call_reason = params.call_reason; + let recording_track = params.recording_track; + let time_limit = params.time_limit; + let machine_detection = params.machine_detection; + let machine_detection_timeout = params.machine_detection_timeout; + let machine_detection_speech_threshold = params.machine_detection_speech_threshold; + let machine_detection_speech_end_threshold = params.machine_detection_speech_end_threshold; + let machine_detection_silence_timeout = params.machine_detection_silence_timeout; + let amd_status_callback = params.amd_status_callback; + let amd_status_callback_method = params.amd_status_callback_method; + let trim = params.trim; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("From", from.to_string()); + local_var_form_params.insert("To", to.to_string()); + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_event { + local_var_form_params.insert("StatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = label { + local_var_form_params.insert("Label", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = timeout { + local_var_form_params.insert("Timeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = record { + local_var_form_params.insert("Record", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = muted { + local_var_form_params.insert("Muted", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = beep { + local_var_form_params.insert("Beep", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = start_conference_on_enter { + local_var_form_params.insert("StartConferenceOnEnter", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = end_conference_on_exit { + local_var_form_params.insert("EndConferenceOnExit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_url { + local_var_form_params.insert("WaitUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_method { + local_var_form_params.insert("WaitMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = early_media { + local_var_form_params.insert("EarlyMedia", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = max_participants { + local_var_form_params.insert("MaxParticipants", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_record { + local_var_form_params.insert("ConferenceRecord", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_trim { + local_var_form_params.insert("ConferenceTrim", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_status_callback { + local_var_form_params.insert("ConferenceStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_status_callback_method { + local_var_form_params.insert("ConferenceStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_status_callback_event { + local_var_form_params.insert("ConferenceStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = recording_channels { + local_var_form_params.insert("RecordingChannels", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback { + local_var_form_params.insert("RecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_method { + local_var_form_params.insert("RecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_username { + local_var_form_params.insert("SipAuthUsername", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sip_auth_password { + local_var_form_params.insert("SipAuthPassword", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = region { + local_var_form_params.insert("Region", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_recording_status_callback { + local_var_form_params.insert("ConferenceRecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = conference_recording_status_callback_method { + local_var_form_params.insert("ConferenceRecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_event { + local_var_form_params.insert("RecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = conference_recording_status_callback_event { + local_var_form_params.insert("ConferenceRecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = coaching { + local_var_form_params.insert("Coaching", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_sid_to_coach { + local_var_form_params.insert("CallSidToCoach", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = jitter_buffer_size { + local_var_form_params.insert("JitterBufferSize", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = byoc { + local_var_form_params.insert("Byoc", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = caller_id { + local_var_form_params.insert("CallerId", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_reason { + local_var_form_params.insert("CallReason", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_track { + local_var_form_params.insert("RecordingTrack", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = time_limit { + local_var_form_params.insert("TimeLimit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection { + local_var_form_params.insert("MachineDetection", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_timeout { + local_var_form_params.insert("MachineDetectionTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_threshold { + local_var_form_params.insert("MachineDetectionSpeechThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_speech_end_threshold { + local_var_form_params.insert("MachineDetectionSpeechEndThreshold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = machine_detection_silence_timeout { + local_var_form_params.insert("MachineDetectionSilenceTimeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = amd_status_callback { + local_var_form_params.insert("AmdStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = amd_status_callback_method { + local_var_form_params.insert("AmdStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trim { + local_var_form_params.insert("Trim", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Kick a participant from a given conference +pub async fn delete_participant(configuration: &configuration::Configuration, params: DeleteParticipantParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let call_sid = params.call_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a participant +pub async fn fetch_participant(configuration: &configuration::Configuration, params: FetchParticipantParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let call_sid = params.call_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of participants belonging to the account used to make the request +pub async fn list_participant(configuration: &configuration::Configuration, params: ListParticipantParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let muted = params.muted; + let hold = params.hold; + let coaching = params.coaching; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = muted { + local_var_req_builder = local_var_req_builder.query(&[("Muted", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = hold { + local_var_req_builder = local_var_req_builder.query(&[("Hold", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = coaching { + local_var_req_builder = local_var_req_builder.query(&[("Coaching", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update the properties of the participant +pub async fn update_participant(configuration: &configuration::Configuration, params: UpdateParticipantParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let call_sid = params.call_sid; + let muted = params.muted; + let hold = params.hold; + let hold_url = params.hold_url; + let hold_method = params.hold_method; + let announce_url = params.announce_url; + let announce_method = params.announce_method; + let wait_url = params.wait_url; + let wait_method = params.wait_method; + let beep_on_exit = params.beep_on_exit; + let end_conference_on_exit = params.end_conference_on_exit; + let coaching = params.coaching; + let call_sid_to_coach = params.call_sid_to_coach; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = muted { + local_var_form_params.insert("Muted", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = hold { + local_var_form_params.insert("Hold", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = hold_url { + local_var_form_params.insert("HoldUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = hold_method { + local_var_form_params.insert("HoldMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_url { + local_var_form_params.insert("AnnounceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = announce_method { + local_var_form_params.insert("AnnounceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_url { + local_var_form_params.insert("WaitUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = wait_method { + local_var_form_params.insert("WaitMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = beep_on_exit { + local_var_form_params.insert("BeepOnExit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = end_conference_on_exit { + local_var_form_params.insert("EndConferenceOnExit", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = coaching { + local_var_form_params.insert("Coaching", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_sid_to_coach { + local_var_form_params.insert("CallSidToCoach", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_payload_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_payload_api.rs new file mode 100644 index 00000000..4298dd2a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_payload_api.rs @@ -0,0 +1,207 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_recording_add_on_result_payload`] +#[derive(Clone, Debug)] +pub struct DeleteRecordingAddOnResultPayloadParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. + pub account_sid: String, + /// The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. + pub reference_sid: String, + /// The SID of the AddOnResult to which the payloads to delete belongs. + pub add_on_result_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_recording_add_on_result_payload`] +#[derive(Clone, Debug)] +pub struct FetchRecordingAddOnResultPayloadParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. + pub account_sid: String, + /// The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + pub reference_sid: String, + /// The SID of the AddOnResult to which the payload to fetch belongs. + pub add_on_result_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_recording_add_on_result_payload`] +#[derive(Clone, Debug)] +pub struct ListRecordingAddOnResultPayloadParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. + pub account_sid: String, + /// The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. + pub reference_sid: String, + /// The SID of the AddOnResult to which the payloads to read belongs. + pub add_on_result_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`delete_recording_add_on_result_payload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingAddOnResultPayloadError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording_add_on_result_payload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingAddOnResultPayloadError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording_add_on_result_payload`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingAddOnResultPayloadError { + UnknownValue(serde_json::Value), +} + + +/// Delete a payload from the result along with all associated Data +pub async fn delete_recording_add_on_result_payload(configuration: &configuration::Configuration, params: DeleteRecordingAddOnResultPayloadParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let reference_sid = params.reference_sid; + let add_on_result_sid = params.add_on_result_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), AddOnResultSid=crate::apis::urlencode(add_on_result_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a result payload +pub async fn fetch_recording_add_on_result_payload(configuration: &configuration::Configuration, params: FetchRecordingAddOnResultPayloadParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let reference_sid = params.reference_sid; + let add_on_result_sid = params.add_on_result_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), AddOnResultSid=crate::apis::urlencode(add_on_result_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of payloads belonging to the AddOnResult +pub async fn list_recording_add_on_result_payload(configuration: &configuration::Configuration, params: ListRecordingAddOnResultPayloadParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let reference_sid = params.reference_sid; + let add_on_result_sid = params.add_on_result_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ReferenceSid=crate::apis::urlencode(reference_sid), AddOnResultSid=crate::apis::urlencode(add_on_result_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_payment_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_payment_api.rs new file mode 100644 index 00000000..f7a3a19b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_payment_api.rs @@ -0,0 +1,236 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_payments`] +#[derive(Clone, Debug)] +pub struct CreatePaymentsParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF. + pub call_sid: String, + /// A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated. + pub idempotency_key: String, + /// Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [expected StatusCallback values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback) + pub status_callback: String, + pub bank_account_type: Option, + /// A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with `currency` field. Leave blank or set to 0 to tokenize. + pub charge_amount: Option, + /// The currency of the `charge_amount`, formatted as [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The default value is `USD` and all values allowed from the Pay Connector are accepted. + pub currency: Option, + /// The description can be used to provide more details regarding the transaction. This information is submitted along with the payment details to the Payment Connector which are then posted on the transactions. + pub description: Option, + /// A list of inputs that should be accepted. Currently only `dtmf` is supported. All digits captured during a pay session are redacted from the logs. + pub input: Option, + /// A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. + pub min_postal_code_length: Option, + /// A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). + pub parameter: Option, + /// This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [ Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. + pub payment_connector: Option, + pub payment_method: Option, + /// Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is `true`. + pub postal_code: Option, + /// Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is `true`. + pub security_code: Option, + /// The number of seconds that should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`. + pub timeout: Option, + pub token_type: Option, + /// Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` + pub valid_card_types: Option +} + +/// struct for passing parameters to the method [`update_payments`] +#[derive(Clone, Debug)] +pub struct UpdatePaymentsParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. + pub account_sid: String, + /// The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource. + pub call_sid: String, + /// The SID of Payments session that needs to be updated. + pub sid: String, + /// A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated. + pub idempotency_key: String, + /// Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests. + pub status_callback: String, + pub capture: Option, + pub status: Option +} + + +/// struct for typed errors of method [`create_payments`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreatePaymentsError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_payments`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdatePaymentsError { + UnknownValue(serde_json::Value), +} + + +/// create an instance of payments. This will start a new payments session +pub async fn create_payments(configuration: &configuration::Configuration, params: CreatePaymentsParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let idempotency_key = params.idempotency_key; + let status_callback = params.status_callback; + let bank_account_type = params.bank_account_type; + let charge_amount = params.charge_amount; + let currency = params.currency; + let description = params.description; + let input = params.input; + let min_postal_code_length = params.min_postal_code_length; + let parameter = params.parameter; + let payment_connector = params.payment_connector; + let payment_method = params.payment_method; + let postal_code = params.postal_code; + let security_code = params.security_code; + let timeout = params.timeout; + let token_type = params.token_type; + let valid_card_types = params.valid_card_types; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IdempotencyKey", idempotency_key.to_string()); + local_var_form_params.insert("StatusCallback", status_callback.to_string()); + if let Some(local_var_param_value) = bank_account_type { + local_var_form_params.insert("BankAccountType", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = charge_amount { + local_var_form_params.insert("ChargeAmount", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = currency { + local_var_form_params.insert("Currency", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = description { + local_var_form_params.insert("Description", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = input { + local_var_form_params.insert("Input", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = min_postal_code_length { + local_var_form_params.insert("MinPostalCodeLength", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter { + local_var_form_params.insert("Parameter", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = payment_connector { + local_var_form_params.insert("PaymentConnector", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = payment_method { + local_var_form_params.insert("PaymentMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = postal_code { + local_var_form_params.insert("PostalCode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = security_code { + local_var_form_params.insert("SecurityCode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = timeout { + local_var_form_params.insert("Timeout", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = token_type { + local_var_form_params.insert("TokenType", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = valid_card_types { + local_var_form_params.insert("ValidCardTypes", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// update an instance of payments with different phases of payment flows. +pub async fn update_payments(configuration: &configuration::Configuration, params: UpdatePaymentsParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + let idempotency_key = params.idempotency_key; + let status_callback = params.status_callback; + let capture = params.capture; + let status = params.status; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("IdempotencyKey", idempotency_key.to_string()); + local_var_form_params.insert("StatusCallback", status_callback.to_string()); + if let Some(local_var_param_value) = capture { + local_var_form_params.insert("Capture", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status { + local_var_form_params.insert("Status", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_queue_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_queue_api.rs new file mode 100644 index 00000000..a7860d31 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_queue_api.rs @@ -0,0 +1,316 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_queue`] +#[derive(Clone, Debug)] +pub struct CreateQueueParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// A descriptive string that you created to describe this resource. It can be up to 64 characters long. + pub friendly_name: String, + /// The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. + pub max_size: Option +} + +/// struct for passing parameters to the method [`delete_queue`] +#[derive(Clone, Debug)] +pub struct DeleteQueueParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Queue resource to delete + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_queue`] +#[derive(Clone, Debug)] +pub struct FetchQueueParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Queue resource to fetch + pub sid: String +} + +/// struct for passing parameters to the method [`list_queue`] +#[derive(Clone, Debug)] +pub struct ListQueueParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_queue`] +#[derive(Clone, Debug)] +pub struct UpdateQueueParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Queue resource to update + pub sid: String, + /// A descriptive string that you created to describe this resource. It can be up to 64 characters long. + pub friendly_name: Option, + /// The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. + pub max_size: Option +} + + +/// struct for typed errors of method [`create_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListQueueError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_queue`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateQueueError { + UnknownValue(serde_json::Value), +} + + +/// Create a queue +pub async fn create_queue(configuration: &configuration::Configuration, params: CreateQueueParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + let max_size = params.max_size; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("FriendlyName", friendly_name.to_string()); + if let Some(local_var_param_value) = max_size { + local_var_form_params.insert("MaxSize", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Remove an empty queue +pub async fn delete_queue(configuration: &configuration::Configuration, params: DeleteQueueParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a queue identified by the QueueSid +pub async fn fetch_queue(configuration: &configuration::Configuration, params: FetchQueueParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of queues belonging to the account used to make the request +pub async fn list_queue(configuration: &configuration::Configuration, params: ListQueueParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update the queue with the new parameters +pub async fn update_queue(configuration: &configuration::Configuration, params: UpdateQueueParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + let max_size = params.max_size; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = max_size { + local_var_form_params.insert("MaxSize", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_record_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_record_api.rs new file mode 100644 index 00000000..b248000b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_record_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordError { + UnknownValue(serde_json::Value), +} + + +/// Retrieve a list of usage-records belonging to the account used to make the request +pub async fn list_usage_record(configuration: &configuration::Configuration, params: ListUsageRecordParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_recording_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_recording_api.rs new file mode 100644 index 00000000..79c8c191 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_recording_api.rs @@ -0,0 +1,849 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_call_recording`] +#[derive(Clone, Debug)] +pub struct CreateCallRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. + pub call_sid: String, + /// The recording status events on which we should call the `recording_status_callback` URL. Can be: `in-progress`, `completed` and `absent` and the default is `completed`. Separate multiple event values with a space. + pub recording_status_callback_event: Option>, + /// The URL we should call using the `recording_status_callback_method` on each recording event specified in `recording_status_callback_event`. For more information, see [RecordingStatusCallback parameters](https://www.twilio.com/docs/voice/api/recording#recordingstatuscallback). + pub recording_status_callback: Option, + /// The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. + pub recording_status_callback_method: Option, + /// Whether to trim any leading and trailing silence in the recording. Can be: `trim-silence` or `do-not-trim` and the default is `do-not-trim`. `trim-silence` trims the silence from the beginning and end of the recording and `do-not-trim` does not. + pub trim: Option, + /// The number of channels used in the recording. Can be: `mono` or `dual` and the default is `mono`. `mono` records all parties of the call into one channel. `dual` records each party of a 2-party call into separate channels. + pub recording_channels: Option, + /// The audio track to record for the call. Can be: `inbound`, `outbound` or `both`. The default is `both`. `inbound` records the audio that is received by Twilio. `outbound` records the audio that is generated from Twilio. `both` records the audio that is received and generated by Twilio. + pub recording_track: Option +} + +/// struct for passing parameters to the method [`delete_call_recording`] +#[derive(Clone, Debug)] +pub struct DeleteCallRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. + pub account_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. + pub call_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`delete_conference_recording`] +#[derive(Clone, Debug)] +pub struct DeleteConferenceRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. + pub account_sid: String, + /// The Conference SID that identifies the conference associated with the recording to delete. + pub conference_sid: String, + /// The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`delete_recording`] +#[derive(Clone, Debug)] +pub struct DeleteRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_call_recording`] +#[derive(Clone, Debug)] +pub struct FetchCallRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. + pub account_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. + pub call_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_conference_recording`] +#[derive(Clone, Debug)] +pub struct FetchConferenceRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. + pub account_sid: String, + /// The Conference SID that identifies the conference associated with the recording to fetch. + pub conference_sid: String, + /// The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_recording`] +#[derive(Clone, Debug)] +pub struct FetchRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording resource to fetch. + pub sid: String, + /// A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. + pub include_soft_deleted: Option +} + +/// struct for passing parameters to the method [`list_call_recording`] +#[derive(Clone, Debug)] +pub struct ListCallRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. + pub account_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. + pub call_sid: String, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. + pub date_created: Option, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. + pub date_created_less_than: Option, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. + pub date_created_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_conference_recording`] +#[derive(Clone, Debug)] +pub struct ListConferenceRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. + pub account_sid: String, + /// The Conference SID that identifies the conference associated with the recording to read. + pub conference_sid: String, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. + pub date_created: Option, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. + pub date_created_less_than: Option, + /// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. You can also specify inequality: `DateCreated<=YYYY-MM-DD` will return recordings generated at or before midnight on a given date, and `DateCreated>=YYYY-MM-DD` returns recordings generated at or after midnight on a date. + pub date_created_greater_than: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_recording`] +#[derive(Clone, Debug)] +pub struct ListRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. + pub account_sid: String, + /// Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. + pub date_created: Option, + /// Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. + pub date_created_less_than: Option, + /// Only include recordings that were created on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read recordings that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read recordings that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read recordings that were created on or after midnight of this date. + pub date_created_greater_than: Option, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. + pub call_sid: Option, + /// The Conference SID that identifies the conference associated with the recording to read. + pub conference_sid: Option, + /// A boolean parameter indicating whether to retrieve soft deleted recordings or not. Recordings metadata are kept after deletion for a retention period of 40 days. + pub include_soft_deleted: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_call_recording`] +#[derive(Clone, Debug)] +pub struct UpdateCallRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. + pub account_sid: String, + /// The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. + pub call_sid: String, + /// The Twilio-provided string that uniquely identifies the Recording resource to update. + pub sid: String, + pub status: String, + /// Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. + pub pause_behavior: Option +} + +/// struct for passing parameters to the method [`update_conference_recording`] +#[derive(Clone, Debug)] +pub struct UpdateConferenceRecordingParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. + pub account_sid: String, + /// The Conference SID that identifies the conference associated with the recording to update. + pub conference_sid: String, + /// The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. + pub sid: String, + pub status: String, + /// Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. + pub pause_behavior: Option +} + + +/// struct for typed errors of method [`create_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListConferenceRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_call_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateCallRecordingError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_conference_recording`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateConferenceRecordingError { + UnknownValue(serde_json::Value), +} + + +/// Create a recording for the call +pub async fn create_call_recording(configuration: &configuration::Configuration, params: CreateCallRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let recording_status_callback_event = params.recording_status_callback_event; + let recording_status_callback = params.recording_status_callback; + let recording_status_callback_method = params.recording_status_callback_method; + let trim = params.trim; + let recording_channels = params.recording_channels; + let recording_track = params.recording_track; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = recording_status_callback_event { + local_var_form_params.insert("RecordingStatusCallbackEvent", local_var_param_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string()); + } + if let Some(local_var_param_value) = recording_status_callback { + local_var_form_params.insert("RecordingStatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_status_callback_method { + local_var_form_params.insert("RecordingStatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trim { + local_var_form_params.insert("Trim", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_channels { + local_var_form_params.insert("RecordingChannels", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recording_track { + local_var_form_params.insert("RecordingTrack", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a recording from your account +pub async fn delete_call_recording(configuration: &configuration::Configuration, params: DeleteCallRecordingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a recording from your account +pub async fn delete_conference_recording(configuration: &configuration::Configuration, params: DeleteConferenceRecordingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a recording from your account +pub async fn delete_recording(configuration: &configuration::Configuration, params: DeleteRecordingParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a recording for a call +pub async fn fetch_call_recording(configuration: &configuration::Configuration, params: FetchCallRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a recording for a call +pub async fn fetch_conference_recording(configuration: &configuration::Configuration, params: FetchConferenceRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a recording +pub async fn fetch_recording(configuration: &configuration::Configuration, params: FetchRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let include_soft_deleted = params.include_soft_deleted; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = include_soft_deleted { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSoftDeleted", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of recordings belonging to the call used to make the request +pub async fn list_call_recording(configuration: &configuration::Configuration, params: ListCallRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let date_created = params.date_created; + let date_created_less_than = params.date_created_less_than; + let date_created_greater_than = params.date_created_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of recordings belonging to the call used to make the request +pub async fn list_conference_recording(configuration: &configuration::Configuration, params: ListConferenceRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let date_created = params.date_created; + let date_created_less_than = params.date_created_less_than; + let date_created_greater_than = params.date_created_greater_than; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of recordings belonging to the account used to make the request +pub async fn list_recording(configuration: &configuration::Configuration, params: ListRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let date_created = params.date_created; + let date_created_less_than = params.date_created_less_than; + let date_created_greater_than = params.date_created_greater_than; + let call_sid = params.call_sid; + let conference_sid = params.conference_sid; + let include_soft_deleted = params.include_soft_deleted; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = date_created { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_less_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated<", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = date_created_greater_than { + local_var_req_builder = local_var_req_builder.query(&[("DateCreated>", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = call_sid { + local_var_req_builder = local_var_req_builder.query(&[("CallSid", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = conference_sid { + local_var_req_builder = local_var_req_builder.query(&[("ConferenceSid", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_soft_deleted { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSoftDeleted", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Changes the status of the recording to paused, stopped, or in-progress. Note: Pass `Twilio.CURRENT` instead of recording sid to reference current active recording. +pub async fn update_call_recording(configuration: &configuration::Configuration, params: UpdateCallRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + let status = params.status; + let pause_behavior = params.pause_behavior; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + if let Some(local_var_param_value) = pause_behavior { + local_var_form_params.insert("PauseBehavior", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. +pub async fn update_conference_recording(configuration: &configuration::Configuration, params: UpdateConferenceRecordingParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let conference_sid = params.conference_sid; + let sid = params.sid; + let status = params.status; + let pause_behavior = params.pause_behavior; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), ConferenceSid=crate::apis::urlencode(conference_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + if let Some(local_var_param_value) = pause_behavior { + local_var_form_params.insert("PauseBehavior", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_safelist_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_safelist_api.rs new file mode 100644 index 00000000..7744b8f1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_safelist_api.rs @@ -0,0 +1,174 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_safelist`] +#[derive(Clone, Debug)] +pub struct CreateSafelistParams { + /// The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). + pub phone_number: String +} + +/// struct for passing parameters to the method [`delete_safelist`] +#[derive(Clone, Debug)] +pub struct DeleteSafelistParams { + /// The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). + pub phone_number: Option +} + +/// struct for passing parameters to the method [`fetch_safelist`] +#[derive(Clone, Debug)] +pub struct FetchSafelistParams { + /// The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). + pub phone_number: Option +} + + +/// struct for typed errors of method [`create_safelist`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSafelistError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_safelist`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSafelistError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_safelist`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSafelistError { + UnknownValue(serde_json::Value), +} + + +/// Add a new phone number to SafeList. +pub async fn create_safelist(configuration: &configuration::Configuration, params: CreateSafelistParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let phone_number = params.phone_number; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/SafeList/Numbers.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Remove a phone number from SafeList. +pub async fn delete_safelist(configuration: &configuration::Configuration, params: DeleteSafelistParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let phone_number = params.phone_number; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/SafeList/Numbers.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Check if a phone number exists in SafeList. +pub async fn fetch_safelist(configuration: &configuration::Configuration, params: FetchSafelistParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let phone_number = params.phone_number; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/SafeList/Numbers.json", local_var_configuration.base_path); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_shared_cost_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_shared_cost_api.rs new file mode 100644 index 00000000..5dc01376 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_shared_cost_api.rs @@ -0,0 +1,196 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_available_phone_number_shared_cost`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberSharedCostParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_available_phone_number_shared_cost`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberSharedCostError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_available_phone_number_shared_cost(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberSharedCostParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_short_code_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_short_code_api.rs new file mode 100644 index 00000000..1ed42000 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_short_code_api.rs @@ -0,0 +1,239 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`fetch_short_code`] +#[derive(Clone, Debug)] +pub struct FetchShortCodeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the ShortCode resource to fetch + pub sid: String +} + +/// struct for passing parameters to the method [`list_short_code`] +#[derive(Clone, Debug)] +pub struct ListShortCodeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. + pub account_sid: String, + /// The string that identifies the ShortCode resources to read. + pub friendly_name: Option, + /// Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. + pub short_code: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_short_code`] +#[derive(Clone, Debug)] +pub struct UpdateShortCodeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the ShortCode resource to update + pub sid: String, + /// A descriptive string that you created to describe this resource. It can be up to 64 characters long. By default, the `FriendlyName` is the short code. + pub friendly_name: Option, + /// The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. + pub api_version: Option, + /// The URL we should call when receiving an incoming SMS message to this short code. + pub sms_url: Option, + /// The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. + pub sms_method: Option, + /// The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. + pub sms_fallback_method: Option +} + + +/// struct for typed errors of method [`fetch_short_code`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchShortCodeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_short_code`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListShortCodeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_short_code`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateShortCodeError { + UnknownValue(serde_json::Value), +} + + +/// Fetch an instance of a short code +pub async fn fetch_short_code(configuration: &configuration::Configuration, params: FetchShortCodeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of short-codes belonging to the account used to make the request +pub async fn list_short_code(configuration: &configuration::Configuration, params: ListShortCodeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let friendly_name = params.friendly_name; + let short_code = params.short_code; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = short_code { + local_var_req_builder = local_var_req_builder.query(&[("ShortCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update a short code with the following parameters +pub async fn update_short_code(configuration: &configuration::Configuration, params: UpdateShortCodeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + let api_version = params.api_version; + let sms_url = params.sms_url; + let sms_method = params.sms_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_fallback_method = params.sms_fallback_method; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_signing_key_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_signing_key_api.rs new file mode 100644 index 00000000..efcf74f2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_signing_key_api.rs @@ -0,0 +1,249 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_signing_key`] +#[derive(Clone, Debug)] +pub struct DeleteSigningKeyParams { + /// + pub account_sid: String, + /// + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_signing_key`] +#[derive(Clone, Debug)] +pub struct FetchSigningKeyParams { + /// + pub account_sid: String, + /// + pub sid: String +} + +/// struct for passing parameters to the method [`list_signing_key`] +#[derive(Clone, Debug)] +pub struct ListSigningKeyParams { + /// + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_signing_key`] +#[derive(Clone, Debug)] +pub struct UpdateSigningKeyParams { + /// + pub account_sid: String, + /// + pub sid: String, + /// + pub friendly_name: Option +} + + +/// struct for typed errors of method [`delete_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListSigningKeyError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_signing_key`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSigningKeyError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn delete_signing_key(configuration: &configuration::Configuration, params: DeleteSigningKeyParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_signing_key(configuration: &configuration::Configuration, params: FetchSigningKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_signing_key(configuration: &configuration::Configuration, params: ListSigningKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn update_signing_key(configuration: &configuration::Configuration, params: UpdateSigningKeyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_siprec_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_siprec_api.rs new file mode 100644 index 00000000..0f48557d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_siprec_api.rs @@ -0,0 +1,1349 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_siprec`] +#[derive(Clone, Debug)] +pub struct CreateSiprecParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. + pub call_sid: String, + /// The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. + pub name: Option, + /// Unique name used when configuring the connector via Marketplace Add-on. + pub connector_name: Option, + pub track: Option, + /// Absolute URL of the status callback. + pub status_callback: Option, + /// The http method for the status_callback (one of GET, POST). + pub status_callback_method: Option, + /// Parameter name + pub parameter1_period_name: Option, + /// Parameter value + pub parameter1_period_value: Option, + /// Parameter name + pub parameter2_period_name: Option, + /// Parameter value + pub parameter2_period_value: Option, + /// Parameter name + pub parameter3_period_name: Option, + /// Parameter value + pub parameter3_period_value: Option, + /// Parameter name + pub parameter4_period_name: Option, + /// Parameter value + pub parameter4_period_value: Option, + /// Parameter name + pub parameter5_period_name: Option, + /// Parameter value + pub parameter5_period_value: Option, + /// Parameter name + pub parameter6_period_name: Option, + /// Parameter value + pub parameter6_period_value: Option, + /// Parameter name + pub parameter7_period_name: Option, + /// Parameter value + pub parameter7_period_value: Option, + /// Parameter name + pub parameter8_period_name: Option, + /// Parameter value + pub parameter8_period_value: Option, + /// Parameter name + pub parameter9_period_name: Option, + /// Parameter value + pub parameter9_period_value: Option, + /// Parameter name + pub parameter10_period_name: Option, + /// Parameter value + pub parameter10_period_value: Option, + /// Parameter name + pub parameter11_period_name: Option, + /// Parameter value + pub parameter11_period_value: Option, + /// Parameter name + pub parameter12_period_name: Option, + /// Parameter value + pub parameter12_period_value: Option, + /// Parameter name + pub parameter13_period_name: Option, + /// Parameter value + pub parameter13_period_value: Option, + /// Parameter name + pub parameter14_period_name: Option, + /// Parameter value + pub parameter14_period_value: Option, + /// Parameter name + pub parameter15_period_name: Option, + /// Parameter value + pub parameter15_period_value: Option, + /// Parameter name + pub parameter16_period_name: Option, + /// Parameter value + pub parameter16_period_value: Option, + /// Parameter name + pub parameter17_period_name: Option, + /// Parameter value + pub parameter17_period_value: Option, + /// Parameter name + pub parameter18_period_name: Option, + /// Parameter value + pub parameter18_period_value: Option, + /// Parameter name + pub parameter19_period_name: Option, + /// Parameter value + pub parameter19_period_value: Option, + /// Parameter name + pub parameter20_period_name: Option, + /// Parameter value + pub parameter20_period_value: Option, + /// Parameter name + pub parameter21_period_name: Option, + /// Parameter value + pub parameter21_period_value: Option, + /// Parameter name + pub parameter22_period_name: Option, + /// Parameter value + pub parameter22_period_value: Option, + /// Parameter name + pub parameter23_period_name: Option, + /// Parameter value + pub parameter23_period_value: Option, + /// Parameter name + pub parameter24_period_name: Option, + /// Parameter value + pub parameter24_period_value: Option, + /// Parameter name + pub parameter25_period_name: Option, + /// Parameter value + pub parameter25_period_value: Option, + /// Parameter name + pub parameter26_period_name: Option, + /// Parameter value + pub parameter26_period_value: Option, + /// Parameter name + pub parameter27_period_name: Option, + /// Parameter value + pub parameter27_period_value: Option, + /// Parameter name + pub parameter28_period_name: Option, + /// Parameter value + pub parameter28_period_value: Option, + /// Parameter name + pub parameter29_period_name: Option, + /// Parameter value + pub parameter29_period_value: Option, + /// Parameter name + pub parameter30_period_name: Option, + /// Parameter value + pub parameter30_period_value: Option, + /// Parameter name + pub parameter31_period_name: Option, + /// Parameter value + pub parameter31_period_value: Option, + /// Parameter name + pub parameter32_period_name: Option, + /// Parameter value + pub parameter32_period_value: Option, + /// Parameter name + pub parameter33_period_name: Option, + /// Parameter value + pub parameter33_period_value: Option, + /// Parameter name + pub parameter34_period_name: Option, + /// Parameter value + pub parameter34_period_value: Option, + /// Parameter name + pub parameter35_period_name: Option, + /// Parameter value + pub parameter35_period_value: Option, + /// Parameter name + pub parameter36_period_name: Option, + /// Parameter value + pub parameter36_period_value: Option, + /// Parameter name + pub parameter37_period_name: Option, + /// Parameter value + pub parameter37_period_value: Option, + /// Parameter name + pub parameter38_period_name: Option, + /// Parameter value + pub parameter38_period_value: Option, + /// Parameter name + pub parameter39_period_name: Option, + /// Parameter value + pub parameter39_period_value: Option, + /// Parameter name + pub parameter40_period_name: Option, + /// Parameter value + pub parameter40_period_value: Option, + /// Parameter name + pub parameter41_period_name: Option, + /// Parameter value + pub parameter41_period_value: Option, + /// Parameter name + pub parameter42_period_name: Option, + /// Parameter value + pub parameter42_period_value: Option, + /// Parameter name + pub parameter43_period_name: Option, + /// Parameter value + pub parameter43_period_value: Option, + /// Parameter name + pub parameter44_period_name: Option, + /// Parameter value + pub parameter44_period_value: Option, + /// Parameter name + pub parameter45_period_name: Option, + /// Parameter value + pub parameter45_period_value: Option, + /// Parameter name + pub parameter46_period_name: Option, + /// Parameter value + pub parameter46_period_value: Option, + /// Parameter name + pub parameter47_period_name: Option, + /// Parameter value + pub parameter47_period_value: Option, + /// Parameter name + pub parameter48_period_name: Option, + /// Parameter value + pub parameter48_period_value: Option, + /// Parameter name + pub parameter49_period_name: Option, + /// Parameter value + pub parameter49_period_value: Option, + /// Parameter name + pub parameter50_period_name: Option, + /// Parameter value + pub parameter50_period_value: Option, + /// Parameter name + pub parameter51_period_name: Option, + /// Parameter value + pub parameter51_period_value: Option, + /// Parameter name + pub parameter52_period_name: Option, + /// Parameter value + pub parameter52_period_value: Option, + /// Parameter name + pub parameter53_period_name: Option, + /// Parameter value + pub parameter53_period_value: Option, + /// Parameter name + pub parameter54_period_name: Option, + /// Parameter value + pub parameter54_period_value: Option, + /// Parameter name + pub parameter55_period_name: Option, + /// Parameter value + pub parameter55_period_value: Option, + /// Parameter name + pub parameter56_period_name: Option, + /// Parameter value + pub parameter56_period_value: Option, + /// Parameter name + pub parameter57_period_name: Option, + /// Parameter value + pub parameter57_period_value: Option, + /// Parameter name + pub parameter58_period_name: Option, + /// Parameter value + pub parameter58_period_value: Option, + /// Parameter name + pub parameter59_period_name: Option, + /// Parameter value + pub parameter59_period_value: Option, + /// Parameter name + pub parameter60_period_name: Option, + /// Parameter value + pub parameter60_period_value: Option, + /// Parameter name + pub parameter61_period_name: Option, + /// Parameter value + pub parameter61_period_value: Option, + /// Parameter name + pub parameter62_period_name: Option, + /// Parameter value + pub parameter62_period_value: Option, + /// Parameter name + pub parameter63_period_name: Option, + /// Parameter value + pub parameter63_period_value: Option, + /// Parameter name + pub parameter64_period_name: Option, + /// Parameter value + pub parameter64_period_value: Option, + /// Parameter name + pub parameter65_period_name: Option, + /// Parameter value + pub parameter65_period_value: Option, + /// Parameter name + pub parameter66_period_name: Option, + /// Parameter value + pub parameter66_period_value: Option, + /// Parameter name + pub parameter67_period_name: Option, + /// Parameter value + pub parameter67_period_value: Option, + /// Parameter name + pub parameter68_period_name: Option, + /// Parameter value + pub parameter68_period_value: Option, + /// Parameter name + pub parameter69_period_name: Option, + /// Parameter value + pub parameter69_period_value: Option, + /// Parameter name + pub parameter70_period_name: Option, + /// Parameter value + pub parameter70_period_value: Option, + /// Parameter name + pub parameter71_period_name: Option, + /// Parameter value + pub parameter71_period_value: Option, + /// Parameter name + pub parameter72_period_name: Option, + /// Parameter value + pub parameter72_period_value: Option, + /// Parameter name + pub parameter73_period_name: Option, + /// Parameter value + pub parameter73_period_value: Option, + /// Parameter name + pub parameter74_period_name: Option, + /// Parameter value + pub parameter74_period_value: Option, + /// Parameter name + pub parameter75_period_name: Option, + /// Parameter value + pub parameter75_period_value: Option, + /// Parameter name + pub parameter76_period_name: Option, + /// Parameter value + pub parameter76_period_value: Option, + /// Parameter name + pub parameter77_period_name: Option, + /// Parameter value + pub parameter77_period_value: Option, + /// Parameter name + pub parameter78_period_name: Option, + /// Parameter value + pub parameter78_period_value: Option, + /// Parameter name + pub parameter79_period_name: Option, + /// Parameter value + pub parameter79_period_value: Option, + /// Parameter name + pub parameter80_period_name: Option, + /// Parameter value + pub parameter80_period_value: Option, + /// Parameter name + pub parameter81_period_name: Option, + /// Parameter value + pub parameter81_period_value: Option, + /// Parameter name + pub parameter82_period_name: Option, + /// Parameter value + pub parameter82_period_value: Option, + /// Parameter name + pub parameter83_period_name: Option, + /// Parameter value + pub parameter83_period_value: Option, + /// Parameter name + pub parameter84_period_name: Option, + /// Parameter value + pub parameter84_period_value: Option, + /// Parameter name + pub parameter85_period_name: Option, + /// Parameter value + pub parameter85_period_value: Option, + /// Parameter name + pub parameter86_period_name: Option, + /// Parameter value + pub parameter86_period_value: Option, + /// Parameter name + pub parameter87_period_name: Option, + /// Parameter value + pub parameter87_period_value: Option, + /// Parameter name + pub parameter88_period_name: Option, + /// Parameter value + pub parameter88_period_value: Option, + /// Parameter name + pub parameter89_period_name: Option, + /// Parameter value + pub parameter89_period_value: Option, + /// Parameter name + pub parameter90_period_name: Option, + /// Parameter value + pub parameter90_period_value: Option, + /// Parameter name + pub parameter91_period_name: Option, + /// Parameter value + pub parameter91_period_value: Option, + /// Parameter name + pub parameter92_period_name: Option, + /// Parameter value + pub parameter92_period_value: Option, + /// Parameter name + pub parameter93_period_name: Option, + /// Parameter value + pub parameter93_period_value: Option, + /// Parameter name + pub parameter94_period_name: Option, + /// Parameter value + pub parameter94_period_value: Option, + /// Parameter name + pub parameter95_period_name: Option, + /// Parameter value + pub parameter95_period_value: Option, + /// Parameter name + pub parameter96_period_name: Option, + /// Parameter value + pub parameter96_period_value: Option, + /// Parameter name + pub parameter97_period_name: Option, + /// Parameter value + pub parameter97_period_value: Option, + /// Parameter name + pub parameter98_period_name: Option, + /// Parameter value + pub parameter98_period_value: Option, + /// Parameter name + pub parameter99_period_name: Option, + /// Parameter value + pub parameter99_period_value: Option +} + +/// struct for passing parameters to the method [`update_siprec`] +#[derive(Clone, Debug)] +pub struct UpdateSiprecParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. + pub call_sid: String, + /// The SID of the Siprec resource, or the `name` used when creating the resource + pub sid: String, + pub status: String +} + + +/// struct for typed errors of method [`create_siprec`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateSiprecError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_siprec`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateSiprecError { + UnknownValue(serde_json::Value), +} + + +/// Create a Siprec +pub async fn create_siprec(configuration: &configuration::Configuration, params: CreateSiprecParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let name = params.name; + let connector_name = params.connector_name; + let track = params.track; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let parameter1_period_name = params.parameter1_period_name; + let parameter1_period_value = params.parameter1_period_value; + let parameter2_period_name = params.parameter2_period_name; + let parameter2_period_value = params.parameter2_period_value; + let parameter3_period_name = params.parameter3_period_name; + let parameter3_period_value = params.parameter3_period_value; + let parameter4_period_name = params.parameter4_period_name; + let parameter4_period_value = params.parameter4_period_value; + let parameter5_period_name = params.parameter5_period_name; + let parameter5_period_value = params.parameter5_period_value; + let parameter6_period_name = params.parameter6_period_name; + let parameter6_period_value = params.parameter6_period_value; + let parameter7_period_name = params.parameter7_period_name; + let parameter7_period_value = params.parameter7_period_value; + let parameter8_period_name = params.parameter8_period_name; + let parameter8_period_value = params.parameter8_period_value; + let parameter9_period_name = params.parameter9_period_name; + let parameter9_period_value = params.parameter9_period_value; + let parameter10_period_name = params.parameter10_period_name; + let parameter10_period_value = params.parameter10_period_value; + let parameter11_period_name = params.parameter11_period_name; + let parameter11_period_value = params.parameter11_period_value; + let parameter12_period_name = params.parameter12_period_name; + let parameter12_period_value = params.parameter12_period_value; + let parameter13_period_name = params.parameter13_period_name; + let parameter13_period_value = params.parameter13_period_value; + let parameter14_period_name = params.parameter14_period_name; + let parameter14_period_value = params.parameter14_period_value; + let parameter15_period_name = params.parameter15_period_name; + let parameter15_period_value = params.parameter15_period_value; + let parameter16_period_name = params.parameter16_period_name; + let parameter16_period_value = params.parameter16_period_value; + let parameter17_period_name = params.parameter17_period_name; + let parameter17_period_value = params.parameter17_period_value; + let parameter18_period_name = params.parameter18_period_name; + let parameter18_period_value = params.parameter18_period_value; + let parameter19_period_name = params.parameter19_period_name; + let parameter19_period_value = params.parameter19_period_value; + let parameter20_period_name = params.parameter20_period_name; + let parameter20_period_value = params.parameter20_period_value; + let parameter21_period_name = params.parameter21_period_name; + let parameter21_period_value = params.parameter21_period_value; + let parameter22_period_name = params.parameter22_period_name; + let parameter22_period_value = params.parameter22_period_value; + let parameter23_period_name = params.parameter23_period_name; + let parameter23_period_value = params.parameter23_period_value; + let parameter24_period_name = params.parameter24_period_name; + let parameter24_period_value = params.parameter24_period_value; + let parameter25_period_name = params.parameter25_period_name; + let parameter25_period_value = params.parameter25_period_value; + let parameter26_period_name = params.parameter26_period_name; + let parameter26_period_value = params.parameter26_period_value; + let parameter27_period_name = params.parameter27_period_name; + let parameter27_period_value = params.parameter27_period_value; + let parameter28_period_name = params.parameter28_period_name; + let parameter28_period_value = params.parameter28_period_value; + let parameter29_period_name = params.parameter29_period_name; + let parameter29_period_value = params.parameter29_period_value; + let parameter30_period_name = params.parameter30_period_name; + let parameter30_period_value = params.parameter30_period_value; + let parameter31_period_name = params.parameter31_period_name; + let parameter31_period_value = params.parameter31_period_value; + let parameter32_period_name = params.parameter32_period_name; + let parameter32_period_value = params.parameter32_period_value; + let parameter33_period_name = params.parameter33_period_name; + let parameter33_period_value = params.parameter33_period_value; + let parameter34_period_name = params.parameter34_period_name; + let parameter34_period_value = params.parameter34_period_value; + let parameter35_period_name = params.parameter35_period_name; + let parameter35_period_value = params.parameter35_period_value; + let parameter36_period_name = params.parameter36_period_name; + let parameter36_period_value = params.parameter36_period_value; + let parameter37_period_name = params.parameter37_period_name; + let parameter37_period_value = params.parameter37_period_value; + let parameter38_period_name = params.parameter38_period_name; + let parameter38_period_value = params.parameter38_period_value; + let parameter39_period_name = params.parameter39_period_name; + let parameter39_period_value = params.parameter39_period_value; + let parameter40_period_name = params.parameter40_period_name; + let parameter40_period_value = params.parameter40_period_value; + let parameter41_period_name = params.parameter41_period_name; + let parameter41_period_value = params.parameter41_period_value; + let parameter42_period_name = params.parameter42_period_name; + let parameter42_period_value = params.parameter42_period_value; + let parameter43_period_name = params.parameter43_period_name; + let parameter43_period_value = params.parameter43_period_value; + let parameter44_period_name = params.parameter44_period_name; + let parameter44_period_value = params.parameter44_period_value; + let parameter45_period_name = params.parameter45_period_name; + let parameter45_period_value = params.parameter45_period_value; + let parameter46_period_name = params.parameter46_period_name; + let parameter46_period_value = params.parameter46_period_value; + let parameter47_period_name = params.parameter47_period_name; + let parameter47_period_value = params.parameter47_period_value; + let parameter48_period_name = params.parameter48_period_name; + let parameter48_period_value = params.parameter48_period_value; + let parameter49_period_name = params.parameter49_period_name; + let parameter49_period_value = params.parameter49_period_value; + let parameter50_period_name = params.parameter50_period_name; + let parameter50_period_value = params.parameter50_period_value; + let parameter51_period_name = params.parameter51_period_name; + let parameter51_period_value = params.parameter51_period_value; + let parameter52_period_name = params.parameter52_period_name; + let parameter52_period_value = params.parameter52_period_value; + let parameter53_period_name = params.parameter53_period_name; + let parameter53_period_value = params.parameter53_period_value; + let parameter54_period_name = params.parameter54_period_name; + let parameter54_period_value = params.parameter54_period_value; + let parameter55_period_name = params.parameter55_period_name; + let parameter55_period_value = params.parameter55_period_value; + let parameter56_period_name = params.parameter56_period_name; + let parameter56_period_value = params.parameter56_period_value; + let parameter57_period_name = params.parameter57_period_name; + let parameter57_period_value = params.parameter57_period_value; + let parameter58_period_name = params.parameter58_period_name; + let parameter58_period_value = params.parameter58_period_value; + let parameter59_period_name = params.parameter59_period_name; + let parameter59_period_value = params.parameter59_period_value; + let parameter60_period_name = params.parameter60_period_name; + let parameter60_period_value = params.parameter60_period_value; + let parameter61_period_name = params.parameter61_period_name; + let parameter61_period_value = params.parameter61_period_value; + let parameter62_period_name = params.parameter62_period_name; + let parameter62_period_value = params.parameter62_period_value; + let parameter63_period_name = params.parameter63_period_name; + let parameter63_period_value = params.parameter63_period_value; + let parameter64_period_name = params.parameter64_period_name; + let parameter64_period_value = params.parameter64_period_value; + let parameter65_period_name = params.parameter65_period_name; + let parameter65_period_value = params.parameter65_period_value; + let parameter66_period_name = params.parameter66_period_name; + let parameter66_period_value = params.parameter66_period_value; + let parameter67_period_name = params.parameter67_period_name; + let parameter67_period_value = params.parameter67_period_value; + let parameter68_period_name = params.parameter68_period_name; + let parameter68_period_value = params.parameter68_period_value; + let parameter69_period_name = params.parameter69_period_name; + let parameter69_period_value = params.parameter69_period_value; + let parameter70_period_name = params.parameter70_period_name; + let parameter70_period_value = params.parameter70_period_value; + let parameter71_period_name = params.parameter71_period_name; + let parameter71_period_value = params.parameter71_period_value; + let parameter72_period_name = params.parameter72_period_name; + let parameter72_period_value = params.parameter72_period_value; + let parameter73_period_name = params.parameter73_period_name; + let parameter73_period_value = params.parameter73_period_value; + let parameter74_period_name = params.parameter74_period_name; + let parameter74_period_value = params.parameter74_period_value; + let parameter75_period_name = params.parameter75_period_name; + let parameter75_period_value = params.parameter75_period_value; + let parameter76_period_name = params.parameter76_period_name; + let parameter76_period_value = params.parameter76_period_value; + let parameter77_period_name = params.parameter77_period_name; + let parameter77_period_value = params.parameter77_period_value; + let parameter78_period_name = params.parameter78_period_name; + let parameter78_period_value = params.parameter78_period_value; + let parameter79_period_name = params.parameter79_period_name; + let parameter79_period_value = params.parameter79_period_value; + let parameter80_period_name = params.parameter80_period_name; + let parameter80_period_value = params.parameter80_period_value; + let parameter81_period_name = params.parameter81_period_name; + let parameter81_period_value = params.parameter81_period_value; + let parameter82_period_name = params.parameter82_period_name; + let parameter82_period_value = params.parameter82_period_value; + let parameter83_period_name = params.parameter83_period_name; + let parameter83_period_value = params.parameter83_period_value; + let parameter84_period_name = params.parameter84_period_name; + let parameter84_period_value = params.parameter84_period_value; + let parameter85_period_name = params.parameter85_period_name; + let parameter85_period_value = params.parameter85_period_value; + let parameter86_period_name = params.parameter86_period_name; + let parameter86_period_value = params.parameter86_period_value; + let parameter87_period_name = params.parameter87_period_name; + let parameter87_period_value = params.parameter87_period_value; + let parameter88_period_name = params.parameter88_period_name; + let parameter88_period_value = params.parameter88_period_value; + let parameter89_period_name = params.parameter89_period_name; + let parameter89_period_value = params.parameter89_period_value; + let parameter90_period_name = params.parameter90_period_name; + let parameter90_period_value = params.parameter90_period_value; + let parameter91_period_name = params.parameter91_period_name; + let parameter91_period_value = params.parameter91_period_value; + let parameter92_period_name = params.parameter92_period_name; + let parameter92_period_value = params.parameter92_period_value; + let parameter93_period_name = params.parameter93_period_name; + let parameter93_period_value = params.parameter93_period_value; + let parameter94_period_name = params.parameter94_period_name; + let parameter94_period_value = params.parameter94_period_value; + let parameter95_period_name = params.parameter95_period_name; + let parameter95_period_value = params.parameter95_period_value; + let parameter96_period_name = params.parameter96_period_name; + let parameter96_period_value = params.parameter96_period_value; + let parameter97_period_name = params.parameter97_period_name; + let parameter97_period_value = params.parameter97_period_value; + let parameter98_period_name = params.parameter98_period_name; + let parameter98_period_value = params.parameter98_period_value; + let parameter99_period_name = params.parameter99_period_name; + let parameter99_period_value = params.parameter99_period_value; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = name { + local_var_form_params.insert("Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = connector_name { + local_var_form_params.insert("ConnectorName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = track { + local_var_form_params.insert("Track", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_name { + local_var_form_params.insert("Parameter1.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_value { + local_var_form_params.insert("Parameter1.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_name { + local_var_form_params.insert("Parameter2.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_value { + local_var_form_params.insert("Parameter2.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_name { + local_var_form_params.insert("Parameter3.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_value { + local_var_form_params.insert("Parameter3.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_name { + local_var_form_params.insert("Parameter4.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_value { + local_var_form_params.insert("Parameter4.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_name { + local_var_form_params.insert("Parameter5.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_value { + local_var_form_params.insert("Parameter5.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_name { + local_var_form_params.insert("Parameter6.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_value { + local_var_form_params.insert("Parameter6.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_name { + local_var_form_params.insert("Parameter7.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_value { + local_var_form_params.insert("Parameter7.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_name { + local_var_form_params.insert("Parameter8.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_value { + local_var_form_params.insert("Parameter8.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_name { + local_var_form_params.insert("Parameter9.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_value { + local_var_form_params.insert("Parameter9.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_name { + local_var_form_params.insert("Parameter10.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_value { + local_var_form_params.insert("Parameter10.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_name { + local_var_form_params.insert("Parameter11.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_value { + local_var_form_params.insert("Parameter11.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_name { + local_var_form_params.insert("Parameter12.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_value { + local_var_form_params.insert("Parameter12.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_name { + local_var_form_params.insert("Parameter13.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_value { + local_var_form_params.insert("Parameter13.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_name { + local_var_form_params.insert("Parameter14.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_value { + local_var_form_params.insert("Parameter14.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_name { + local_var_form_params.insert("Parameter15.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_value { + local_var_form_params.insert("Parameter15.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_name { + local_var_form_params.insert("Parameter16.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_value { + local_var_form_params.insert("Parameter16.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_name { + local_var_form_params.insert("Parameter17.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_value { + local_var_form_params.insert("Parameter17.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_name { + local_var_form_params.insert("Parameter18.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_value { + local_var_form_params.insert("Parameter18.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_name { + local_var_form_params.insert("Parameter19.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_value { + local_var_form_params.insert("Parameter19.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_name { + local_var_form_params.insert("Parameter20.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_value { + local_var_form_params.insert("Parameter20.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_name { + local_var_form_params.insert("Parameter21.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_value { + local_var_form_params.insert("Parameter21.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_name { + local_var_form_params.insert("Parameter22.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_value { + local_var_form_params.insert("Parameter22.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_name { + local_var_form_params.insert("Parameter23.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_value { + local_var_form_params.insert("Parameter23.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_name { + local_var_form_params.insert("Parameter24.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_value { + local_var_form_params.insert("Parameter24.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_name { + local_var_form_params.insert("Parameter25.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_value { + local_var_form_params.insert("Parameter25.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_name { + local_var_form_params.insert("Parameter26.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_value { + local_var_form_params.insert("Parameter26.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_name { + local_var_form_params.insert("Parameter27.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_value { + local_var_form_params.insert("Parameter27.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_name { + local_var_form_params.insert("Parameter28.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_value { + local_var_form_params.insert("Parameter28.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_name { + local_var_form_params.insert("Parameter29.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_value { + local_var_form_params.insert("Parameter29.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_name { + local_var_form_params.insert("Parameter30.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_value { + local_var_form_params.insert("Parameter30.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_name { + local_var_form_params.insert("Parameter31.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_value { + local_var_form_params.insert("Parameter31.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_name { + local_var_form_params.insert("Parameter32.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_value { + local_var_form_params.insert("Parameter32.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_name { + local_var_form_params.insert("Parameter33.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_value { + local_var_form_params.insert("Parameter33.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_name { + local_var_form_params.insert("Parameter34.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_value { + local_var_form_params.insert("Parameter34.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_name { + local_var_form_params.insert("Parameter35.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_value { + local_var_form_params.insert("Parameter35.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_name { + local_var_form_params.insert("Parameter36.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_value { + local_var_form_params.insert("Parameter36.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_name { + local_var_form_params.insert("Parameter37.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_value { + local_var_form_params.insert("Parameter37.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_name { + local_var_form_params.insert("Parameter38.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_value { + local_var_form_params.insert("Parameter38.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_name { + local_var_form_params.insert("Parameter39.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_value { + local_var_form_params.insert("Parameter39.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_name { + local_var_form_params.insert("Parameter40.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_value { + local_var_form_params.insert("Parameter40.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_name { + local_var_form_params.insert("Parameter41.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_value { + local_var_form_params.insert("Parameter41.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_name { + local_var_form_params.insert("Parameter42.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_value { + local_var_form_params.insert("Parameter42.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_name { + local_var_form_params.insert("Parameter43.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_value { + local_var_form_params.insert("Parameter43.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_name { + local_var_form_params.insert("Parameter44.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_value { + local_var_form_params.insert("Parameter44.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_name { + local_var_form_params.insert("Parameter45.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_value { + local_var_form_params.insert("Parameter45.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_name { + local_var_form_params.insert("Parameter46.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_value { + local_var_form_params.insert("Parameter46.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_name { + local_var_form_params.insert("Parameter47.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_value { + local_var_form_params.insert("Parameter47.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_name { + local_var_form_params.insert("Parameter48.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_value { + local_var_form_params.insert("Parameter48.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_name { + local_var_form_params.insert("Parameter49.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_value { + local_var_form_params.insert("Parameter49.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_name { + local_var_form_params.insert("Parameter50.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_value { + local_var_form_params.insert("Parameter50.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_name { + local_var_form_params.insert("Parameter51.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_value { + local_var_form_params.insert("Parameter51.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_name { + local_var_form_params.insert("Parameter52.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_value { + local_var_form_params.insert("Parameter52.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_name { + local_var_form_params.insert("Parameter53.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_value { + local_var_form_params.insert("Parameter53.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_name { + local_var_form_params.insert("Parameter54.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_value { + local_var_form_params.insert("Parameter54.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_name { + local_var_form_params.insert("Parameter55.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_value { + local_var_form_params.insert("Parameter55.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_name { + local_var_form_params.insert("Parameter56.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_value { + local_var_form_params.insert("Parameter56.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_name { + local_var_form_params.insert("Parameter57.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_value { + local_var_form_params.insert("Parameter57.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_name { + local_var_form_params.insert("Parameter58.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_value { + local_var_form_params.insert("Parameter58.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_name { + local_var_form_params.insert("Parameter59.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_value { + local_var_form_params.insert("Parameter59.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_name { + local_var_form_params.insert("Parameter60.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_value { + local_var_form_params.insert("Parameter60.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_name { + local_var_form_params.insert("Parameter61.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_value { + local_var_form_params.insert("Parameter61.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_name { + local_var_form_params.insert("Parameter62.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_value { + local_var_form_params.insert("Parameter62.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_name { + local_var_form_params.insert("Parameter63.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_value { + local_var_form_params.insert("Parameter63.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_name { + local_var_form_params.insert("Parameter64.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_value { + local_var_form_params.insert("Parameter64.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_name { + local_var_form_params.insert("Parameter65.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_value { + local_var_form_params.insert("Parameter65.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_name { + local_var_form_params.insert("Parameter66.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_value { + local_var_form_params.insert("Parameter66.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_name { + local_var_form_params.insert("Parameter67.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_value { + local_var_form_params.insert("Parameter67.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_name { + local_var_form_params.insert("Parameter68.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_value { + local_var_form_params.insert("Parameter68.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_name { + local_var_form_params.insert("Parameter69.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_value { + local_var_form_params.insert("Parameter69.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_name { + local_var_form_params.insert("Parameter70.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_value { + local_var_form_params.insert("Parameter70.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_name { + local_var_form_params.insert("Parameter71.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_value { + local_var_form_params.insert("Parameter71.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_name { + local_var_form_params.insert("Parameter72.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_value { + local_var_form_params.insert("Parameter72.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_name { + local_var_form_params.insert("Parameter73.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_value { + local_var_form_params.insert("Parameter73.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_name { + local_var_form_params.insert("Parameter74.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_value { + local_var_form_params.insert("Parameter74.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_name { + local_var_form_params.insert("Parameter75.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_value { + local_var_form_params.insert("Parameter75.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_name { + local_var_form_params.insert("Parameter76.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_value { + local_var_form_params.insert("Parameter76.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_name { + local_var_form_params.insert("Parameter77.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_value { + local_var_form_params.insert("Parameter77.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_name { + local_var_form_params.insert("Parameter78.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_value { + local_var_form_params.insert("Parameter78.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_name { + local_var_form_params.insert("Parameter79.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_value { + local_var_form_params.insert("Parameter79.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_name { + local_var_form_params.insert("Parameter80.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_value { + local_var_form_params.insert("Parameter80.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_name { + local_var_form_params.insert("Parameter81.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_value { + local_var_form_params.insert("Parameter81.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_name { + local_var_form_params.insert("Parameter82.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_value { + local_var_form_params.insert("Parameter82.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_name { + local_var_form_params.insert("Parameter83.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_value { + local_var_form_params.insert("Parameter83.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_name { + local_var_form_params.insert("Parameter84.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_value { + local_var_form_params.insert("Parameter84.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_name { + local_var_form_params.insert("Parameter85.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_value { + local_var_form_params.insert("Parameter85.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_name { + local_var_form_params.insert("Parameter86.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_value { + local_var_form_params.insert("Parameter86.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_name { + local_var_form_params.insert("Parameter87.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_value { + local_var_form_params.insert("Parameter87.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_name { + local_var_form_params.insert("Parameter88.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_value { + local_var_form_params.insert("Parameter88.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_name { + local_var_form_params.insert("Parameter89.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_value { + local_var_form_params.insert("Parameter89.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_name { + local_var_form_params.insert("Parameter90.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_value { + local_var_form_params.insert("Parameter90.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_name { + local_var_form_params.insert("Parameter91.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_value { + local_var_form_params.insert("Parameter91.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_name { + local_var_form_params.insert("Parameter92.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_value { + local_var_form_params.insert("Parameter92.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_name { + local_var_form_params.insert("Parameter93.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_value { + local_var_form_params.insert("Parameter93.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_name { + local_var_form_params.insert("Parameter94.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_value { + local_var_form_params.insert("Parameter94.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_name { + local_var_form_params.insert("Parameter95.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_value { + local_var_form_params.insert("Parameter95.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_name { + local_var_form_params.insert("Parameter96.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_value { + local_var_form_params.insert("Parameter96.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_name { + local_var_form_params.insert("Parameter97.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_value { + local_var_form_params.insert("Parameter97.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_name { + local_var_form_params.insert("Parameter98.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_value { + local_var_form_params.insert("Parameter98.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_name { + local_var_form_params.insert("Parameter99.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_value { + local_var_form_params.insert("Parameter99.Value", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Stop a Siprec using either the SID of the Siprec resource or the `name` used when creating the resource +pub async fn update_siprec(configuration: &configuration::Configuration, params: UpdateSiprecParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + let status = params.status; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Siprec/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_stream_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_stream_api.rs new file mode 100644 index 00000000..51feb687 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_stream_api.rs @@ -0,0 +1,1347 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_stream`] +#[derive(Clone, Debug)] +pub struct CreateStreamParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. + pub call_sid: String, + /// Relative or absolute url where WebSocket connection will be established. + pub url: String, + /// The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. + pub name: Option, + pub track: Option, + /// Absolute URL of the status callback. + pub status_callback: Option, + /// The http method for the status_callback (one of GET, POST). + pub status_callback_method: Option, + /// Parameter name + pub parameter1_period_name: Option, + /// Parameter value + pub parameter1_period_value: Option, + /// Parameter name + pub parameter2_period_name: Option, + /// Parameter value + pub parameter2_period_value: Option, + /// Parameter name + pub parameter3_period_name: Option, + /// Parameter value + pub parameter3_period_value: Option, + /// Parameter name + pub parameter4_period_name: Option, + /// Parameter value + pub parameter4_period_value: Option, + /// Parameter name + pub parameter5_period_name: Option, + /// Parameter value + pub parameter5_period_value: Option, + /// Parameter name + pub parameter6_period_name: Option, + /// Parameter value + pub parameter6_period_value: Option, + /// Parameter name + pub parameter7_period_name: Option, + /// Parameter value + pub parameter7_period_value: Option, + /// Parameter name + pub parameter8_period_name: Option, + /// Parameter value + pub parameter8_period_value: Option, + /// Parameter name + pub parameter9_period_name: Option, + /// Parameter value + pub parameter9_period_value: Option, + /// Parameter name + pub parameter10_period_name: Option, + /// Parameter value + pub parameter10_period_value: Option, + /// Parameter name + pub parameter11_period_name: Option, + /// Parameter value + pub parameter11_period_value: Option, + /// Parameter name + pub parameter12_period_name: Option, + /// Parameter value + pub parameter12_period_value: Option, + /// Parameter name + pub parameter13_period_name: Option, + /// Parameter value + pub parameter13_period_value: Option, + /// Parameter name + pub parameter14_period_name: Option, + /// Parameter value + pub parameter14_period_value: Option, + /// Parameter name + pub parameter15_period_name: Option, + /// Parameter value + pub parameter15_period_value: Option, + /// Parameter name + pub parameter16_period_name: Option, + /// Parameter value + pub parameter16_period_value: Option, + /// Parameter name + pub parameter17_period_name: Option, + /// Parameter value + pub parameter17_period_value: Option, + /// Parameter name + pub parameter18_period_name: Option, + /// Parameter value + pub parameter18_period_value: Option, + /// Parameter name + pub parameter19_period_name: Option, + /// Parameter value + pub parameter19_period_value: Option, + /// Parameter name + pub parameter20_period_name: Option, + /// Parameter value + pub parameter20_period_value: Option, + /// Parameter name + pub parameter21_period_name: Option, + /// Parameter value + pub parameter21_period_value: Option, + /// Parameter name + pub parameter22_period_name: Option, + /// Parameter value + pub parameter22_period_value: Option, + /// Parameter name + pub parameter23_period_name: Option, + /// Parameter value + pub parameter23_period_value: Option, + /// Parameter name + pub parameter24_period_name: Option, + /// Parameter value + pub parameter24_period_value: Option, + /// Parameter name + pub parameter25_period_name: Option, + /// Parameter value + pub parameter25_period_value: Option, + /// Parameter name + pub parameter26_period_name: Option, + /// Parameter value + pub parameter26_period_value: Option, + /// Parameter name + pub parameter27_period_name: Option, + /// Parameter value + pub parameter27_period_value: Option, + /// Parameter name + pub parameter28_period_name: Option, + /// Parameter value + pub parameter28_period_value: Option, + /// Parameter name + pub parameter29_period_name: Option, + /// Parameter value + pub parameter29_period_value: Option, + /// Parameter name + pub parameter30_period_name: Option, + /// Parameter value + pub parameter30_period_value: Option, + /// Parameter name + pub parameter31_period_name: Option, + /// Parameter value + pub parameter31_period_value: Option, + /// Parameter name + pub parameter32_period_name: Option, + /// Parameter value + pub parameter32_period_value: Option, + /// Parameter name + pub parameter33_period_name: Option, + /// Parameter value + pub parameter33_period_value: Option, + /// Parameter name + pub parameter34_period_name: Option, + /// Parameter value + pub parameter34_period_value: Option, + /// Parameter name + pub parameter35_period_name: Option, + /// Parameter value + pub parameter35_period_value: Option, + /// Parameter name + pub parameter36_period_name: Option, + /// Parameter value + pub parameter36_period_value: Option, + /// Parameter name + pub parameter37_period_name: Option, + /// Parameter value + pub parameter37_period_value: Option, + /// Parameter name + pub parameter38_period_name: Option, + /// Parameter value + pub parameter38_period_value: Option, + /// Parameter name + pub parameter39_period_name: Option, + /// Parameter value + pub parameter39_period_value: Option, + /// Parameter name + pub parameter40_period_name: Option, + /// Parameter value + pub parameter40_period_value: Option, + /// Parameter name + pub parameter41_period_name: Option, + /// Parameter value + pub parameter41_period_value: Option, + /// Parameter name + pub parameter42_period_name: Option, + /// Parameter value + pub parameter42_period_value: Option, + /// Parameter name + pub parameter43_period_name: Option, + /// Parameter value + pub parameter43_period_value: Option, + /// Parameter name + pub parameter44_period_name: Option, + /// Parameter value + pub parameter44_period_value: Option, + /// Parameter name + pub parameter45_period_name: Option, + /// Parameter value + pub parameter45_period_value: Option, + /// Parameter name + pub parameter46_period_name: Option, + /// Parameter value + pub parameter46_period_value: Option, + /// Parameter name + pub parameter47_period_name: Option, + /// Parameter value + pub parameter47_period_value: Option, + /// Parameter name + pub parameter48_period_name: Option, + /// Parameter value + pub parameter48_period_value: Option, + /// Parameter name + pub parameter49_period_name: Option, + /// Parameter value + pub parameter49_period_value: Option, + /// Parameter name + pub parameter50_period_name: Option, + /// Parameter value + pub parameter50_period_value: Option, + /// Parameter name + pub parameter51_period_name: Option, + /// Parameter value + pub parameter51_period_value: Option, + /// Parameter name + pub parameter52_period_name: Option, + /// Parameter value + pub parameter52_period_value: Option, + /// Parameter name + pub parameter53_period_name: Option, + /// Parameter value + pub parameter53_period_value: Option, + /// Parameter name + pub parameter54_period_name: Option, + /// Parameter value + pub parameter54_period_value: Option, + /// Parameter name + pub parameter55_period_name: Option, + /// Parameter value + pub parameter55_period_value: Option, + /// Parameter name + pub parameter56_period_name: Option, + /// Parameter value + pub parameter56_period_value: Option, + /// Parameter name + pub parameter57_period_name: Option, + /// Parameter value + pub parameter57_period_value: Option, + /// Parameter name + pub parameter58_period_name: Option, + /// Parameter value + pub parameter58_period_value: Option, + /// Parameter name + pub parameter59_period_name: Option, + /// Parameter value + pub parameter59_period_value: Option, + /// Parameter name + pub parameter60_period_name: Option, + /// Parameter value + pub parameter60_period_value: Option, + /// Parameter name + pub parameter61_period_name: Option, + /// Parameter value + pub parameter61_period_value: Option, + /// Parameter name + pub parameter62_period_name: Option, + /// Parameter value + pub parameter62_period_value: Option, + /// Parameter name + pub parameter63_period_name: Option, + /// Parameter value + pub parameter63_period_value: Option, + /// Parameter name + pub parameter64_period_name: Option, + /// Parameter value + pub parameter64_period_value: Option, + /// Parameter name + pub parameter65_period_name: Option, + /// Parameter value + pub parameter65_period_value: Option, + /// Parameter name + pub parameter66_period_name: Option, + /// Parameter value + pub parameter66_period_value: Option, + /// Parameter name + pub parameter67_period_name: Option, + /// Parameter value + pub parameter67_period_value: Option, + /// Parameter name + pub parameter68_period_name: Option, + /// Parameter value + pub parameter68_period_value: Option, + /// Parameter name + pub parameter69_period_name: Option, + /// Parameter value + pub parameter69_period_value: Option, + /// Parameter name + pub parameter70_period_name: Option, + /// Parameter value + pub parameter70_period_value: Option, + /// Parameter name + pub parameter71_period_name: Option, + /// Parameter value + pub parameter71_period_value: Option, + /// Parameter name + pub parameter72_period_name: Option, + /// Parameter value + pub parameter72_period_value: Option, + /// Parameter name + pub parameter73_period_name: Option, + /// Parameter value + pub parameter73_period_value: Option, + /// Parameter name + pub parameter74_period_name: Option, + /// Parameter value + pub parameter74_period_value: Option, + /// Parameter name + pub parameter75_period_name: Option, + /// Parameter value + pub parameter75_period_value: Option, + /// Parameter name + pub parameter76_period_name: Option, + /// Parameter value + pub parameter76_period_value: Option, + /// Parameter name + pub parameter77_period_name: Option, + /// Parameter value + pub parameter77_period_value: Option, + /// Parameter name + pub parameter78_period_name: Option, + /// Parameter value + pub parameter78_period_value: Option, + /// Parameter name + pub parameter79_period_name: Option, + /// Parameter value + pub parameter79_period_value: Option, + /// Parameter name + pub parameter80_period_name: Option, + /// Parameter value + pub parameter80_period_value: Option, + /// Parameter name + pub parameter81_period_name: Option, + /// Parameter value + pub parameter81_period_value: Option, + /// Parameter name + pub parameter82_period_name: Option, + /// Parameter value + pub parameter82_period_value: Option, + /// Parameter name + pub parameter83_period_name: Option, + /// Parameter value + pub parameter83_period_value: Option, + /// Parameter name + pub parameter84_period_name: Option, + /// Parameter value + pub parameter84_period_value: Option, + /// Parameter name + pub parameter85_period_name: Option, + /// Parameter value + pub parameter85_period_value: Option, + /// Parameter name + pub parameter86_period_name: Option, + /// Parameter value + pub parameter86_period_value: Option, + /// Parameter name + pub parameter87_period_name: Option, + /// Parameter value + pub parameter87_period_value: Option, + /// Parameter name + pub parameter88_period_name: Option, + /// Parameter value + pub parameter88_period_value: Option, + /// Parameter name + pub parameter89_period_name: Option, + /// Parameter value + pub parameter89_period_value: Option, + /// Parameter name + pub parameter90_period_name: Option, + /// Parameter value + pub parameter90_period_value: Option, + /// Parameter name + pub parameter91_period_name: Option, + /// Parameter value + pub parameter91_period_value: Option, + /// Parameter name + pub parameter92_period_name: Option, + /// Parameter value + pub parameter92_period_value: Option, + /// Parameter name + pub parameter93_period_name: Option, + /// Parameter value + pub parameter93_period_value: Option, + /// Parameter name + pub parameter94_period_name: Option, + /// Parameter value + pub parameter94_period_value: Option, + /// Parameter name + pub parameter95_period_name: Option, + /// Parameter value + pub parameter95_period_value: Option, + /// Parameter name + pub parameter96_period_name: Option, + /// Parameter value + pub parameter96_period_value: Option, + /// Parameter name + pub parameter97_period_name: Option, + /// Parameter value + pub parameter97_period_value: Option, + /// Parameter name + pub parameter98_period_name: Option, + /// Parameter value + pub parameter98_period_value: Option, + /// Parameter name + pub parameter99_period_name: Option, + /// Parameter value + pub parameter99_period_value: Option +} + +/// struct for passing parameters to the method [`update_stream`] +#[derive(Clone, Debug)] +pub struct UpdateStreamParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. + pub call_sid: String, + /// The SID of the Stream resource, or the `name` used when creating the resource + pub sid: String, + pub status: String +} + + +/// struct for typed errors of method [`create_stream`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateStreamError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_stream`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateStreamError { + UnknownValue(serde_json::Value), +} + + +/// Create a Stream +pub async fn create_stream(configuration: &configuration::Configuration, params: CreateStreamParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let url = params.url; + let name = params.name; + let track = params.track; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let parameter1_period_name = params.parameter1_period_name; + let parameter1_period_value = params.parameter1_period_value; + let parameter2_period_name = params.parameter2_period_name; + let parameter2_period_value = params.parameter2_period_value; + let parameter3_period_name = params.parameter3_period_name; + let parameter3_period_value = params.parameter3_period_value; + let parameter4_period_name = params.parameter4_period_name; + let parameter4_period_value = params.parameter4_period_value; + let parameter5_period_name = params.parameter5_period_name; + let parameter5_period_value = params.parameter5_period_value; + let parameter6_period_name = params.parameter6_period_name; + let parameter6_period_value = params.parameter6_period_value; + let parameter7_period_name = params.parameter7_period_name; + let parameter7_period_value = params.parameter7_period_value; + let parameter8_period_name = params.parameter8_period_name; + let parameter8_period_value = params.parameter8_period_value; + let parameter9_period_name = params.parameter9_period_name; + let parameter9_period_value = params.parameter9_period_value; + let parameter10_period_name = params.parameter10_period_name; + let parameter10_period_value = params.parameter10_period_value; + let parameter11_period_name = params.parameter11_period_name; + let parameter11_period_value = params.parameter11_period_value; + let parameter12_period_name = params.parameter12_period_name; + let parameter12_period_value = params.parameter12_period_value; + let parameter13_period_name = params.parameter13_period_name; + let parameter13_period_value = params.parameter13_period_value; + let parameter14_period_name = params.parameter14_period_name; + let parameter14_period_value = params.parameter14_period_value; + let parameter15_period_name = params.parameter15_period_name; + let parameter15_period_value = params.parameter15_period_value; + let parameter16_period_name = params.parameter16_period_name; + let parameter16_period_value = params.parameter16_period_value; + let parameter17_period_name = params.parameter17_period_name; + let parameter17_period_value = params.parameter17_period_value; + let parameter18_period_name = params.parameter18_period_name; + let parameter18_period_value = params.parameter18_period_value; + let parameter19_period_name = params.parameter19_period_name; + let parameter19_period_value = params.parameter19_period_value; + let parameter20_period_name = params.parameter20_period_name; + let parameter20_period_value = params.parameter20_period_value; + let parameter21_period_name = params.parameter21_period_name; + let parameter21_period_value = params.parameter21_period_value; + let parameter22_period_name = params.parameter22_period_name; + let parameter22_period_value = params.parameter22_period_value; + let parameter23_period_name = params.parameter23_period_name; + let parameter23_period_value = params.parameter23_period_value; + let parameter24_period_name = params.parameter24_period_name; + let parameter24_period_value = params.parameter24_period_value; + let parameter25_period_name = params.parameter25_period_name; + let parameter25_period_value = params.parameter25_period_value; + let parameter26_period_name = params.parameter26_period_name; + let parameter26_period_value = params.parameter26_period_value; + let parameter27_period_name = params.parameter27_period_name; + let parameter27_period_value = params.parameter27_period_value; + let parameter28_period_name = params.parameter28_period_name; + let parameter28_period_value = params.parameter28_period_value; + let parameter29_period_name = params.parameter29_period_name; + let parameter29_period_value = params.parameter29_period_value; + let parameter30_period_name = params.parameter30_period_name; + let parameter30_period_value = params.parameter30_period_value; + let parameter31_period_name = params.parameter31_period_name; + let parameter31_period_value = params.parameter31_period_value; + let parameter32_period_name = params.parameter32_period_name; + let parameter32_period_value = params.parameter32_period_value; + let parameter33_period_name = params.parameter33_period_name; + let parameter33_period_value = params.parameter33_period_value; + let parameter34_period_name = params.parameter34_period_name; + let parameter34_period_value = params.parameter34_period_value; + let parameter35_period_name = params.parameter35_period_name; + let parameter35_period_value = params.parameter35_period_value; + let parameter36_period_name = params.parameter36_period_name; + let parameter36_period_value = params.parameter36_period_value; + let parameter37_period_name = params.parameter37_period_name; + let parameter37_period_value = params.parameter37_period_value; + let parameter38_period_name = params.parameter38_period_name; + let parameter38_period_value = params.parameter38_period_value; + let parameter39_period_name = params.parameter39_period_name; + let parameter39_period_value = params.parameter39_period_value; + let parameter40_period_name = params.parameter40_period_name; + let parameter40_period_value = params.parameter40_period_value; + let parameter41_period_name = params.parameter41_period_name; + let parameter41_period_value = params.parameter41_period_value; + let parameter42_period_name = params.parameter42_period_name; + let parameter42_period_value = params.parameter42_period_value; + let parameter43_period_name = params.parameter43_period_name; + let parameter43_period_value = params.parameter43_period_value; + let parameter44_period_name = params.parameter44_period_name; + let parameter44_period_value = params.parameter44_period_value; + let parameter45_period_name = params.parameter45_period_name; + let parameter45_period_value = params.parameter45_period_value; + let parameter46_period_name = params.parameter46_period_name; + let parameter46_period_value = params.parameter46_period_value; + let parameter47_period_name = params.parameter47_period_name; + let parameter47_period_value = params.parameter47_period_value; + let parameter48_period_name = params.parameter48_period_name; + let parameter48_period_value = params.parameter48_period_value; + let parameter49_period_name = params.parameter49_period_name; + let parameter49_period_value = params.parameter49_period_value; + let parameter50_period_name = params.parameter50_period_name; + let parameter50_period_value = params.parameter50_period_value; + let parameter51_period_name = params.parameter51_period_name; + let parameter51_period_value = params.parameter51_period_value; + let parameter52_period_name = params.parameter52_period_name; + let parameter52_period_value = params.parameter52_period_value; + let parameter53_period_name = params.parameter53_period_name; + let parameter53_period_value = params.parameter53_period_value; + let parameter54_period_name = params.parameter54_period_name; + let parameter54_period_value = params.parameter54_period_value; + let parameter55_period_name = params.parameter55_period_name; + let parameter55_period_value = params.parameter55_period_value; + let parameter56_period_name = params.parameter56_period_name; + let parameter56_period_value = params.parameter56_period_value; + let parameter57_period_name = params.parameter57_period_name; + let parameter57_period_value = params.parameter57_period_value; + let parameter58_period_name = params.parameter58_period_name; + let parameter58_period_value = params.parameter58_period_value; + let parameter59_period_name = params.parameter59_period_name; + let parameter59_period_value = params.parameter59_period_value; + let parameter60_period_name = params.parameter60_period_name; + let parameter60_period_value = params.parameter60_period_value; + let parameter61_period_name = params.parameter61_period_name; + let parameter61_period_value = params.parameter61_period_value; + let parameter62_period_name = params.parameter62_period_name; + let parameter62_period_value = params.parameter62_period_value; + let parameter63_period_name = params.parameter63_period_name; + let parameter63_period_value = params.parameter63_period_value; + let parameter64_period_name = params.parameter64_period_name; + let parameter64_period_value = params.parameter64_period_value; + let parameter65_period_name = params.parameter65_period_name; + let parameter65_period_value = params.parameter65_period_value; + let parameter66_period_name = params.parameter66_period_name; + let parameter66_period_value = params.parameter66_period_value; + let parameter67_period_name = params.parameter67_period_name; + let parameter67_period_value = params.parameter67_period_value; + let parameter68_period_name = params.parameter68_period_name; + let parameter68_period_value = params.parameter68_period_value; + let parameter69_period_name = params.parameter69_period_name; + let parameter69_period_value = params.parameter69_period_value; + let parameter70_period_name = params.parameter70_period_name; + let parameter70_period_value = params.parameter70_period_value; + let parameter71_period_name = params.parameter71_period_name; + let parameter71_period_value = params.parameter71_period_value; + let parameter72_period_name = params.parameter72_period_name; + let parameter72_period_value = params.parameter72_period_value; + let parameter73_period_name = params.parameter73_period_name; + let parameter73_period_value = params.parameter73_period_value; + let parameter74_period_name = params.parameter74_period_name; + let parameter74_period_value = params.parameter74_period_value; + let parameter75_period_name = params.parameter75_period_name; + let parameter75_period_value = params.parameter75_period_value; + let parameter76_period_name = params.parameter76_period_name; + let parameter76_period_value = params.parameter76_period_value; + let parameter77_period_name = params.parameter77_period_name; + let parameter77_period_value = params.parameter77_period_value; + let parameter78_period_name = params.parameter78_period_name; + let parameter78_period_value = params.parameter78_period_value; + let parameter79_period_name = params.parameter79_period_name; + let parameter79_period_value = params.parameter79_period_value; + let parameter80_period_name = params.parameter80_period_name; + let parameter80_period_value = params.parameter80_period_value; + let parameter81_period_name = params.parameter81_period_name; + let parameter81_period_value = params.parameter81_period_value; + let parameter82_period_name = params.parameter82_period_name; + let parameter82_period_value = params.parameter82_period_value; + let parameter83_period_name = params.parameter83_period_name; + let parameter83_period_value = params.parameter83_period_value; + let parameter84_period_name = params.parameter84_period_name; + let parameter84_period_value = params.parameter84_period_value; + let parameter85_period_name = params.parameter85_period_name; + let parameter85_period_value = params.parameter85_period_value; + let parameter86_period_name = params.parameter86_period_name; + let parameter86_period_value = params.parameter86_period_value; + let parameter87_period_name = params.parameter87_period_name; + let parameter87_period_value = params.parameter87_period_value; + let parameter88_period_name = params.parameter88_period_name; + let parameter88_period_value = params.parameter88_period_value; + let parameter89_period_name = params.parameter89_period_name; + let parameter89_period_value = params.parameter89_period_value; + let parameter90_period_name = params.parameter90_period_name; + let parameter90_period_value = params.parameter90_period_value; + let parameter91_period_name = params.parameter91_period_name; + let parameter91_period_value = params.parameter91_period_value; + let parameter92_period_name = params.parameter92_period_name; + let parameter92_period_value = params.parameter92_period_value; + let parameter93_period_name = params.parameter93_period_name; + let parameter93_period_value = params.parameter93_period_value; + let parameter94_period_name = params.parameter94_period_name; + let parameter94_period_value = params.parameter94_period_value; + let parameter95_period_name = params.parameter95_period_name; + let parameter95_period_value = params.parameter95_period_value; + let parameter96_period_name = params.parameter96_period_name; + let parameter96_period_value = params.parameter96_period_value; + let parameter97_period_name = params.parameter97_period_name; + let parameter97_period_value = params.parameter97_period_value; + let parameter98_period_name = params.parameter98_period_name; + let parameter98_period_value = params.parameter98_period_value; + let parameter99_period_name = params.parameter99_period_name; + let parameter99_period_value = params.parameter99_period_value; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Url", url.to_string()); + if let Some(local_var_param_value) = name { + local_var_form_params.insert("Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = track { + local_var_form_params.insert("Track", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_name { + local_var_form_params.insert("Parameter1.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter1_period_value { + local_var_form_params.insert("Parameter1.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_name { + local_var_form_params.insert("Parameter2.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter2_period_value { + local_var_form_params.insert("Parameter2.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_name { + local_var_form_params.insert("Parameter3.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter3_period_value { + local_var_form_params.insert("Parameter3.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_name { + local_var_form_params.insert("Parameter4.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter4_period_value { + local_var_form_params.insert("Parameter4.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_name { + local_var_form_params.insert("Parameter5.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter5_period_value { + local_var_form_params.insert("Parameter5.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_name { + local_var_form_params.insert("Parameter6.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter6_period_value { + local_var_form_params.insert("Parameter6.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_name { + local_var_form_params.insert("Parameter7.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter7_period_value { + local_var_form_params.insert("Parameter7.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_name { + local_var_form_params.insert("Parameter8.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter8_period_value { + local_var_form_params.insert("Parameter8.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_name { + local_var_form_params.insert("Parameter9.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter9_period_value { + local_var_form_params.insert("Parameter9.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_name { + local_var_form_params.insert("Parameter10.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter10_period_value { + local_var_form_params.insert("Parameter10.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_name { + local_var_form_params.insert("Parameter11.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter11_period_value { + local_var_form_params.insert("Parameter11.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_name { + local_var_form_params.insert("Parameter12.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter12_period_value { + local_var_form_params.insert("Parameter12.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_name { + local_var_form_params.insert("Parameter13.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter13_period_value { + local_var_form_params.insert("Parameter13.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_name { + local_var_form_params.insert("Parameter14.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter14_period_value { + local_var_form_params.insert("Parameter14.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_name { + local_var_form_params.insert("Parameter15.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter15_period_value { + local_var_form_params.insert("Parameter15.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_name { + local_var_form_params.insert("Parameter16.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter16_period_value { + local_var_form_params.insert("Parameter16.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_name { + local_var_form_params.insert("Parameter17.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter17_period_value { + local_var_form_params.insert("Parameter17.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_name { + local_var_form_params.insert("Parameter18.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter18_period_value { + local_var_form_params.insert("Parameter18.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_name { + local_var_form_params.insert("Parameter19.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter19_period_value { + local_var_form_params.insert("Parameter19.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_name { + local_var_form_params.insert("Parameter20.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter20_period_value { + local_var_form_params.insert("Parameter20.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_name { + local_var_form_params.insert("Parameter21.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter21_period_value { + local_var_form_params.insert("Parameter21.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_name { + local_var_form_params.insert("Parameter22.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter22_period_value { + local_var_form_params.insert("Parameter22.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_name { + local_var_form_params.insert("Parameter23.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter23_period_value { + local_var_form_params.insert("Parameter23.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_name { + local_var_form_params.insert("Parameter24.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter24_period_value { + local_var_form_params.insert("Parameter24.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_name { + local_var_form_params.insert("Parameter25.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter25_period_value { + local_var_form_params.insert("Parameter25.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_name { + local_var_form_params.insert("Parameter26.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter26_period_value { + local_var_form_params.insert("Parameter26.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_name { + local_var_form_params.insert("Parameter27.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter27_period_value { + local_var_form_params.insert("Parameter27.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_name { + local_var_form_params.insert("Parameter28.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter28_period_value { + local_var_form_params.insert("Parameter28.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_name { + local_var_form_params.insert("Parameter29.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter29_period_value { + local_var_form_params.insert("Parameter29.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_name { + local_var_form_params.insert("Parameter30.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter30_period_value { + local_var_form_params.insert("Parameter30.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_name { + local_var_form_params.insert("Parameter31.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter31_period_value { + local_var_form_params.insert("Parameter31.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_name { + local_var_form_params.insert("Parameter32.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter32_period_value { + local_var_form_params.insert("Parameter32.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_name { + local_var_form_params.insert("Parameter33.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter33_period_value { + local_var_form_params.insert("Parameter33.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_name { + local_var_form_params.insert("Parameter34.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter34_period_value { + local_var_form_params.insert("Parameter34.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_name { + local_var_form_params.insert("Parameter35.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter35_period_value { + local_var_form_params.insert("Parameter35.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_name { + local_var_form_params.insert("Parameter36.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter36_period_value { + local_var_form_params.insert("Parameter36.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_name { + local_var_form_params.insert("Parameter37.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter37_period_value { + local_var_form_params.insert("Parameter37.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_name { + local_var_form_params.insert("Parameter38.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter38_period_value { + local_var_form_params.insert("Parameter38.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_name { + local_var_form_params.insert("Parameter39.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter39_period_value { + local_var_form_params.insert("Parameter39.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_name { + local_var_form_params.insert("Parameter40.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter40_period_value { + local_var_form_params.insert("Parameter40.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_name { + local_var_form_params.insert("Parameter41.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter41_period_value { + local_var_form_params.insert("Parameter41.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_name { + local_var_form_params.insert("Parameter42.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter42_period_value { + local_var_form_params.insert("Parameter42.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_name { + local_var_form_params.insert("Parameter43.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter43_period_value { + local_var_form_params.insert("Parameter43.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_name { + local_var_form_params.insert("Parameter44.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter44_period_value { + local_var_form_params.insert("Parameter44.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_name { + local_var_form_params.insert("Parameter45.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter45_period_value { + local_var_form_params.insert("Parameter45.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_name { + local_var_form_params.insert("Parameter46.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter46_period_value { + local_var_form_params.insert("Parameter46.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_name { + local_var_form_params.insert("Parameter47.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter47_period_value { + local_var_form_params.insert("Parameter47.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_name { + local_var_form_params.insert("Parameter48.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter48_period_value { + local_var_form_params.insert("Parameter48.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_name { + local_var_form_params.insert("Parameter49.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter49_period_value { + local_var_form_params.insert("Parameter49.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_name { + local_var_form_params.insert("Parameter50.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter50_period_value { + local_var_form_params.insert("Parameter50.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_name { + local_var_form_params.insert("Parameter51.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter51_period_value { + local_var_form_params.insert("Parameter51.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_name { + local_var_form_params.insert("Parameter52.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter52_period_value { + local_var_form_params.insert("Parameter52.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_name { + local_var_form_params.insert("Parameter53.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter53_period_value { + local_var_form_params.insert("Parameter53.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_name { + local_var_form_params.insert("Parameter54.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter54_period_value { + local_var_form_params.insert("Parameter54.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_name { + local_var_form_params.insert("Parameter55.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter55_period_value { + local_var_form_params.insert("Parameter55.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_name { + local_var_form_params.insert("Parameter56.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter56_period_value { + local_var_form_params.insert("Parameter56.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_name { + local_var_form_params.insert("Parameter57.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter57_period_value { + local_var_form_params.insert("Parameter57.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_name { + local_var_form_params.insert("Parameter58.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter58_period_value { + local_var_form_params.insert("Parameter58.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_name { + local_var_form_params.insert("Parameter59.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter59_period_value { + local_var_form_params.insert("Parameter59.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_name { + local_var_form_params.insert("Parameter60.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter60_period_value { + local_var_form_params.insert("Parameter60.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_name { + local_var_form_params.insert("Parameter61.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter61_period_value { + local_var_form_params.insert("Parameter61.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_name { + local_var_form_params.insert("Parameter62.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter62_period_value { + local_var_form_params.insert("Parameter62.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_name { + local_var_form_params.insert("Parameter63.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter63_period_value { + local_var_form_params.insert("Parameter63.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_name { + local_var_form_params.insert("Parameter64.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter64_period_value { + local_var_form_params.insert("Parameter64.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_name { + local_var_form_params.insert("Parameter65.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter65_period_value { + local_var_form_params.insert("Parameter65.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_name { + local_var_form_params.insert("Parameter66.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter66_period_value { + local_var_form_params.insert("Parameter66.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_name { + local_var_form_params.insert("Parameter67.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter67_period_value { + local_var_form_params.insert("Parameter67.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_name { + local_var_form_params.insert("Parameter68.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter68_period_value { + local_var_form_params.insert("Parameter68.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_name { + local_var_form_params.insert("Parameter69.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter69_period_value { + local_var_form_params.insert("Parameter69.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_name { + local_var_form_params.insert("Parameter70.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter70_period_value { + local_var_form_params.insert("Parameter70.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_name { + local_var_form_params.insert("Parameter71.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter71_period_value { + local_var_form_params.insert("Parameter71.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_name { + local_var_form_params.insert("Parameter72.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter72_period_value { + local_var_form_params.insert("Parameter72.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_name { + local_var_form_params.insert("Parameter73.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter73_period_value { + local_var_form_params.insert("Parameter73.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_name { + local_var_form_params.insert("Parameter74.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter74_period_value { + local_var_form_params.insert("Parameter74.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_name { + local_var_form_params.insert("Parameter75.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter75_period_value { + local_var_form_params.insert("Parameter75.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_name { + local_var_form_params.insert("Parameter76.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter76_period_value { + local_var_form_params.insert("Parameter76.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_name { + local_var_form_params.insert("Parameter77.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter77_period_value { + local_var_form_params.insert("Parameter77.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_name { + local_var_form_params.insert("Parameter78.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter78_period_value { + local_var_form_params.insert("Parameter78.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_name { + local_var_form_params.insert("Parameter79.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter79_period_value { + local_var_form_params.insert("Parameter79.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_name { + local_var_form_params.insert("Parameter80.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter80_period_value { + local_var_form_params.insert("Parameter80.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_name { + local_var_form_params.insert("Parameter81.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter81_period_value { + local_var_form_params.insert("Parameter81.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_name { + local_var_form_params.insert("Parameter82.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter82_period_value { + local_var_form_params.insert("Parameter82.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_name { + local_var_form_params.insert("Parameter83.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter83_period_value { + local_var_form_params.insert("Parameter83.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_name { + local_var_form_params.insert("Parameter84.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter84_period_value { + local_var_form_params.insert("Parameter84.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_name { + local_var_form_params.insert("Parameter85.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter85_period_value { + local_var_form_params.insert("Parameter85.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_name { + local_var_form_params.insert("Parameter86.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter86_period_value { + local_var_form_params.insert("Parameter86.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_name { + local_var_form_params.insert("Parameter87.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter87_period_value { + local_var_form_params.insert("Parameter87.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_name { + local_var_form_params.insert("Parameter88.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter88_period_value { + local_var_form_params.insert("Parameter88.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_name { + local_var_form_params.insert("Parameter89.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter89_period_value { + local_var_form_params.insert("Parameter89.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_name { + local_var_form_params.insert("Parameter90.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter90_period_value { + local_var_form_params.insert("Parameter90.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_name { + local_var_form_params.insert("Parameter91.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter91_period_value { + local_var_form_params.insert("Parameter91.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_name { + local_var_form_params.insert("Parameter92.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter92_period_value { + local_var_form_params.insert("Parameter92.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_name { + local_var_form_params.insert("Parameter93.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter93_period_value { + local_var_form_params.insert("Parameter93.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_name { + local_var_form_params.insert("Parameter94.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter94_period_value { + local_var_form_params.insert("Parameter94.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_name { + local_var_form_params.insert("Parameter95.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter95_period_value { + local_var_form_params.insert("Parameter95.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_name { + local_var_form_params.insert("Parameter96.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter96_period_value { + local_var_form_params.insert("Parameter96.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_name { + local_var_form_params.insert("Parameter97.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter97_period_value { + local_var_form_params.insert("Parameter97.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_name { + local_var_form_params.insert("Parameter98.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter98_period_value { + local_var_form_params.insert("Parameter98.Value", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_name { + local_var_form_params.insert("Parameter99.Name", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = parameter99_period_value { + local_var_form_params.insert("Parameter99.Value", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Stop a Stream using either the SID of the Stream resource or the `name` used when creating the resource +pub async fn update_stream(configuration: &configuration::Configuration, params: UpdateStreamParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + let status = params.status; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Streams/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Status", status.to_string()); + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_this_month_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_this_month_api.rs new file mode 100644 index 00000000..6306f378 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_this_month_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_this_month`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordThisMonthParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_this_month`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordThisMonthError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_this_month(configuration: &configuration::Configuration, params: ListUsageRecordThisMonthParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_today_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_today_api.rs new file mode 100644 index 00000000..bb8d6bd6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_today_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_today`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordTodayParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_today`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordTodayError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_today(configuration: &configuration::Configuration, params: ListUsageRecordTodayParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_token_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_token_api.rs new file mode 100644 index 00000000..0d5887a8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_token_api.rs @@ -0,0 +1,75 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_token`] +#[derive(Clone, Debug)] +pub struct CreateTokenParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). + pub ttl: Option +} + + +/// struct for typed errors of method [`create_token`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateTokenError { + UnknownValue(serde_json::Value), +} + + +/// Create a new token for ICE servers +pub async fn create_token(configuration: &configuration::Configuration, params: CreateTokenParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let ttl = params.ttl; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Tokens.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = ttl { + local_var_form_params.insert("Ttl", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_toll_free_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_toll_free_api.rs new file mode 100644 index 00000000..ef517179 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_toll_free_api.rs @@ -0,0 +1,472 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_incoming_phone_number_toll_free`] +#[derive(Clone, Debug)] +pub struct CreateIncomingPhoneNumberTollFreeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The phone number to purchase specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234. + pub phone_number: String, + /// The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + pub api_version: Option, + /// A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number. + pub friendly_name: Option, + /// The SID of the application that should handle SMS messages sent to the new phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + pub sms_application_sid: Option, + /// The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_fallback_method: Option, + /// The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + pub sms_fallback_url: Option, + /// The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub sms_method: Option, + /// The URL we should call when the new phone number receives an incoming SMS message. + pub sms_url: Option, + /// The URL we should call using the `status_callback_method` to send status information to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + pub status_callback_method: Option, + /// The SID of the application we should use to handle calls to the new phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + pub voice_application_sid: Option, + /// Whether to lookup the caller's name from the CNAM database and post it to your app. Can be: `true` or `false` and defaults to `false`. + pub voice_caller_id_lookup: Option, + /// The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_fallback_method: Option, + /// The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + pub voice_fallback_url: Option, + /// The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + pub voice_method: Option, + /// The URL that we should call to answer a call to the new phone number. The `voice_url` will not be called if a `voice_application_sid` or a `trunk_sid` is set. + pub voice_url: Option, + /// The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. + pub identity_sid: Option, + /// The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + pub address_sid: Option, + pub emergency_status: Option, + /// The SID of the emergency address configuration to use for emergency calling from the new phone number. + pub emergency_address_sid: Option, + /// The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + pub trunk_sid: Option, + pub voice_receive_mode: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + pub bundle_sid: Option +} + +/// struct for passing parameters to the method [`list_available_phone_number_toll_free`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberTollFreeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_incoming_phone_number_toll_free`] +#[derive(Clone, Debug)] +pub struct ListIncomingPhoneNumberTollFreeParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + pub account_sid: String, + /// Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// A string that identifies the resources to read. + pub friendly_name: Option, + /// The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + pub phone_number: Option, + /// Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + pub origin: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`create_incoming_phone_number_toll_free`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateIncomingPhoneNumberTollFreeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_available_phone_number_toll_free`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberTollFreeError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_incoming_phone_number_toll_free`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListIncomingPhoneNumberTollFreeError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_incoming_phone_number_toll_free(configuration: &configuration::Configuration, params: CreateIncomingPhoneNumberTollFreeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let phone_number = params.phone_number; + let api_version = params.api_version; + let friendly_name = params.friendly_name; + let sms_application_sid = params.sms_application_sid; + let sms_fallback_method = params.sms_fallback_method; + let sms_fallback_url = params.sms_fallback_url; + let sms_method = params.sms_method; + let sms_url = params.sms_url; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + let voice_application_sid = params.voice_application_sid; + let voice_caller_id_lookup = params.voice_caller_id_lookup; + let voice_fallback_method = params.voice_fallback_method; + let voice_fallback_url = params.voice_fallback_url; + let voice_method = params.voice_method; + let voice_url = params.voice_url; + let identity_sid = params.identity_sid; + let address_sid = params.address_sid; + let emergency_status = params.emergency_status; + let emergency_address_sid = params.emergency_address_sid; + let trunk_sid = params.trunk_sid; + let voice_receive_mode = params.voice_receive_mode; + let bundle_sid = params.bundle_sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = api_version { + local_var_form_params.insert("ApiVersion", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_application_sid { + local_var_form_params.insert("SmsApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_method { + local_var_form_params.insert("SmsFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_fallback_url { + local_var_form_params.insert("SmsFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_method { + local_var_form_params.insert("SmsMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = sms_url { + local_var_form_params.insert("SmsUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_application_sid { + local_var_form_params.insert("VoiceApplicationSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_caller_id_lookup { + local_var_form_params.insert("VoiceCallerIdLookup", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_method { + local_var_form_params.insert("VoiceFallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_fallback_url { + local_var_form_params.insert("VoiceFallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_method { + local_var_form_params.insert("VoiceMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_url { + local_var_form_params.insert("VoiceUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = identity_sid { + local_var_form_params.insert("IdentitySid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = address_sid { + local_var_form_params.insert("AddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_status { + local_var_form_params.insert("EmergencyStatus", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = emergency_address_sid { + local_var_form_params.insert("EmergencyAddressSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trunk_sid { + local_var_form_params.insert("TrunkSid", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = voice_receive_mode { + local_var_form_params.insert("VoiceReceiveMode", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = bundle_sid { + local_var_form_params.insert("BundleSid", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_available_phone_number_toll_free(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberTollFreeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_incoming_phone_number_toll_free(configuration: &configuration::Configuration, params: ListIncomingPhoneNumberTollFreeParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let beta = params.beta; + let friendly_name = params.friendly_name; + let phone_number = params.phone_number; + let origin = params.origin; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = friendly_name { + local_var_req_builder = local_var_req_builder.query(&[("FriendlyName", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = phone_number { + local_var_req_builder = local_var_req_builder.query(&[("PhoneNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = origin { + local_var_req_builder = local_var_req_builder.query(&[("Origin", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_transcription_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_transcription_api.rs new file mode 100644 index 00000000..7fbfdd67 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_transcription_api.rs @@ -0,0 +1,369 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`delete_recording_transcription`] +#[derive(Clone, Debug)] +pub struct DeleteRecordingTranscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. + pub account_sid: String, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. + pub recording_sid: String, + /// The Twilio-provided string that uniquely identifies the Transcription resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`delete_transcription`] +#[derive(Clone, Debug)] +pub struct DeleteTranscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Transcription resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_recording_transcription`] +#[derive(Clone, Debug)] +pub struct FetchRecordingTranscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. + pub account_sid: String, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. + pub recording_sid: String, + /// The Twilio-provided string that uniquely identifies the Transcription resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_transcription`] +#[derive(Clone, Debug)] +pub struct FetchTranscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the Transcription resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_recording_transcription`] +#[derive(Clone, Debug)] +pub struct ListRecordingTranscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. + pub account_sid: String, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. + pub recording_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`list_transcription`] +#[derive(Clone, Debug)] +pub struct ListTranscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. + pub account_sid: String, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`delete_recording_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteRecordingTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_recording_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchRecordingTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_recording_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListRecordingTranscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_transcription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListTranscriptionError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn delete_recording_transcription(configuration: &configuration::Configuration, params: DeleteRecordingTranscriptionParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let recording_sid = params.recording_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), RecordingSid=crate::apis::urlencode(recording_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a transcription from the account used to make the request +pub async fn delete_transcription(configuration: &configuration::Configuration, params: DeleteTranscriptionParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn fetch_recording_transcription(configuration: &configuration::Configuration, params: FetchRecordingTranscriptionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let recording_sid = params.recording_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), RecordingSid=crate::apis::urlencode(recording_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch an instance of a Transcription +pub async fn fetch_transcription(configuration: &configuration::Configuration, params: FetchTranscriptionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn list_recording_transcription(configuration: &configuration::Configuration, params: ListRecordingTranscriptionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let recording_sid = params.recording_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), RecordingSid=crate::apis::urlencode(recording_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of transcriptions belonging to the account used to make the request +pub async fn list_transcription(configuration: &configuration::Configuration, params: ListTranscriptionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Transcriptions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_trigger_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_trigger_api.rs new file mode 100644 index 00000000..8e34f7f3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_trigger_api.rs @@ -0,0 +1,363 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_usage_trigger`] +#[derive(Clone, Debug)] +pub struct CreateUsageTriggerParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + pub account_sid: String, + /// The URL we should call using `callback_method` when the trigger fires. + pub callback_url: String, + /// The usage value at which the trigger should fire. For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`. + pub trigger_value: String, + pub usage_category: String, + /// The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. + pub callback_method: Option, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option, + pub recurring: Option, + pub trigger_by: Option +} + +/// struct for passing parameters to the method [`delete_usage_trigger`] +#[derive(Clone, Debug)] +pub struct DeleteUsageTriggerParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. + pub sid: String +} + +/// struct for passing parameters to the method [`fetch_usage_trigger`] +#[derive(Clone, Debug)] +pub struct FetchUsageTriggerParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. + pub sid: String +} + +/// struct for passing parameters to the method [`list_usage_trigger`] +#[derive(Clone, Debug)] +pub struct ListUsageTriggerParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. + pub account_sid: String, + /// The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers. + pub recurring: Option, + /// The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). + pub trigger_by: Option, + /// The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). + pub usage_category: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + +/// struct for passing parameters to the method [`update_usage_trigger`] +#[derive(Clone, Debug)] +pub struct UpdateUsageTriggerParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. + pub account_sid: String, + /// The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. + pub sid: String, + /// The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. + pub callback_method: Option, + /// The URL we should call using `callback_method` when the trigger fires. + pub callback_url: Option, + /// A descriptive string that you create to describe the resource. It can be up to 64 characters long. + pub friendly_name: Option +} + + +/// struct for typed errors of method [`create_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`fetch_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum FetchUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`list_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageTriggerError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`update_usage_trigger`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum UpdateUsageTriggerError { + UnknownValue(serde_json::Value), +} + + +/// Create a new UsageTrigger +pub async fn create_usage_trigger(configuration: &configuration::Configuration, params: CreateUsageTriggerParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let callback_url = params.callback_url; + let trigger_value = params.trigger_value; + let usage_category = params.usage_category; + let callback_method = params.callback_method; + let friendly_name = params.friendly_name; + let recurring = params.recurring; + let trigger_by = params.trigger_by; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("CallbackUrl", callback_url.to_string()); + local_var_form_params.insert("TriggerValue", trigger_value.to_string()); + local_var_form_params.insert("UsageCategory", usage_category.to_string()); + if let Some(local_var_param_value) = callback_method { + local_var_form_params.insert("CallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = recurring { + local_var_form_params.insert("Recurring", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = trigger_by { + local_var_form_params.insert("TriggerBy", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// +pub async fn delete_usage_trigger(configuration: &configuration::Configuration, params: DeleteUsageTriggerParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Fetch and instance of a usage-trigger +pub async fn fetch_usage_trigger(configuration: &configuration::Configuration, params: FetchUsageTriggerParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Retrieve a list of usage-triggers belonging to the account used to make the request +pub async fn list_usage_trigger(configuration: &configuration::Configuration, params: ListUsageTriggerParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let recurring = params.recurring; + let trigger_by = params.trigger_by; + let usage_category = params.usage_category; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = recurring { + local_var_req_builder = local_var_req_builder.query(&[("Recurring", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = trigger_by { + local_var_req_builder = local_var_req_builder.query(&[("TriggerBy", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = usage_category { + local_var_req_builder = local_var_req_builder.query(&[("UsageCategory", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Update an instance of a usage trigger +pub async fn update_usage_trigger(configuration: &configuration::Configuration, params: UpdateUsageTriggerParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let sid = params.sid; + let callback_method = params.callback_method; + let callback_url = params.callback_url; + let friendly_name = params.friendly_name; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + if let Some(local_var_param_value) = callback_method { + local_var_form_params.insert("CallbackMethod", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = callback_url { + local_var_form_params.insert("CallbackUrl", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_user_defined_message_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_user_defined_message_api.rs new file mode 100644 index 00000000..24a79676 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_user_defined_message_api.rs @@ -0,0 +1,82 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_user_defined_message`] +#[derive(Clone, Debug)] +pub struct CreateUserDefinedMessageParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. + pub call_sid: String, + /// The User Defined Message in the form of URL-encoded JSON string. + pub content: String, + /// A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. + pub idempotency_key: Option +} + + +/// struct for typed errors of method [`create_user_defined_message`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateUserDefinedMessageError { + UnknownValue(serde_json::Value), +} + + +/// Create a new User Defined Message for the given Call SID. +pub async fn create_user_defined_message(configuration: &configuration::Configuration, params: CreateUserDefinedMessageParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let content = params.content; + let idempotency_key = params.idempotency_key; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessages.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Content", content.to_string()); + if let Some(local_var_param_value) = idempotency_key { + local_var_form_params.insert("IdempotencyKey", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_user_defined_message_subscription_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_user_defined_message_subscription_api.rs new file mode 100644 index 00000000..08d90a69 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_user_defined_message_subscription_api.rs @@ -0,0 +1,143 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_user_defined_message_subscription`] +#[derive(Clone, Debug)] +pub struct CreateUserDefinedMessageSubscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Messages subscription is associated with. This refers to the Call SID that is producing the user defined messages. + pub call_sid: String, + /// The URL we should call using the `method` to send user defined events to your application. URLs must contain a valid hostname (underscores are not permitted). + pub callback: String, + /// A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. + pub idempotency_key: Option, + /// The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`. + pub method: Option +} + +/// struct for passing parameters to the method [`delete_user_defined_message_subscription`] +#[derive(Clone, Debug)] +pub struct DeleteUserDefinedMessageSubscriptionParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + pub account_sid: String, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. + pub call_sid: String, + /// The SID that uniquely identifies this User Defined Message Subscription. + pub sid: String +} + + +/// struct for typed errors of method [`create_user_defined_message_subscription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateUserDefinedMessageSubscriptionError { + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_user_defined_message_subscription`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteUserDefinedMessageSubscriptionError { + UnknownValue(serde_json::Value), +} + + +/// Subscribe to User Defined Messages for a given Call SID. +pub async fn create_user_defined_message_subscription(configuration: &configuration::Configuration, params: CreateUserDefinedMessageSubscriptionParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let callback = params.callback; + let idempotency_key = params.idempotency_key; + let method = params.method; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("Callback", callback.to_string()); + if let Some(local_var_param_value) = idempotency_key { + local_var_form_params.insert("IdempotencyKey", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = method { + local_var_form_params.insert("Method", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + +/// Delete a specific User Defined Message Subscription. +pub async fn delete_user_defined_message_subscription(configuration: &configuration::Configuration, params: DeleteUserDefinedMessageSubscriptionParams) -> Result<(), Error> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let call_sid = params.call_sid; + let sid = params.sid; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/UserDefinedMessageSubscriptions/{Sid}.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CallSid=crate::apis::urlencode(call_sid), Sid=crate::apis::urlencode(sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + Ok(()) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_validation_request_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_validation_request_api.rs new file mode 100644 index 00000000..765f3756 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_validation_request_api.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`create_validation_request`] +#[derive(Clone, Debug)] +pub struct CreateValidationRequestParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. + pub account_sid: String, + /// The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + pub phone_number: String, + /// A descriptive string that you create to describe the new caller ID resource. It can be up to 64 characters long. The default value is a formatted version of the phone number. + pub friendly_name: Option, + /// The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. + pub call_delay: Option, + /// The digits to dial after connecting the verification call. + pub extension: Option, + /// The URL we should call using the `status_callback_method` to send status information about the verification process to your application. + pub status_callback: Option, + /// The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. + pub status_callback_method: Option +} + + +/// struct for typed errors of method [`create_validation_request`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateValidationRequestError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn create_validation_request(configuration: &configuration::Configuration, params: CreateValidationRequestParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let phone_number = params.phone_number; + let friendly_name = params.friendly_name; + let call_delay = params.call_delay; + let extension = params.extension; + let status_callback = params.status_callback; + let status_callback_method = params.status_callback_method; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + let mut local_var_form_params = std::collections::HashMap::new(); + local_var_form_params.insert("PhoneNumber", phone_number.to_string()); + if let Some(local_var_param_value) = friendly_name { + local_var_form_params.insert("FriendlyName", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = call_delay { + local_var_form_params.insert("CallDelay", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = extension { + local_var_form_params.insert("Extension", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback { + local_var_form_params.insert("StatusCallback", local_var_param_value.to_string()); + } + if let Some(local_var_param_value) = status_callback_method { + local_var_form_params.insert("StatusCallbackMethod", local_var_param_value.to_string()); + } + local_var_req_builder = local_var_req_builder.form(&local_var_form_params); + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_voip_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_voip_api.rs new file mode 100644 index 00000000..0bb8ee94 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_voip_api.rs @@ -0,0 +1,196 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_available_phone_number_voip`] +#[derive(Clone, Debug)] +pub struct ListAvailablePhoneNumberVoipParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + pub account_sid: String, + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country from which to read phone numbers. + pub country_code: String, + /// The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + pub area_code: Option, + /// The pattern on which to match phone numbers. Valid characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any single digit. For examples, see [Example 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3). If specified, this value must have at least two characters. + pub contains: Option, + /// Whether the phone numbers can receive text messages. Can be: `true` or `false`. + pub sms_enabled: Option, + /// Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + pub mms_enabled: Option, + /// Whether the phone numbers can receive calls. Can be: `true` or `false`. + pub voice_enabled: Option, + /// Whether to exclude phone numbers that require an [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_all_address_required: Option, + /// Whether to exclude phone numbers that require a local [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_local_address_required: Option, + /// Whether to exclude phone numbers that require a foreign [Address](https://www.twilio.com/docs/usage/api/address). Can be: `true` or `false` and the default is `false`. + pub exclude_foreign_address_required: Option, + /// Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + pub beta: Option, + /// Given a phone number, find a geographically close number within `distance` miles. Distance defaults to 25 miles. Applies to only phone numbers in the US and Canada. + pub near_number: Option, + /// Given a latitude/longitude pair `lat,long` find geographically close numbers within `distance` miles. Applies to only phone numbers in the US and Canada. + pub near_lat_long: Option, + /// The search radius, in miles, for a `near_` query. Can be up to `500` and the default is `25`. Applies to only phone numbers in the US and Canada. + pub distance: Option, + /// Limit results to a particular postal code. Given a phone number, search within the same postal code as that number. Applies to only phone numbers in the US and Canada. + pub in_postal_code: Option, + /// Limit results to a particular region, state, or province. Given a phone number, search within the same region as that number. Applies to only phone numbers in the US and Canada. + pub in_region: Option, + /// Limit results to a specific rate center, or given a phone number search within the same rate center as that number. Requires `in_lata` to be set as well. Applies to only phone numbers in the US and Canada. + pub in_rate_center: Option, + /// Limit results to a specific local access and transport area ([LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area)). Given a phone number, search within the same [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) as that number. Applies to only phone numbers in the US and Canada. + pub in_lata: Option, + /// Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + pub in_locality: Option, + /// Whether the phone numbers can receive faxes. Can be: `true` or `false`. + pub fax_enabled: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_available_phone_number_voip`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListAvailablePhoneNumberVoipError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_available_phone_number_voip(configuration: &configuration::Configuration, params: ListAvailablePhoneNumberVoipParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let country_code = params.country_code; + let area_code = params.area_code; + let contains = params.contains; + let sms_enabled = params.sms_enabled; + let mms_enabled = params.mms_enabled; + let voice_enabled = params.voice_enabled; + let exclude_all_address_required = params.exclude_all_address_required; + let exclude_local_address_required = params.exclude_local_address_required; + let exclude_foreign_address_required = params.exclude_foreign_address_required; + let beta = params.beta; + let near_number = params.near_number; + let near_lat_long = params.near_lat_long; + let distance = params.distance; + let in_postal_code = params.in_postal_code; + let in_region = params.in_region; + let in_rate_center = params.in_rate_center; + let in_lata = params.in_lata; + let in_locality = params.in_locality; + let fax_enabled = params.fax_enabled; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid), CountryCode=crate::apis::urlencode(country_code)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = area_code { + local_var_req_builder = local_var_req_builder.query(&[("AreaCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = contains { + local_var_req_builder = local_var_req_builder.query(&[("Contains", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = sms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("SmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = mms_enabled { + local_var_req_builder = local_var_req_builder.query(&[("MmsEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = voice_enabled { + local_var_req_builder = local_var_req_builder.query(&[("VoiceEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_all_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeAllAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_local_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeLocalAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = exclude_foreign_address_required { + local_var_req_builder = local_var_req_builder.query(&[("ExcludeForeignAddressRequired", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = beta { + local_var_req_builder = local_var_req_builder.query(&[("Beta", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_number { + local_var_req_builder = local_var_req_builder.query(&[("NearNumber", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = near_lat_long { + local_var_req_builder = local_var_req_builder.query(&[("NearLatLong", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = distance { + local_var_req_builder = local_var_req_builder.query(&[("Distance", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_postal_code { + local_var_req_builder = local_var_req_builder.query(&[("InPostalCode", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_region { + local_var_req_builder = local_var_req_builder.query(&[("InRegion", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_rate_center { + local_var_req_builder = local_var_req_builder.query(&[("InRateCenter", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_lata { + local_var_req_builder = local_var_req_builder.query(&[("InLata", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = in_locality { + local_var_req_builder = local_var_req_builder.query(&[("InLocality", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = fax_enabled { + local_var_req_builder = local_var_req_builder.query(&[("FaxEnabled", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_yearly_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_yearly_api.rs new file mode 100644 index 00000000..643a25ac --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_yearly_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_yearly`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordYearlyParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_yearly`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordYearlyError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_yearly(configuration: &configuration::Configuration, params: ListUsageRecordYearlyParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_yesterday_api.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_yesterday_api.rs new file mode 100644 index 00000000..53a36a33 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/api20100401_yesterday_api.rs @@ -0,0 +1,109 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; + +use crate::apis::ResponseContent; +use super::{Error, configuration}; + +/// struct for passing parameters to the method [`list_usage_record_yesterday`] +#[derive(Clone, Debug)] +pub struct ListUsageRecordYesterdayParams { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + pub account_sid: String, + /// The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved. + pub category: Option, + /// Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date. + pub start_date: Option, + /// Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date. + pub end_date: Option, + /// Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account. + pub include_subaccounts: Option, + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + pub page_size: Option, + /// The page index. This value is simply for client state. + pub page: Option, + /// The page token. This is provided by the API. + pub page_token: Option +} + + +/// struct for typed errors of method [`list_usage_record_yesterday`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum ListUsageRecordYesterdayError { + UnknownValue(serde_json::Value), +} + + +/// +pub async fn list_usage_record_yesterday(configuration: &configuration::Configuration, params: ListUsageRecordYesterdayParams) -> Result> { + let local_var_configuration = configuration; + + // unbox the parameters + let account_sid = params.account_sid; + let category = params.category; + let start_date = params.start_date; + let end_date = params.end_date; + let include_subaccounts = params.include_subaccounts; + let page_size = params.page_size; + let page = params.page; + let page_token = params.page_token; + + + let local_var_client = &local_var_configuration.client; + + let local_var_uri_str = format!("{}/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json", local_var_configuration.base_path, AccountSid=crate::apis::urlencode(account_sid)); + let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); + + if let Some(ref local_var_str) = category { + local_var_req_builder = local_var_req_builder.query(&[("Category", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = start_date { + local_var_req_builder = local_var_req_builder.query(&[("StartDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = end_date { + local_var_req_builder = local_var_req_builder.query(&[("EndDate", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = include_subaccounts { + local_var_req_builder = local_var_req_builder.query(&[("IncludeSubaccounts", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_size { + local_var_req_builder = local_var_req_builder.query(&[("PageSize", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page { + local_var_req_builder = local_var_req_builder.query(&[("Page", &local_var_str.to_string())]); + } + if let Some(ref local_var_str) = page_token { + local_var_req_builder = local_var_req_builder.query(&[("PageToken", &local_var_str.to_string())]); + } + if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { + local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); + } + if let Some(ref local_var_auth_conf) = local_var_configuration.basic_auth { + local_var_req_builder = local_var_req_builder.basic_auth(local_var_auth_conf.0.to_owned(), local_var_auth_conf.1.to_owned()); + }; + + let local_var_req = local_var_req_builder.build()?; + let local_var_resp = local_var_client.execute(local_var_req).await?; + + let local_var_status = local_var_resp.status(); + let local_var_content = local_var_resp.text().await?; + + if !local_var_status.is_client_error() && !local_var_status.is_server_error() { + serde_json::from_str(&local_var_content).map_err(Error::from) + } else { + let local_var_entity: Option = serde_json::from_str(&local_var_content).ok(); + let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity }; + Err(Error::ResponseError(local_var_error)) + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/configuration.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/configuration.rs new file mode 100644 index 00000000..1a559246 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/configuration.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + +#[derive(Debug, Clone)] +pub struct Configuration { + pub base_path: String, + pub user_agent: Option, + pub client: reqwest::Client, + pub basic_auth: Option, + pub oauth_access_token: Option, + pub bearer_access_token: Option, + pub api_key: Option, + // TODO: take an oauth2 token source, similar to the go one +} + +pub type BasicAuth = (String, Option); + +#[derive(Debug, Clone)] +pub struct ApiKey { + pub prefix: Option, + pub key: String, +} + + +impl Configuration { + pub fn new() -> Configuration { + Configuration::default() + } +} + +impl Default for Configuration { + fn default() -> Self { + Configuration { + base_path: "https://api.twilio.com".to_owned(), + user_agent: Some("OpenAPI-Generator/1.50.1/rust".to_owned()), + client: reqwest::Client::new(), + basic_auth: None, + oauth_access_token: None, + bearer_access_token: None, + api_key: None, + + } + } +} diff --git a/unmnemonic_devices_vrs/twilio-rust/src/apis/mod.rs b/unmnemonic_devices_vrs/twilio-rust/src/apis/mod.rs new file mode 100644 index 00000000..7807a4cc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/apis/mod.rs @@ -0,0 +1,161 @@ +use std::error; +use std::fmt; + +#[derive(Debug, Clone)] +pub struct ResponseContent { + pub status: reqwest::StatusCode, + pub content: String, + pub entity: Option, +} + +#[derive(Debug)] +pub enum Error { + Reqwest(reqwest::Error), + Serde(serde_json::Error), + Io(std::io::Error), + ResponseError(ResponseContent), +} + +impl fmt::Display for Error { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + let (module, e) = match self { + Error::Reqwest(e) => ("reqwest", e.to_string()), + Error::Serde(e) => ("serde", e.to_string()), + Error::Io(e) => ("IO", e.to_string()), + Error::ResponseError(e) => ("response", format!("status code {}", e.status)), + }; + write!(f, "error in {}: {}", module, e) + } +} + +impl error::Error for Error { + fn source(&self) -> Option<&(dyn error::Error + 'static)> { + Some(match self { + Error::Reqwest(e) => e, + Error::Serde(e) => e, + Error::Io(e) => e, + Error::ResponseError(_) => return None, + }) + } +} + +impl From for Error { + fn from(e: reqwest::Error) -> Self { + Error::Reqwest(e) + } +} + +impl From for Error { + fn from(e: serde_json::Error) -> Self { + Error::Serde(e) + } +} + +impl From for Error { + fn from(e: std::io::Error) -> Self { + Error::Io(e) + } +} + +pub fn urlencode>(s: T) -> String { + ::url::form_urlencoded::byte_serialize(s.as_ref().as_bytes()).collect() +} + +pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String, String)> { + if let serde_json::Value::Object(object) = value { + let mut params = vec![]; + + for (key, value) in object { + match value { + serde_json::Value::Object(_) => params.append(&mut parse_deep_object( + &format!("{}[{}]", prefix, key), + value, + )), + serde_json::Value::Array(array) => { + for (i, value) in array.iter().enumerate() { + params.append(&mut parse_deep_object( + &format!("{}[{}][{}]", prefix, key, i), + value, + )); + } + }, + serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), + } + } + + return params; + } + + unimplemented!("Only objects are supported with style=deepObject") +} + +pub mod api20100401_account_api; +pub mod api20100401_add_on_result_api; +pub mod api20100401_address_api; +pub mod api20100401_all_time_api; +pub mod api20100401_application_api; +pub mod api20100401_assigned_add_on_api; +pub mod api20100401_assigned_add_on_extension_api; +pub mod api20100401_auth_calls_credential_list_mapping_api; +pub mod api20100401_auth_calls_ip_access_control_list_mapping_api; +pub mod api20100401_auth_registrations_credential_list_mapping_api; +pub mod api20100401_authorized_connect_app_api; +pub mod api20100401_available_phone_number_country_api; +pub mod api20100401_balance_api; +pub mod api20100401_call_api; +pub mod api20100401_conference_api; +pub mod api20100401_connect_app_api; +pub mod api20100401_credential_api; +pub mod api20100401_credential_list_api; +pub mod api20100401_credential_list_mapping_api; +pub mod api20100401_daily_api; +pub mod api20100401_dependent_phone_number_api; +pub mod api20100401_domain_api; +pub mod api20100401_event_api; +pub mod api20100401_feedback_api; +pub mod api20100401_feedback_summary_api; +pub mod api20100401_incoming_phone_number_api; +pub mod api20100401_ip_access_control_list_api; +pub mod api20100401_ip_access_control_list_mapping_api; +pub mod api20100401_ip_address_api; +pub mod api20100401_key_api; +pub mod api20100401_last_month_api; +pub mod api20100401_local_api; +pub mod api20100401_machine_to_machine_api; +pub mod api20100401_media_api; +pub mod api20100401_member_api; +pub mod api20100401_message_api; +pub mod api20100401_mobile_api; +pub mod api20100401_monthly_api; +pub mod api20100401_national_api; +pub mod api20100401_new_key_api; +pub mod api20100401_new_signing_key_api; +pub mod api20100401_notification_api; +pub mod api20100401_outgoing_caller_id_api; +pub mod api20100401_participant_api; +pub mod api20100401_payload_api; +pub mod api20100401_payment_api; +pub mod api20100401_queue_api; +pub mod api20100401_record_api; +pub mod api20100401_recording_api; +pub mod api20100401_safelist_api; +pub mod api20100401_shared_cost_api; +pub mod api20100401_short_code_api; +pub mod api20100401_signing_key_api; +pub mod api20100401_siprec_api; +pub mod api20100401_stream_api; +pub mod api20100401_this_month_api; +pub mod api20100401_today_api; +pub mod api20100401_token_api; +pub mod api20100401_toll_free_api; +pub mod api20100401_transcription_api; +pub mod api20100401_trigger_api; +pub mod api20100401_user_defined_message_api; +pub mod api20100401_user_defined_message_subscription_api; +pub mod api20100401_validation_request_api; +pub mod api20100401_voip_api; +pub mod api20100401_yearly_api; +pub mod api20100401_yesterday_api; + +pub mod configuration; diff --git a/unmnemonic_devices_vrs/twilio-rust/src/lib.rs b/unmnemonic_devices_vrs/twilio-rust/src/lib.rs new file mode 100644 index 00000000..c1dd666f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/lib.rs @@ -0,0 +1,10 @@ +#[macro_use] +extern crate serde_derive; + +extern crate serde; +extern crate serde_json; +extern crate url; +extern crate reqwest; + +pub mod apis; +pub mod models; diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/account_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/account_enum_status.rs new file mode 100644 index 00000000..7ba843cd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/account_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AccountEnumStatus { + #[serde(rename = "active")] + Active, + #[serde(rename = "suspended")] + Suspended, + #[serde(rename = "closed")] + Closed, + +} + +impl ToString for AccountEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("active"), + Self::Suspended => String::from("suspended"), + Self::Closed => String::from("closed"), + } + } +} + +impl Default for AccountEnumStatus { + fn default() -> AccountEnumStatus { + Self::Active + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/account_enum_type.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/account_enum_type.rs new file mode 100644 index 00000000..ff0151bd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/account_enum_type.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AccountEnumType { + #[serde(rename = "Trial")] + Trial, + #[serde(rename = "Full")] + Full, + +} + +impl ToString for AccountEnumType { + fn to_string(&self) -> String { + match self { + Self::Trial => String::from("Trial"), + Self::Full => String::from("Full"), + } + } +} + +impl Default for AccountEnumType { + fn default() -> AccountEnumType { + Self::Trial + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account.rs new file mode 100644 index 00000000..867c51a1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account.rs @@ -0,0 +1,63 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccount { + /// The authorization token for this account. This token should be kept a secret, so no sharing. + #[serde(rename = "auth_token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub auth_token: Option>, + /// The date that this account was created, in GMT in RFC 2822 format + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this account was last updated, in GMT in RFC 2822 format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A human readable description of this account, up to 64 characters long. By default the FriendlyName is your email address. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique 34 character id that represents the parent of this account. The OwnerAccountSid of a parent account is it's own sid. + #[serde(rename = "owner_account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub owner_account_sid: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// A Map of various subresources available for the given Account Instance + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccount { + pub fn new() -> ApiPeriodV2010PeriodAccount { + ApiPeriodV2010PeriodAccount { + auth_token: None, + date_created: None, + date_updated: None, + friendly_name: None, + owner_account_sid: None, + sid: None, + status: None, + subresource_uris: None, + r#type: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_address.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_address.rs new file mode 100644 index 00000000..33d14784 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_address.rs @@ -0,0 +1,89 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAddress { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The city in which the address is located. + #[serde(rename = "city", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub city: Option>, + /// The name associated with the address.This property has a maximum length of 16 4-byte characters, or 21 3-byte characters. + #[serde(rename = "customer_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub customer_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The ISO country code of the address. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The postal code of the address. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The state or region of the address. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The unique string that that we created to identify the Address resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The number and street address of the address. + #[serde(rename = "street", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub street: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether emergency calling has been enabled on this number. + #[serde(rename = "emergency_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_enabled: Option>, + /// Whether the address has been validated to comply with local regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been validated. `false` indicate the country doesn't require validation or the Address is not valid. + #[serde(rename = "validated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub validated: Option>, + /// Whether the address has been verified to comply with regulation. In countries that require valid addresses, an invalid address will not be accepted. `true` indicates the Address has been verified. `false` indicate the country doesn't require verified or the Address is not valid. + #[serde(rename = "verified", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub verified: Option>, + /// The additional number and street address of the address. + #[serde(rename = "street_secondary", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub street_secondary: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAddress { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAddress { + ApiPeriodV2010PeriodAccountPeriodAddress { + account_sid: None, + city: None, + customer_name: None, + date_created: None, + date_updated: None, + friendly_name: None, + iso_country: None, + postal_code: None, + region: None, + sid: None, + street: None, + uri: None, + emergency_enabled: None, + validated: None, + verified: None, + street_secondary: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs new file mode 100644 index 00000000..bfa87df4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_address_period_dependent_phone_number.rs @@ -0,0 +1,237 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + /// The unique string that that we created to identify the DependentPhoneNumber resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database. Can be: `true` or `false`. Caller ID lookups can cost $0.01 each. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from the phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber { + sid: None, + account_sid: None, + friendly_name: None, + phone_number: None, + voice_url: None, + voice_method: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_caller_id_lookup: None, + date_created: None, + date_updated: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + address_requirements: None, + capabilities: None, + status_callback: None, + status_callback_method: None, + api_version: None, + sms_application_sid: None, + voice_application_sid: None, + trunk_sid: None, + emergency_status: None, + emergency_address_sid: None, + uri: None, + } + } +} + +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_application.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_application.rs new file mode 100644 index 00000000..00f271a9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_application.rs @@ -0,0 +1,219 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodApplication { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The URL we call using a POST method to send message status information to your application. + #[serde(rename = "message_status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_status_callback: Option>, + /// The unique string that that we created to identify the Application resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call using a POST method to send status information to your application about SMS messages that refer to the application. + #[serde(rename = "sms_status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_status_callback: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number assigned to this application receives a call. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + /// Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. + #[serde(rename = "public_application_connect_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub public_application_connect_enabled: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodApplication { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodApplication { + ApiPeriodV2010PeriodAccountPeriodApplication { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + friendly_name: None, + message_status_callback: None, + sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_status_callback: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + uri: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + public_application_connect_enabled: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_authorized_connect_app.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_authorized_connect_app.rs new file mode 100644 index 00000000..83d2cf42 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_authorized_connect_app.rs @@ -0,0 +1,65 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The company name set for the Connect App. + #[serde(rename = "connect_app_company_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_company_name: Option>, + /// A detailed description of the Connect App. + #[serde(rename = "connect_app_description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_description: Option>, + /// The name of the Connect App. + #[serde(rename = "connect_app_friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_friendly_name: Option>, + /// The public URL for the Connect App. + #[serde(rename = "connect_app_homepage_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_homepage_url: Option>, + /// The SID that we assigned to the Connect App. + #[serde(rename = "connect_app_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub connect_app_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`. + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp { + account_sid: None, + connect_app_company_name: None, + connect_app_description: None, + connect_app_friendly_name: None, + connect_app_homepage_url: None, + connect_app_sid: None, + date_created: None, + date_updated: None, + permissions: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country.rs new file mode 100644 index 00000000..0ad384eb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + /// The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country. + #[serde(rename = "country_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub country_code: Option>, + /// The name of the country. + #[serde(rename = "country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub country: Option>, + /// The URI of the Country resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether all phone numbers available in the country are new to the Twilio platform. `true` if they are and `false` if all numbers are not in the Twilio Phone Number Beta program. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + /// A list of related AvailablePhoneNumber resources identified by their URIs relative to `https://api.twilio.com`. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry { + country_code: None, + country: None, + uri: None, + beta: None, + subresource_uris: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs new file mode 100644 index 00000000..d66d2edd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs new file mode 100644 index 00000000..fc23a342 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs new file mode 100644 index 00000000..0271089f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs new file mode 100644 index 00000000..21fbd7bd --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs new file mode 100644 index 00000000..65f4e557 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs new file mode 100644 index 00000000..f7740a19 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs new file mode 100644 index 00000000..8fe85440 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + /// A formatted version of the phone number. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "lata", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub lata: Option>, + /// The locality or city of this phone number's location. + #[serde(rename = "locality", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub locality: Option>, + /// The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. + #[serde(rename = "rate_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub rate_center: Option>, + /// The latitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "latitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub latitude: Option>, + /// The longitude of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "longitude", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub longitude: Option>, + /// The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. + #[serde(rename = "postal_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub postal_code: Option>, + /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. + #[serde(rename = "iso_country", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub iso_country: Option>, + /// The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. + #[serde(rename = "address_requirements", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, +} + +impl ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip { + friendly_name: None, + phone_number: None, + lata: None, + locality: None, + rate_center: None, + latitude: None, + longitude: None, + region: None, + postal_code: None, + iso_country: None, + address_requirements: None, + beta: None, + capabilities: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_balance.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_balance.rs new file mode 100644 index 00000000..cc8a4a56 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_balance.rs @@ -0,0 +1,37 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodBalance { + /// The unique SID identifier of the Account. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The balance of the Account, in units specified by the unit parameter. Balance changes may not be reflected immediately. Child accounts do not contain balance information + #[serde(rename = "balance", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub balance: Option>, + /// The units of currency for the account balance + #[serde(rename = "currency", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub currency: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodBalance { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodBalance { + ApiPeriodV2010PeriodAccountPeriodBalance { + account_sid: None, + balance: None, + currency: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call.rs new file mode 100644 index 00000000..c1ab1341 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call.rs @@ -0,0 +1,128 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCall { + /// The unique string that we created to identify this Call resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The SID that identifies the call that created this leg. + #[serde(rename = "parent_call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub parent_call_sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Call resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The phone number, SIP address, Client identifier or SIM SID that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. + #[serde(rename = "to", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub to: Option>, + /// The phone number, SIP address or Client identifier that received this call. Formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). + #[serde(rename = "to_formatted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub to_formatted: Option>, + /// The phone number, SIP address, Client identifier or SIM SID that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`. + #[serde(rename = "from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub from: Option>, + /// The calling phone number, SIP address, or Client identifier formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750). + #[serde(rename = "from_formatted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub from_formatted: Option>, + /// If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. + #[serde(rename = "phone_number_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number_sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully. + #[serde(rename = "end_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_time: Option>, + /// The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `Price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g., `USD`, `EUR`, `JPY`). Always capitalized for calls. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// A string describing the direction of the call. Can be: `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `` verb. Using [Elastic SIP Trunking](https://www.twilio.com/docs/sip-trunking), the values can be [`trunking-terminating`](https://www.twilio.com/docs/sip-trunking#termination) for outgoing calls from your communications infrastructure to the PSTN or [`trunking-originating`](https://www.twilio.com/docs/sip-trunking#origination) for incoming calls to your communications infrastructure from the PSTN. + #[serde(rename = "direction", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub direction: Option>, + /// Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise. + #[serde(rename = "answered_by", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub answered_by: Option>, + /// The API version used to create the call. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty. + #[serde(rename = "forwarded_from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub forwarded_from: Option>, + /// The Group SID associated with this call. If no Group is associated with the call, the field is empty. + #[serde(rename = "group_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub group_sid: Option>, + /// The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty. + #[serde(rename = "caller_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub caller_name: Option>, + /// The wait time in milliseconds before the call is placed. + #[serde(rename = "queue_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub queue_time: Option>, + /// The unique identifier of the trunk resource that was used for this call. The field is empty if the call was not made using a SIP trunk or if the call is not terminated. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// A list of subresources available to this call, identified by their URIs relative to `https://api.twilio.com`. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCall { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCall { + ApiPeriodV2010PeriodAccountPeriodCall { + sid: None, + date_created: None, + date_updated: None, + parent_call_sid: None, + account_sid: None, + to: None, + to_formatted: None, + from: None, + from_formatted: None, + phone_number_sid: None, + status: None, + start_time: None, + end_time: None, + duration: None, + price: None, + price_unit: None, + direction: None, + answered_by: None, + api_version: None, + forwarded_from: None, + group_sid: None, + caller_name: None, + queue_time: None, + trunk_sid: None, + uri: None, + subresource_uris: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_event.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_event.rs new file mode 100644 index 00000000..0de5c8fa --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_event.rs @@ -0,0 +1,33 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + /// Contains a dictionary representing the request of the call. + #[serde(rename = "request", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request: Option>, + /// Contains a dictionary representing the call response, including a list of the call events. + #[serde(rename = "response", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent { + request: None, + response: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs new file mode 100644 index 00000000..b3cc5e90 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_feedback.rs @@ -0,0 +1,49 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, `unsolicited-call`, or `one-way-audio`. + #[serde(rename = "issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub issues: Option>>, + /// `1` to `5` quality score where `1` represents imperfect experience and `5` represents a perfect call. + #[serde(rename = "quality_score", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback { + account_sid: None, + date_created: None, + date_updated: None, + issues: None, + quality_score: None, + sid: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs new file mode 100644 index 00000000..9c3f476c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_feedback_summary.rs @@ -0,0 +1,80 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The total number of calls. + #[serde(rename = "call_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_count: Option>, + /// The total number of calls with a feedback entry. + #[serde(rename = "call_feedback_count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_feedback_count: Option>, + /// The date that this resource was created, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The last date for which feedback entries are included in this Feedback Summary, formatted as `YYYY-MM-DD` and specified in UTC. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// Whether the feedback summary includes subaccounts; `true` if it does, otherwise `false`. + #[serde(rename = "include_subaccounts", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub include_subaccounts: Option>, + /// A list of issues experienced during the call. The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`, `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`. + #[serde(rename = "issues", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub issues: Option>>, + /// The average QualityScore of the feedback entries. + #[serde(rename = "quality_score_average", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score_average: Option>, + /// The median QualityScore of the feedback entries. + #[serde(rename = "quality_score_median", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score_median: Option>, + /// The standard deviation of the quality scores. + #[serde(rename = "quality_score_standard_deviation", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub quality_score_standard_deviation: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary { + account_sid: None, + call_count: None, + call_feedback_count: None, + date_created: None, + date_updated: None, + end_date: None, + include_subaccounts: None, + issues: None, + quality_score_average: None, + quality_score_median: None, + quality_score_standard_deviation: None, + sid: None, + start_date: None, + status: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_notification.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_notification.rs new file mode 100644 index 00000000..c3caf526 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_notification.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the Call Notification resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The unique string that that we created to identify the Call Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs new file mode 100644 index 00000000..5312f3ee --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_notification_instance.rs @@ -0,0 +1,115 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the Call Notification resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Call Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. + #[serde(rename = "request_variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_variables: Option>, + /// The HTTP body returned by your server. + #[serde(rename = "response_body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_body: Option>, + /// The HTTP headers returned by your server. + #[serde(rename = "response_headers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_headers: Option>, + /// The unique string that that we created to identify the Call Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + request_variables: None, + response_body: None, + response_headers: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_recording.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_recording.rs new file mode 100644 index 00000000..dd0e59df --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_call_recording.rs @@ -0,0 +1,95 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to make the recording. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The Conference SID that identifies the conference associated with the recording, if a conference recording. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The length of the recording in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The unique string that that we created to identify the Recording resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The one-time cost of creating the recording in the `price_unit` currency. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. + #[serde(rename = "encryption_details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub encryption_details: Option>, + /// The currency used in the `price` property. Example: `USD`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, + /// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// The recorded track. Can be: `inbound`, `outbound`, or `both`. + #[serde(rename = "track", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub track: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording { + account_sid: None, + api_version: None, + call_sid: None, + conference_sid: None, + date_created: None, + date_updated: None, + start_time: None, + duration: None, + sid: None, + price: None, + uri: None, + encryption_details: None, + price_unit: None, + status: None, + channels: None, + source: None, + error_code: None, + track: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_payments.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_payments.rs new file mode 100644 index 00000000..d5701a8d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_payments.rs @@ -0,0 +1,49 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Payments resource is associated with. This will refer to the call sid that is producing the payment card (credit/ACH) information thru DTMF. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The SID of the Payments resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments { + account_sid: None, + call_sid: None, + sid: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_siprec.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_siprec.rs new file mode 100644 index 00000000..ddc7225f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_siprec.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + /// The SID of the Siprec resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Siprec resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Siprec resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The user-specified name of this Siprec, if one was given when the Siprec was created. This may be used to stop the Siprec. + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec { + sid: None, + account_sid: None, + call_sid: None, + name: None, + status: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_stream.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_stream.rs new file mode 100644 index 00000000..97b5da76 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_stream.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + /// The SID of the Stream resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Stream resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Stream resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The user-specified name of this Stream, if one was given when the Stream was created. This may be used to stop the Stream. + #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub name: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + ApiPeriodV2010PeriodAccountPeriodCallPeriodStream { + sid: None, + account_sid: None, + call_sid: None, + name: None, + status: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs new file mode 100644 index 00000000..1abe13e9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_user_defined_message.rs @@ -0,0 +1,41 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created User Defined Message. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The SID that uniquely identifies this User Defined Message. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date that this User Defined Message was created, given in RFC 2822 format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage { + account_sid: None, + call_sid: None, + sid: None, + date_created: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs new file mode 100644 index 00000000..f2f2484f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_call_period_user_defined_message_subscription.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that subscribed to the User Defined Messages. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the User Defined Message Subscription is associated with. This refers to the Call SID that is producing the User Defined Messages. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The SID that uniquely identifies this User Defined Message Subscription. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date that this User Defined Message Subscription was created, given in RFC 2822 format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The URI of the User Defined Message Subscription Resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription { + account_sid: None, + call_sid: None, + sid: None, + date_created: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference.rs new file mode 100644 index 00000000..a34e808a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference.rs @@ -0,0 +1,71 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConference { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Conference resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The API version used to create this conference. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// A string that you assigned to describe this conference room. Maxiumum length is 128 characters. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants. + #[serde(rename = "region", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub region: Option>, + /// The unique string that that we created to identify this Conference resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// A list of related resources identified by their URIs relative to `https://api.twilio.com`. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + #[serde(rename = "reason_conference_ended", skip_serializing_if = "Option::is_none")] + pub reason_conference_ended: Option, + /// The call SID that caused the conference to end. + #[serde(rename = "call_sid_ending_conference", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid_ending_conference: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConference { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConference { + ApiPeriodV2010PeriodAccountPeriodConference { + account_sid: None, + date_created: None, + date_updated: None, + api_version: None, + friendly_name: None, + region: None, + sid: None, + status: None, + uri: None, + subresource_uris: None, + reason_conference_ended: None, + call_sid_ending_conference: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs new file mode 100644 index 00000000..7d1132fb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference_period_conference_recording.rs @@ -0,0 +1,91 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the recording. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Conference Recording resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The Conference SID that identifies the conference associated with the recording. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The length of the recording in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The unique string that that we created to identify the Conference Recording resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The one-time cost of creating the recording in the `price_unit` currency. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency used in the `price` property. Example: `USD`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options. + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, + /// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. + #[serde(rename = "encryption_details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub encryption_details: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording { + account_sid: None, + api_version: None, + call_sid: None, + conference_sid: None, + date_created: None, + date_updated: None, + start_time: None, + duration: None, + sid: None, + price: None, + price_unit: None, + status: None, + channels: None, + source: None, + error_code: None, + encryption_details: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference_period_participant.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference_period_participant.rs new file mode 100644 index 00000000..564de84c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_conference_period_participant.rs @@ -0,0 +1,80 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Participant resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The user-specified label of this participant, if one was given when the participant was created. This may be used to fetch, update or delete the participant. + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + /// The SID of the participant who is being `coached`. The participant being coached is the only participant who can hear the participant who is `coaching`. + #[serde(rename = "call_sid_to_coach", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid_to_coach: Option>, + /// Whether the participant is coaching another call. Can be: `true` or `false`. If not present, defaults to `false` unless `call_sid_to_coach` is defined. If `true`, `call_sid_to_coach` must be defined. + #[serde(rename = "coaching", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub coaching: Option>, + /// The SID of the conference the participant is in. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// Whether the conference ends when the participant leaves. Can be: `true` or `false` and the default is `false`. If `true`, the conference ends and all other participants drop out when the participant leaves. + #[serde(rename = "end_conference_on_exit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_conference_on_exit: Option>, + /// Whether the participant is muted. Can be `true` or `false`. + #[serde(rename = "muted", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub muted: Option>, + /// Whether the participant is on hold. Can be `true` or `false`. + #[serde(rename = "hold", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub hold: Option>, + /// Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference. + #[serde(rename = "start_conference_on_enter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_conference_on_enter: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant { + account_sid: None, + call_sid: None, + label: None, + call_sid_to_coach: None, + coaching: None, + conference_sid: None, + date_created: None, + date_updated: None, + end_conference_on_exit: None, + muted: None, + hold: None, + start_conference_on_enter: None, + status: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_connect_app.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_connect_app.rs new file mode 100644 index 00000000..33426f7f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_connect_app.rs @@ -0,0 +1,91 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodConnectApp { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The URL we redirect the user to after we authenticate the user and obtain authorization to access the Connect App. + #[serde(rename = "authorize_redirect_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub authorize_redirect_url: Option>, + /// The company name set for the Connect App. + #[serde(rename = "company_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub company_name: Option>, + /// The HTTP method we use to call `deauthorize_callback_url`. + #[serde(rename = "deauthorize_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deauthorize_callback_method: Option>, + /// The URL we call using the `deauthorize_callback_method` to de-authorize the Connect App. + #[serde(rename = "deauthorize_callback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub deauthorize_callback_url: Option>, + /// The description of the Connect App. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The public URL where users can obtain more information about this Connect App. + #[serde(rename = "homepage_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub homepage_url: Option>, + /// The set of permissions that your ConnectApp requests. + #[serde(rename = "permissions", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub permissions: Option>>, + /// The unique string that that we created to identify the ConnectApp resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodConnectApp { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodConnectApp { + ApiPeriodV2010PeriodAccountPeriodConnectApp { + account_sid: None, + authorize_redirect_url: None, + company_name: None, + deauthorize_callback_method: None, + deauthorize_callback_url: None, + description: None, + friendly_name: None, + homepage_url: None, + permissions: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method we use to call `deauthorize_callback_url`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DeauthorizeCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for DeauthorizeCallbackMethod { + fn default() -> DeauthorizeCallbackMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number.rs new file mode 100644 index 00000000..b35d091f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this IncomingPhoneNumber resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify this IncomingPhoneNumber resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs new file mode 100644 index 00000000..dca446b8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on.rs @@ -0,0 +1,69 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Phone Number to which the Add-on is assigned. + #[serde(rename = "resource_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resource_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A short description of the functionality that the Add-on provides. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// A JSON string that represents the current configuration of this Add-on installation. + #[serde(rename = "configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configuration: Option>, + /// An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. + #[serde(rename = "unique_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unique_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn { + sid: None, + account_sid: None, + resource_sid: None, + friendly_name: None, + description: None, + configuration: None, + unique_name: None, + date_created: None, + date_updated: None, + uri: None, + subresource_uris: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs new file mode 100644 index 00000000..502a3a3a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Phone Number to which the Add-on is assigned. + #[serde(rename = "resource_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub resource_sid: Option>, + /// The SID that uniquely identifies the assigned Add-on installation. + #[serde(rename = "assigned_add_on_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub assigned_add_on_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A string that you assigned to describe the Product this Extension is used within. + #[serde(rename = "product_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub product_name: Option>, + /// An application-defined string that uniquely identifies the resource. It can be used in place of the resource's `sid` in the URL to address the resource. + #[serde(rename = "unique_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub unique_name: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// Whether the Extension will be invoked. + #[serde(rename = "enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub enabled: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension { + sid: None, + account_sid: None, + resource_sid: None, + assigned_add_on_sid: None, + friendly_name: None, + product_name: None, + unique_name: None, + uri: None, + enabled: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs new file mode 100644 index 00000000..b86f8649 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when this phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs new file mode 100644 index 00000000..3ad8dff2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs new file mode 100644 index 00000000..cdc9dfcc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free.rs @@ -0,0 +1,265 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Address resource associated with the phone number. + #[serde(rename = "address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub address_sid: Option>, + #[serde(rename = "address_requirements", skip_serializing_if = "Option::is_none")] + pub address_requirements: Option, + /// The API version used to start a new TwiML session. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. + #[serde(rename = "beta", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub beta: Option>, + #[serde(rename = "capabilities", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub capabilities: Option>>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations. + #[serde(rename = "identity_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub identity_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers. + #[serde(rename = "origin", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub origin: Option>, + /// The unique string that that we created to identify the resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application. + #[serde(rename = "sms_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_application_sid: Option>, + /// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when the phone number receives an incoming SMS message. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URL we call using the `status_callback_method` to send status information to your application. + #[serde(rename = "status_callback", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback: Option>, + /// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. + #[serde(rename = "status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status_callback_method: Option>, + /// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. + #[serde(rename = "trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trunk_sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "voice_receive_mode", skip_serializing_if = "Option::is_none")] + pub voice_receive_mode: Option, + /// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa. + #[serde(rename = "voice_application_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_application_sid: Option>, + /// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`. + #[serde(rename = "voice_caller_id_lookup", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_caller_id_lookup: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + #[serde(rename = "emergency_status", skip_serializing_if = "Option::is_none")] + pub emergency_status: Option, + /// The SID of the emergency address configuration that we use for emergency calling from this phone number. + #[serde(rename = "emergency_address_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_address_sid: Option>, + #[serde(rename = "emergency_address_status", skip_serializing_if = "Option::is_none")] + pub emergency_address_status: Option, + /// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + #[serde(rename = "bundle_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub bundle_sid: Option>, + #[serde(rename = "status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub status: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree { + account_sid: None, + address_sid: None, + address_requirements: None, + api_version: None, + beta: None, + capabilities: None, + date_created: None, + date_updated: None, + friendly_name: None, + identity_sid: None, + phone_number: None, + origin: None, + sid: None, + sms_application_sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + status_callback: None, + status_callback_method: None, + trunk_sid: None, + uri: None, + voice_receive_mode: None, + voice_application_sid: None, + voice_caller_id_lookup: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_url: None, + emergency_status: None, + emergency_address_sid: None, + emergency_address_status: None, + bundle_sid: None, + status: None, + } + } +} + +/// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} +/// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for StatusCallbackMethod { + fn default() -> StatusCallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_key.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_key.rs new file mode 100644 index 00000000..af30bac4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_key.rs @@ -0,0 +1,41 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodKey { + /// The unique string that that we created to identify the Key resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodKey { + ApiPeriodV2010PeriodAccountPeriodKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message.rs new file mode 100644 index 00000000..18eb34e1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodMessage { + /// The text content of the message + #[serde(rename = "body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub body: Option>, + /// The number of segments that make up the complete message. SMS message bodies that exceed the [character limit](https://www.twilio.com/docs/glossary/what-sms-character-limit) are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, `num_segments` is initially `0`, since a sender hasn't yet been assigned. + #[serde(rename = "num_segments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub num_segments: Option>, + #[serde(rename = "direction", skip_serializing_if = "Option::is_none")] + pub direction: Option, + /// The sender's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent. + #[serde(rename = "from", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub from: Option>, + /// The recipient's phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format) or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g. `whatsapp:+15552229999`) + #[serde(rename = "to", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub to: Option>, + /// The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was last updated + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The amount billed for the message in the currency specified by `price_unit`. The `price` is populated after the message has been sent/received, and may not be immediately availalble. View the [Pricing page](https://www.twilio.com/en-us/pricing) for more details. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. + #[serde(rename = "error_message", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_message: Option>, + /// The URI of the Message resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The number of media files associated with the Message resource. + #[serde(rename = "num_media", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub num_media: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) associated with the Message resource. The value is `null` if a Messaging Service was not used. + #[serde(rename = "messaging_service_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub messaging_service_sid: Option>, + /// The unique, Twilio-provided string that identifies the Message resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL. + #[serde(rename = "date_sent", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_sent: Option>, + /// The [RFC 2822](https://datatracker.ietf.org/doc/html/rfc2822#section-3.3) timestamp (in GMT) of when the Message resource was created + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The API version used to process the Message + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// A list of related resources identified by their URIs relative to `https://api.twilio.com` + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodMessage { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodMessage { + ApiPeriodV2010PeriodAccountPeriodMessage { + body: None, + num_segments: None, + direction: None, + from: None, + to: None, + date_updated: None, + price: None, + error_message: None, + uri: None, + account_sid: None, + num_media: None, + status: None, + messaging_service_sid: None, + sid: None, + date_sent: None, + date_created: None, + error_code: None, + price_unit: None, + api_version: None, + subresource_uris: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message_period_media.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message_period_media.rs new file mode 100644 index 00000000..08095262 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message_period_media.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this Media resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The default [MIME type](https://en.wikipedia.org/wiki/Internet_media_type) of the media, for example `image/jpeg`, `image/png`, or `image/gif`. + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + /// The date and time in GMT when this Media resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT when this Media resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The SID of the Message resource that is associated with this Media resource. + #[serde(rename = "parent_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub parent_sid: Option>, + /// The unique string that identifies this Media resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of this Media resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia { + account_sid: None, + content_type: None, + date_created: None, + date_updated: None, + parent_sid: None, + sid: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs new file mode 100644 index 00000000..c47b858f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_message_period_message_feedback.rs @@ -0,0 +1,48 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the Message resource associated with this MessageFeedback resource. + #[serde(rename = "message_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_sid: Option>, + #[serde(rename = "outcome", skip_serializing_if = "Option::is_none")] + pub outcome: Option, + /// The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback { + account_sid: None, + message_sid: None, + outcome: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_new_key.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_new_key.rs new file mode 100644 index 00000000..ff74305c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_new_key.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNewKey { + /// The unique string that that we created to identify the NewKey resource. You will use this as the basic-auth `user` when authenticating to the API. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date and time in GMT that the API Key was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the new API Key was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** + #[serde(rename = "secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub secret: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNewKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNewKey { + ApiPeriodV2010PeriodAccountPeriodNewKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + secret: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_new_signing_key.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_new_signing_key.rs new file mode 100644 index 00000000..711d8036 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_new_signing_key.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + /// The unique string that that we created to identify the NewSigningKey resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth `password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.** + #[serde(rename = "secret", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub secret: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + ApiPeriodV2010PeriodAccountPeriodNewSigningKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + secret: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_notification.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_notification.rs new file mode 100644 index 00000000..d7267b74 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_notification.rs @@ -0,0 +1,103 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNotification { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The unique string that that we created to identify the Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNotification { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNotification { + ApiPeriodV2010PeriodAccountPeriodNotification { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_notification_instance.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_notification_instance.rs new file mode 100644 index 00000000..4ca82aa0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_notification_instance.rs @@ -0,0 +1,115 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to generate the notification. Can be empty for events that don't have a specific API version, such as incoming phone calls. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Notification resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A unique error code for the error condition that is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// An integer log level that corresponds to the type of notification: `0` is ERROR, `1` is WARNING. + #[serde(rename = "log", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub log: Option>, + /// The date the notification was actually generated in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Message buffering can cause this value to differ from `date_created`. + #[serde(rename = "message_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_date: Option>, + /// The text of the notification. + #[serde(rename = "message_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub message_text: Option>, + /// The URL for more information about the error condition. This value is a page in our [Error Dictionary](https://www.twilio.com/docs/api/errors). + #[serde(rename = "more_info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub more_info: Option>, + /// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. + #[serde(rename = "request_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_method: Option>, + /// The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called. + #[serde(rename = "request_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_url: Option>, + /// The HTTP GET or POST variables we sent to your server. However, if the notification was generated by our REST API, this contains the HTTP POST or PUT variables you sent to our API. + #[serde(rename = "request_variables", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub request_variables: Option>, + /// The HTTP body returned by your server. + #[serde(rename = "response_body", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_body: Option>, + /// The HTTP headers returned by your server. + #[serde(rename = "response_headers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub response_headers: Option>, + /// The unique string that that we created to identify the Notification resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + ApiPeriodV2010PeriodAccountPeriodNotificationInstance { + account_sid: None, + api_version: None, + call_sid: None, + date_created: None, + date_updated: None, + error_code: None, + log: None, + message_date: None, + message_text: None, + more_info: None, + request_method: None, + request_url: None, + request_variables: None, + response_body: None, + response_headers: None, + sid: None, + uri: None, + } + } +} + +/// The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RequestMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for RequestMethod { + fn default() -> RequestMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs new file mode 100644 index 00000000..cc8f6fe2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_outgoing_caller_id.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + /// The unique string that that we created to identify the OutgoingCallerId resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId { + sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + account_sid: None, + phone_number: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_queue.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_queue.rs new file mode 100644 index 00000000..e745499b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_queue.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodQueue { + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The number of calls currently in the queue. + #[serde(rename = "current_size", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub current_size: Option>, + /// A string that you assigned to describe this resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Queue resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The average wait time in seconds of the members in this queue. This is calculated at the time of the request. + #[serde(rename = "average_wait_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub average_wait_time: Option>, + /// The unique string that that we created to identify this Queue resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000. + #[serde(rename = "max_size", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub max_size: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodQueue { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodQueue { + ApiPeriodV2010PeriodAccountPeriodQueue { + date_updated: None, + current_size: None, + friendly_name: None, + uri: None, + account_sid: None, + average_wait_time: None, + sid: None, + date_created: None, + max_size: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_queue_period_member.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_queue_period_member.rs new file mode 100644 index 00000000..a9f4ecbe --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_queue_period_member.rs @@ -0,0 +1,49 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Member resource is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The date that the member was enqueued, given in RFC 2822 format. + #[serde(rename = "date_enqueued", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_enqueued: Option>, + /// This member's current position in the queue. + #[serde(rename = "position", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub position: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The number of seconds the member has been in the queue. + #[serde(rename = "wait_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub wait_time: Option>, + /// The SID of the Queue the member is in. + #[serde(rename = "queue_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub queue_sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember { + call_sid: None, + date_enqueued: None, + position: None, + uri: None, + wait_time: None, + queue_sid: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording.rs new file mode 100644 index 00000000..3d01aa77 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording.rs @@ -0,0 +1,99 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecording { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used during the recording. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Recording resource is associated with. This will always refer to the parent leg of a two-leg call. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The Conference SID that identifies the conference associated with the recording, if a conference recording. + #[serde(rename = "conference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub conference_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The start time of the recording in GMT and in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "start_time", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_time: Option>, + /// The length of the recording in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The unique string that that we created to identify the Recording resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The one-time cost of creating the recording in the `price_unit` currency. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency used in the `price` property. Example: `USD`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The number of channels in the final recording file. Can be: `1` or `2`. You can split a call with two legs into two separate recording channels if you record using [TwiML Dial](https://www.twilio.com/docs/voice/twiml/dial#record) or the [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls#manage-your-outbound-call). + #[serde(rename = "channels", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub channels: Option>, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, + /// The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`. + #[serde(rename = "error_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub error_code: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature. + #[serde(rename = "encryption_details", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub encryption_details: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URL of the media file associated with this recording resource. When stored externally, this is the full URL location of the media file. + #[serde(rename = "media_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub media_url: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecording { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecording { + ApiPeriodV2010PeriodAccountPeriodRecording { + account_sid: None, + api_version: None, + call_sid: None, + conference_sid: None, + date_created: None, + date_updated: None, + start_time: None, + duration: None, + sid: None, + price: None, + price_unit: None, + status: None, + channels: None, + source: None, + error_code: None, + uri: None, + encryption_details: None, + subresource_uris: None, + media_url: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs new file mode 100644 index 00000000..24a6b8a3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result.rs @@ -0,0 +1,64 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + /// The unique string that that we created to identify the Recording AddOnResult resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The SID of the Add-on to which the result belongs. + #[serde(rename = "add_on_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_sid: Option>, + /// The SID of the Add-on configuration. + #[serde(rename = "add_on_configuration_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_configuration_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The date and time in GMT that the result was completed specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_completed", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_completed: Option>, + /// The SID of the recording to which the AddOnResult resource belongs. + #[serde(rename = "reference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reference_sid: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult { + sid: None, + account_sid: None, + status: None, + add_on_sid: None, + add_on_configuration_sid: None, + date_created: None, + date_updated: None, + date_completed: None, + reference_sid: None, + subresource_uris: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs new file mode 100644 index 00000000..90877f14 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload.rs @@ -0,0 +1,69 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + /// The unique string that that we created to identify the Recording AddOnResult Payload resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The SID of the AddOnResult to which the payload belongs. + #[serde(rename = "add_on_result_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_result_sid: Option>, + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The string provided by the vendor that describes the payload. + #[serde(rename = "label", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub label: Option>, + /// The SID of the Add-on to which the result belongs. + #[serde(rename = "add_on_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_sid: Option>, + /// The SID of the Add-on configuration. + #[serde(rename = "add_on_configuration_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub add_on_configuration_sid: Option>, + /// The MIME type of the payload. + #[serde(rename = "content_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub content_type: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The SID of the recording to which the AddOnResult resource that contains the payload belongs. + #[serde(rename = "reference_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub reference_sid: Option>, + /// A list of related resources identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload { + sid: None, + add_on_result_sid: None, + account_sid: None, + label: None, + add_on_sid: None, + add_on_configuration_sid: None, + content_type: None, + date_created: None, + date_updated: None, + reference_sid: None, + subresource_uris: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs new file mode 100644 index 00000000..e4c7d9fc --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_recording_period_recording_transcription.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the transcription. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The duration of the transcribed audio in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. + #[serde(rename = "recording_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub recording_sid: Option>, + /// The unique string that that we created to identify the Transcription resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The text content of the transcription. + #[serde(rename = "transcription_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub transcription_text: Option>, + /// The transcription type. + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + duration: None, + price: None, + price_unit: None, + recording_sid: None, + sid: None, + status: None, + transcription_text: None, + r#type: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_short_code.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_short_code.rs new file mode 100644 index 00000000..a602dac6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_short_code.rs @@ -0,0 +1,117 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodShortCode { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this ShortCode resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to start a new TwiML session when an SMS message is sent to this short code. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A string that you assigned to describe this resource. By default, the `FriendlyName` is the short code. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The short code. e.g., 894546. + #[serde(rename = "short_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub short_code: Option>, + /// The unique string that that we created to identify this ShortCode resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_method: Option>, + /// The URL that we call if an error occurs while retrieving or executing the TwiML from `sms_url`. + #[serde(rename = "sms_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_fallback_url: Option>, + /// The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. + #[serde(rename = "sms_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_method: Option>, + /// The URL we call when receiving an incoming SMS message to this short code. + #[serde(rename = "sms_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sms_url: Option>, + /// The URI of this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodShortCode { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodShortCode { + ApiPeriodV2010PeriodAccountPeriodShortCode { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + friendly_name: None, + short_code: None, + sid: None, + sms_fallback_method: None, + sms_fallback_url: None, + sms_method: None, + sms_url: None, + uri: None, + } + } +} + +/// The HTTP method we use to call the `sms_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsFallbackMethod { + fn default() -> SmsFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call the `sms_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SmsMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for SmsMethod { + fn default() -> SmsMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_signing_key.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_signing_key.rs new file mode 100644 index 00000000..25f2daee --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_signing_key.rs @@ -0,0 +1,37 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSigningKey { + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSigningKey { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSigningKey { + ApiPeriodV2010PeriodAccountPeriodSigningKey { + sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs new file mode 100644 index 00000000..0a7e44f9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A human readable descriptive text that describes the CredentialList, up to 64 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// A list of credentials associated with this credential list. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI for this resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + subresource_uris: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs new file mode 100644 index 00000000..eaaf38e8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The unique id that identifies the credential list that includes this credential. + #[serde(rename = "credential_list_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub credential_list_sid: Option>, + /// The username for this credential. + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential { + sid: None, + account_sid: None, + credential_list_sid: None, + username: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs new file mode 100644 index 00000000..ced1d95a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain.rs @@ -0,0 +1,175 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to process the call. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The types of authentication you have mapped to your domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If you have both defined for your domain, both will be returned in a comma delimited string. If `auth_type` is not defined, the domain will not be able to receive any traffic. + #[serde(rename = "auth_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub auth_type: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\" and must end with `sip.twilio.com`. + #[serde(rename = "domain_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain_name: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the SipDomain resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_fallback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_method: Option>, + /// The URL that we call when an error occurs while retrieving or executing the TwiML requested from `voice_url`. + #[serde(rename = "voice_fallback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_fallback_url: Option>, + /// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. + #[serde(rename = "voice_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_method: Option>, + /// The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. + #[serde(rename = "voice_status_callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_status_callback_method: Option>, + /// The URL that we call to pass status parameters (such as call ended) to your application. + #[serde(rename = "voice_status_callback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_status_callback_url: Option>, + /// The URL we call using the `voice_method` when the domain receives a call. + #[serde(rename = "voice_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub voice_url: Option>, + /// A list of mapping resources associated with the SIP Domain resource identified by their relative URIs. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// Whether to allow SIP Endpoints to register with the domain to receive calls. + #[serde(rename = "sip_registration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sip_registration: Option>, + /// Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + #[serde(rename = "emergency_calling_enabled", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_calling_enabled: Option>, + /// Whether secure SIP is enabled for the domain. If enabled, TLS will be enforced and SRTP will be negotiated on all incoming calls to this sip domain. + #[serde(rename = "secure", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub secure: Option>, + /// The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + #[serde(rename = "byoc_trunk_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub byoc_trunk_sid: Option>, + /// Whether an emergency caller sid is configured for the domain. If present, this phone number will be used as the callback for the emergency call. + #[serde(rename = "emergency_caller_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub emergency_caller_sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain { + account_sid: None, + api_version: None, + auth_type: None, + date_created: None, + date_updated: None, + domain_name: None, + friendly_name: None, + sid: None, + uri: None, + voice_fallback_method: None, + voice_fallback_url: None, + voice_method: None, + voice_status_callback_method: None, + voice_status_callback_url: None, + voice_url: None, + subresource_uris: None, + sip_registration: None, + emergency_calling_enabled: None, + secure: None, + byoc_trunk_sid: None, + emergency_caller_sid: None, + } + } +} + +/// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceFallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceFallbackMethod { + fn default() -> VoiceFallbackMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceMethod { + fn default() -> VoiceMethod { + Self::Head + } +} +/// The HTTP method we use to call `voice_status_callback_url`. Either `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum VoiceStatusCallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for VoiceStatusCallbackMethod { + fn default() -> VoiceStatusCallbackMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs new file mode 100644 index 00000000..dec1bc8e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the CredentialListMapping resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs new file mode 100644 index 00000000..a363e77b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the IpAccessControlListMapping resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs new file mode 100644 index 00000000..92e5a565 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The unique string that that we created to identify the CredentialListMapping resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping { + account_sid: None, + date_created: None, + date_updated: None, + friendly_name: None, + sid: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs new file mode 100644 index 00000000..5ea19261 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that is created to identify the SipDomain resource. + #[serde(rename = "domain_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain_sid: Option>, + /// A human readable descriptive text for this resource, up to 64 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping { + account_sid: None, + date_created: None, + date_updated: None, + domain_sid: None, + friendly_name: None, + sid: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs new file mode 100644 index 00000000..ca700df3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The unique string that is created to identify the SipDomain resource. + #[serde(rename = "domain_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub domain_sid: Option>, + /// A human readable descriptive text for this resource, up to 64 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping { + account_sid: None, + date_created: None, + date_updated: None, + domain_sid: None, + friendly_name: None, + sid: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs new file mode 100644 index 00000000..d8a5e9b2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) that owns this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A human readable descriptive text, up to 255 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// A list of the IpAddress resources associated with this IP access control list resource. + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList { + sid: None, + account_sid: None, + friendly_name: None, + date_created: None, + date_updated: None, + subresource_uris: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs new file mode 100644 index 00000000..de8200e0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address.rs @@ -0,0 +1,61 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + /// A 34 character string that uniquely identifies this resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The unique id of the Account that is responsible for this resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// A human readable descriptive text for this resource, up to 255 characters long. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// An IP address in dotted decimal notation from which you want to accept traffic. Any SIP requests from this IP address will be allowed by Twilio. IPv4 only supported today. + #[serde(rename = "ip_address", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_address: Option>, + /// An integer representing the length of the CIDR prefix to use with this IP address when accepting traffic. By default the entire IP address is used. + #[serde(rename = "cidr_prefix_length", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub cidr_prefix_length: Option>, + /// The unique id of the IpAccessControlList resource that includes this resource. + #[serde(rename = "ip_access_control_list_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_access_control_list_sid: Option>, + /// The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The URI for this resource, relative to `https://api.twilio.com` + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress { + sid: None, + account_sid: None, + friendly_name: None, + ip_address: None, + cidr_prefix_length: None, + ip_access_control_list_sid: None, + date_created: None, + date_updated: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_token.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_token.rs new file mode 100644 index 00000000..df85b73f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_token.rs @@ -0,0 +1,53 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodToken { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Token resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// An array representing the ephemeral credentials and the STUN and TURN server URIs. + #[serde(rename = "ice_servers", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ice_servers: Option>>, + /// The temporary password that the username will use when authenticating with Twilio. + #[serde(rename = "password", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub password: Option>, + /// The duration in seconds for which the username and password are valid. + #[serde(rename = "ttl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ttl: Option>, + /// The temporary username that uniquely identifies a Token. + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodToken { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodToken { + ApiPeriodV2010PeriodAccountPeriodToken { + account_sid: None, + date_created: None, + date_updated: None, + ice_servers: None, + password: None, + ttl: None, + username: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_transcription.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_transcription.rs new file mode 100644 index 00000000..c79fa078 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_transcription.rs @@ -0,0 +1,76 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodTranscription { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the transcription. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The duration of the transcribed audio in seconds. + #[serde(rename = "duration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub duration: Option>, + /// The charge for the transcript in the currency associated with the account. This value is populated after the transcript is complete so it may not be available immediately. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`). + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) from which the transcription was created. + #[serde(rename = "recording_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub recording_sid: Option>, + /// The unique string that that we created to identify the Transcription resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "status", skip_serializing_if = "Option::is_none")] + pub status: Option, + /// The text content of the transcription. + #[serde(rename = "transcription_text", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub transcription_text: Option>, + /// The transcription type. Can only be: `fast`. + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodTranscription { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodTranscription { + ApiPeriodV2010PeriodAccountPeriodTranscription { + account_sid: None, + api_version: None, + date_created: None, + date_updated: None, + duration: None, + price: None, + price_unit: None, + recording_sid: None, + sid: None, + status: None, + transcription_text: None, + r#type: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs new file mode 100644 index 00000000..42a75aad --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs new file mode 100644 index 00000000..cc5fef76 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs new file mode 100644 index 00000000..104e4a2f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs new file mode 100644 index 00000000..8549e79d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs new file mode 100644 index 00000000..187d9e5a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs new file mode 100644 index 00000000..eae8ac97 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs new file mode 100644 index 00000000..6198bd83 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs new file mode 100644 index 00000000..1d94c3ff --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs new file mode 100644 index 00000000..7113a7e7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday.rs @@ -0,0 +1,84 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that accrued the usage. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// Usage records up to date as of this timestamp, formatted as YYYY-MM-DDTHH:MM:SS+00:00. All timestamps are in GMT + #[serde(rename = "as_of", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub as_of: Option>, + #[serde(rename = "category", skip_serializing_if = "Option::is_none")] + pub category: Option, + /// The number of usage events, such as the number of calls. + #[serde(rename = "count", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count: Option>, + /// The units in which `count` is measured, such as `calls` for calls or `messages` for SMS. + #[serde(rename = "count_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub count_unit: Option>, + /// A plain-language description of the usage category. + #[serde(rename = "description", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub description: Option>, + /// The last date for which usage is included in the UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "end_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub end_date: Option>, + /// The total price of the usage in the currency specified in `price_unit` and associated with the account. + #[serde(rename = "price", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price: Option>, + /// The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format, such as `usd`, `eur`, and `jpy`. + #[serde(rename = "price_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub price_unit: Option>, + /// The first date for which usage is included in this UsageRecord. The date is specified in GMT and formatted as `YYYY-MM-DD`. + #[serde(rename = "start_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub start_date: Option>, + /// A list of related resources identified by their URIs. For more information, see [List Subresources](https://www.twilio.com/docs/usage/api/usage-record#list-subresources). + #[serde(rename = "subresource_uris", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub subresource_uris: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + /// The amount used to bill usage and measured in units described in `usage_unit`. + #[serde(rename = "usage", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage: Option>, + /// The units in which `usage` is measured, such as `minutes` for calls or `messages` for SMS. + #[serde(rename = "usage_unit", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_unit: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday { + account_sid: None, + api_version: None, + as_of: None, + category: None, + count: None, + count_unit: None, + description: None, + end_date: None, + price: None, + price_unit: None, + start_date: None, + subresource_uris: None, + uri: None, + usage: None, + usage_unit: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs new file mode 100644 index 00000000..0dc6c1c7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_usage_period_usage_trigger.rs @@ -0,0 +1,108 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The API version used to create the resource. + #[serde(rename = "api_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub api_version: Option>, + /// The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. + #[serde(rename = "callback_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub callback_method: Option>, + /// The URL we call using the `callback_method` when the trigger fires. + #[serde(rename = "callback_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub callback_url: Option>, + /// The current value of the field the trigger is watching. + #[serde(rename = "current_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub current_value: Option>, + /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_created", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_created: Option>, + /// The date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_fired", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_fired: Option>, + /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + #[serde(rename = "date_updated", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub date_updated: Option>, + /// The string that you assigned to describe the trigger. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + #[serde(rename = "recurring", skip_serializing_if = "Option::is_none")] + pub recurring: Option, + /// The unique string that that we created to identify the UsageTrigger resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + #[serde(rename = "trigger_by", skip_serializing_if = "Option::is_none")] + pub trigger_by: Option, + /// The value at which the trigger will fire. Must be a positive, numeric value. + #[serde(rename = "trigger_value", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub trigger_value: Option>, + /// The URI of the resource, relative to `https://api.twilio.com`. + #[serde(rename = "uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub uri: Option>, + #[serde(rename = "usage_category", skip_serializing_if = "Option::is_none")] + pub usage_category: Option, + /// The URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`. + #[serde(rename = "usage_record_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub usage_record_uri: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger { + account_sid: None, + api_version: None, + callback_method: None, + callback_url: None, + current_value: None, + date_created: None, + date_fired: None, + date_updated: None, + friendly_name: None, + recurring: None, + sid: None, + trigger_by: None, + trigger_value: None, + uri: None, + usage_category: None, + usage_record_uri: None, + } + } +} + +/// The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallbackMethod { + #[serde(rename = "HEAD")] + Head, + #[serde(rename = "GET")] + Get, + #[serde(rename = "POST")] + Post, + #[serde(rename = "PATCH")] + Patch, + #[serde(rename = "PUT")] + Put, + #[serde(rename = "DELETE")] + Delete, +} + +impl Default for CallbackMethod { + fn default() -> CallbackMethod { + Self::Head + } +} + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_validation_request.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_validation_request.rs new file mode 100644 index 00000000..1ab44802 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_account_period_validation_request.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodAccountPeriodValidationRequest { + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the Caller ID. + #[serde(rename = "account_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub account_sid: Option>, + /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Caller ID is associated with. + #[serde(rename = "call_sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub call_sid: Option>, + /// The string that you assigned to describe the resource. + #[serde(rename = "friendly_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub friendly_name: Option>, + /// The phone number to verify in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, + /// The 6 digit validation code that someone must enter to validate the Caller ID when `phone_number` is called. + #[serde(rename = "validation_code", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub validation_code: Option>, +} + +impl ApiPeriodV2010PeriodAccountPeriodValidationRequest { + pub fn new() -> ApiPeriodV2010PeriodAccountPeriodValidationRequest { + ApiPeriodV2010PeriodAccountPeriodValidationRequest { + account_sid: None, + call_sid: None, + friendly_name: None, + phone_number: None, + validation_code: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_safelist.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_safelist.rs new file mode 100644 index 00000000..47c5acb9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_period_v2010_period_safelist.rs @@ -0,0 +1,33 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiPeriodV2010PeriodSafelist { + /// The unique string that we created to identify the SafeList resource. + #[serde(rename = "sid", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub sid: Option>, + /// The phone number in SafeList. + #[serde(rename = "phone_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub phone_number: Option>, +} + +impl ApiPeriodV2010PeriodSafelist { + pub fn new() -> ApiPeriodV2010PeriodSafelist { + ApiPeriodV2010PeriodSafelist { + sid: None, + phone_number: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs new file mode 100644 index 00000000..31569dfa --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + +/// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities : The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + #[serde(rename = "mms", skip_serializing_if = "Option::is_none")] + pub mms: Option, + #[serde(rename = "sms", skip_serializing_if = "Option::is_none")] + pub sms: Option, + #[serde(rename = "voice", skip_serializing_if = "Option::is_none")] + pub voice: Option, + #[serde(rename = "fax", skip_serializing_if = "Option::is_none")] + pub fax: Option, +} + +impl ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + /// The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + pub fn new() -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities { + mms: None, + sms: None, + voice: None, + fax: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_incoming_phone_number_capabilities.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_incoming_phone_number_capabilities.rs new file mode 100644 index 00000000..47f09920 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_incoming_phone_number_capabilities.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + +/// ApiV2010AccountIncomingPhoneNumberCapabilities : The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiV2010AccountIncomingPhoneNumberCapabilities { + #[serde(rename = "mms", skip_serializing_if = "Option::is_none")] + pub mms: Option, + #[serde(rename = "sms", skip_serializing_if = "Option::is_none")] + pub sms: Option, + #[serde(rename = "voice", skip_serializing_if = "Option::is_none")] + pub voice: Option, + #[serde(rename = "fax", skip_serializing_if = "Option::is_none")] + pub fax: Option, +} + +impl ApiV2010AccountIncomingPhoneNumberCapabilities { + /// The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. + pub fn new() -> ApiV2010AccountIncomingPhoneNumberCapabilities { + ApiV2010AccountIncomingPhoneNumberCapabilities { + mms: None, + sms: None, + voice: None, + fax: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_token_ice_servers_inner.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_token_ice_servers_inner.rs new file mode 100644 index 00000000..9ba6387f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/api_v2010_account_token_ice_servers_inner.rs @@ -0,0 +1,37 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiV2010AccountTokenIceServersInner { + #[serde(rename = "credential", skip_serializing_if = "Option::is_none")] + pub credential: Option, + #[serde(rename = "username", skip_serializing_if = "Option::is_none")] + pub username: Option, + #[serde(rename = "url", skip_serializing_if = "Option::is_none")] + pub url: Option, + #[serde(rename = "urls", skip_serializing_if = "Option::is_none")] + pub urls: Option, +} + +impl ApiV2010AccountTokenIceServersInner { + pub fn new() -> ApiV2010AccountTokenIceServersInner { + ApiV2010AccountTokenIceServersInner { + credential: None, + username: None, + url: None, + urls: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/authorized_connect_app_enum_permission.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/authorized_connect_app_enum_permission.rs new file mode 100644 index 00000000..376e34d7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/authorized_connect_app_enum_permission.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum AuthorizedConnectAppEnumPermission { + #[serde(rename = "get-all")] + GetAll, + #[serde(rename = "post-all")] + PostAll, + +} + +impl ToString for AuthorizedConnectAppEnumPermission { + fn to_string(&self) -> String { + match self { + Self::GetAll => String::from("get-all"), + Self::PostAll => String::from("post-all"), + } + } +} + +impl Default for AuthorizedConnectAppEnumPermission { + fn default() -> AuthorizedConnectAppEnumPermission { + Self::GetAll + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_event.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_event.rs new file mode 100644 index 00000000..053a91c9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_event.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallEnumEvent { + #[serde(rename = "initiated")] + Initiated, + #[serde(rename = "ringing")] + Ringing, + #[serde(rename = "answered")] + Answered, + #[serde(rename = "completed")] + Completed, + +} + +impl ToString for CallEnumEvent { + fn to_string(&self) -> String { + match self { + Self::Initiated => String::from("initiated"), + Self::Ringing => String::from("ringing"), + Self::Answered => String::from("answered"), + Self::Completed => String::from("completed"), + } + } +} + +impl Default for CallEnumEvent { + fn default() -> CallEnumEvent { + Self::Initiated + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_status.rs new file mode 100644 index 00000000..50fabc3d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_status.rs @@ -0,0 +1,57 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "ringing")] + Ringing, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "busy")] + Busy, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "no-answer")] + NoAnswer, + #[serde(rename = "canceled")] + Canceled, + +} + +impl ToString for CallEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::Ringing => String::from("ringing"), + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Busy => String::from("busy"), + Self::Failed => String::from("failed"), + Self::NoAnswer => String::from("no-answer"), + Self::Canceled => String::from("canceled"), + } + } +} + +impl Default for CallEnumStatus { + fn default() -> CallEnumStatus { + Self::Queued + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_update_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_update_status.rs new file mode 100644 index 00000000..d6f0ecce --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_enum_update_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallEnumUpdateStatus { + #[serde(rename = "canceled")] + Canceled, + #[serde(rename = "completed")] + Completed, + +} + +impl ToString for CallEnumUpdateStatus { + fn to_string(&self) -> String { + match self { + Self::Canceled => String::from("canceled"), + Self::Completed => String::from("completed"), + } + } +} + +impl Default for CallEnumUpdateStatus { + fn default() -> CallEnumUpdateStatus { + Self::Canceled + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_feedback_enum_issues.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_feedback_enum_issues.rs new file mode 100644 index 00000000..7a1a5879 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_feedback_enum_issues.rs @@ -0,0 +1,57 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallFeedbackEnumIssues { + #[serde(rename = "audio-latency")] + AudioLatency, + #[serde(rename = "digits-not-captured")] + DigitsNotCaptured, + #[serde(rename = "dropped-call")] + DroppedCall, + #[serde(rename = "imperfect-audio")] + ImperfectAudio, + #[serde(rename = "incorrect-caller-id")] + IncorrectCallerId, + #[serde(rename = "one-way-audio")] + OneWayAudio, + #[serde(rename = "post-dial-delay")] + PostDialDelay, + #[serde(rename = "unsolicited-call")] + UnsolicitedCall, + +} + +impl ToString for CallFeedbackEnumIssues { + fn to_string(&self) -> String { + match self { + Self::AudioLatency => String::from("audio-latency"), + Self::DigitsNotCaptured => String::from("digits-not-captured"), + Self::DroppedCall => String::from("dropped-call"), + Self::ImperfectAudio => String::from("imperfect-audio"), + Self::IncorrectCallerId => String::from("incorrect-caller-id"), + Self::OneWayAudio => String::from("one-way-audio"), + Self::PostDialDelay => String::from("post-dial-delay"), + Self::UnsolicitedCall => String::from("unsolicited-call"), + } + } +} + +impl Default for CallFeedbackEnumIssues { + fn default() -> CallFeedbackEnumIssues { + Self::AudioLatency + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_feedback_summary_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_feedback_summary_enum_status.rs new file mode 100644 index 00000000..144053d9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_feedback_summary_enum_status.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallFeedbackSummaryEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for CallFeedbackSummaryEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for CallFeedbackSummaryEnumStatus { + fn default() -> CallFeedbackSummaryEnumStatus { + Self::Queued + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_recording_enum_source.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_recording_enum_source.rs new file mode 100644 index 00000000..870f5fb5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_recording_enum_source.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallRecordingEnumSource { + #[serde(rename = "DialVerb")] + DialVerb, + #[serde(rename = "Conference")] + Conference, + #[serde(rename = "OutboundAPI")] + OutboundApi, + #[serde(rename = "Trunking")] + Trunking, + #[serde(rename = "RecordVerb")] + RecordVerb, + #[serde(rename = "StartCallRecordingAPI")] + StartCallRecordingApi, + #[serde(rename = "StartConferenceRecordingAPI")] + StartConferenceRecordingApi, + +} + +impl ToString for CallRecordingEnumSource { + fn to_string(&self) -> String { + match self { + Self::DialVerb => String::from("DialVerb"), + Self::Conference => String::from("Conference"), + Self::OutboundApi => String::from("OutboundAPI"), + Self::Trunking => String::from("Trunking"), + Self::RecordVerb => String::from("RecordVerb"), + Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"), + Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"), + } + } +} + +impl Default for CallRecordingEnumSource { + fn default() -> CallRecordingEnumSource { + Self::DialVerb + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/call_recording_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/call_recording_enum_status.rs new file mode 100644 index 00000000..2f8b0ce4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/call_recording_enum_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CallRecordingEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "paused")] + Paused, + #[serde(rename = "stopped")] + Stopped, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "absent")] + Absent, + +} + +impl ToString for CallRecordingEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Paused => String::from("paused"), + Self::Stopped => String::from("stopped"), + Self::Processing => String::from("processing"), + Self::Completed => String::from("completed"), + Self::Absent => String::from("absent"), + } + } +} + +impl Default for CallRecordingEnumStatus { + fn default() -> CallRecordingEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_reason_conference_ended.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_reason_conference_ended.rs new file mode 100644 index 00000000..0ae26a76 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_reason_conference_ended.rs @@ -0,0 +1,48 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceEnumReasonConferenceEnded { + #[serde(rename = "conference-ended-via-api")] + ConferenceEndedViaApi, + #[serde(rename = "participant-with-end-conference-on-exit-left")] + ParticipantWithEndConferenceOnExitLeft, + #[serde(rename = "participant-with-end-conference-on-exit-kicked")] + ParticipantWithEndConferenceOnExitKicked, + #[serde(rename = "last-participant-kicked")] + LastParticipantKicked, + #[serde(rename = "last-participant-left")] + LastParticipantLeft, + +} + +impl ToString for ConferenceEnumReasonConferenceEnded { + fn to_string(&self) -> String { + match self { + Self::ConferenceEndedViaApi => String::from("conference-ended-via-api"), + Self::ParticipantWithEndConferenceOnExitLeft => String::from("participant-with-end-conference-on-exit-left"), + Self::ParticipantWithEndConferenceOnExitKicked => String::from("participant-with-end-conference-on-exit-kicked"), + Self::LastParticipantKicked => String::from("last-participant-kicked"), + Self::LastParticipantLeft => String::from("last-participant-left"), + } + } +} + +impl Default for ConferenceEnumReasonConferenceEnded { + fn default() -> ConferenceEnumReasonConferenceEnded { + Self::ConferenceEndedViaApi + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_status.rs new file mode 100644 index 00000000..e204e18a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceEnumStatus { + #[serde(rename = "init")] + Init, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + +} + +impl ToString for ConferenceEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Init => String::from("init"), + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + } + } +} + +impl Default for ConferenceEnumStatus { + fn default() -> ConferenceEnumStatus { + Self::Init + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_update_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_update_status.rs new file mode 100644 index 00000000..2f7050a9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_enum_update_status.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceEnumUpdateStatus { + #[serde(rename = "completed")] + Completed, + +} + +impl ToString for ConferenceEnumUpdateStatus { + fn to_string(&self) -> String { + match self { + Self::Completed => String::from("completed"), + } + } +} + +impl Default for ConferenceEnumUpdateStatus { + fn default() -> ConferenceEnumUpdateStatus { + Self::Completed + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/conference_recording_enum_source.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_recording_enum_source.rs new file mode 100644 index 00000000..66800432 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_recording_enum_source.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceRecordingEnumSource { + #[serde(rename = "DialVerb")] + DialVerb, + #[serde(rename = "Conference")] + Conference, + #[serde(rename = "OutboundAPI")] + OutboundApi, + #[serde(rename = "Trunking")] + Trunking, + #[serde(rename = "RecordVerb")] + RecordVerb, + #[serde(rename = "StartCallRecordingAPI")] + StartCallRecordingApi, + #[serde(rename = "StartConferenceRecordingAPI")] + StartConferenceRecordingApi, + +} + +impl ToString for ConferenceRecordingEnumSource { + fn to_string(&self) -> String { + match self { + Self::DialVerb => String::from("DialVerb"), + Self::Conference => String::from("Conference"), + Self::OutboundApi => String::from("OutboundAPI"), + Self::Trunking => String::from("Trunking"), + Self::RecordVerb => String::from("RecordVerb"), + Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"), + Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"), + } + } +} + +impl Default for ConferenceRecordingEnumSource { + fn default() -> ConferenceRecordingEnumSource { + Self::DialVerb + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/conference_recording_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_recording_enum_status.rs new file mode 100644 index 00000000..48b3d77a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/conference_recording_enum_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConferenceRecordingEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "paused")] + Paused, + #[serde(rename = "stopped")] + Stopped, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "absent")] + Absent, + +} + +impl ToString for ConferenceRecordingEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Paused => String::from("paused"), + Self::Stopped => String::from("stopped"), + Self::Processing => String::from("processing"), + Self::Completed => String::from("completed"), + Self::Absent => String::from("absent"), + } + } +} + +impl Default for ConferenceRecordingEnumStatus { + fn default() -> ConferenceRecordingEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/connect_app_enum_permission.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/connect_app_enum_permission.rs new file mode 100644 index 00000000..a4d5ab8c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/connect_app_enum_permission.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ConnectAppEnumPermission { + #[serde(rename = "get-all")] + GetAll, + #[serde(rename = "post-all")] + PostAll, + +} + +impl ToString for ConnectAppEnumPermission { + fn to_string(&self) -> String { + match self { + Self::GetAll => String::from("get-all"), + Self::PostAll => String::from("post-all"), + } + } +} + +impl Default for ConnectAppEnumPermission { + fn default() -> ConnectAppEnumPermission { + Self::GetAll + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/dependent_phone_number_enum_address_requirement.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/dependent_phone_number_enum_address_requirement.rs new file mode 100644 index 00000000..2feb7f02 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/dependent_phone_number_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DependentPhoneNumberEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for DependentPhoneNumberEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for DependentPhoneNumberEnumAddressRequirement { + fn default() -> DependentPhoneNumberEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/dependent_phone_number_enum_emergency_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/dependent_phone_number_enum_emergency_status.rs new file mode 100644 index 00000000..961d6c55 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/dependent_phone_number_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum DependentPhoneNumberEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for DependentPhoneNumberEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for DependentPhoneNumberEnumEmergencyStatus { + fn default() -> DependentPhoneNumberEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_address_requirement.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_address_requirement.rs new file mode 100644 index 00000000..08e72e8b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberEnumAddressRequirement { + fn default() -> IncomingPhoneNumberEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_emergency_address_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_emergency_address_status.rs new file mode 100644 index 00000000..3a94a2d9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_emergency_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_emergency_status.rs new file mode 100644 index 00000000..e6837dd0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_voice_receive_mode.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_voice_receive_mode.rs new file mode 100644 index 00000000..50c6952c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_address_requirement.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_address_requirement.rs new file mode 100644 index 00000000..6a1e84f9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberLocalEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumAddressRequirement { + fn default() -> IncomingPhoneNumberLocalEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_emergency_address_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_emergency_address_status.rs new file mode 100644 index 00000000..7ff54ad9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberLocalEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_emergency_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_emergency_status.rs new file mode 100644 index 00000000..2f9b0def --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberLocalEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberLocalEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_voice_receive_mode.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_voice_receive_mode.rs new file mode 100644 index 00000000..531beb60 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_local_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberLocalEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberLocalEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberLocalEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberLocalEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_address_requirement.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_address_requirement.rs new file mode 100644 index 00000000..8c615b8f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberMobileEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumAddressRequirement { + fn default() -> IncomingPhoneNumberMobileEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs new file mode 100644 index 00000000..460bf78a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberMobileEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_emergency_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_emergency_status.rs new file mode 100644 index 00000000..65540d5b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberMobileEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberMobileEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs new file mode 100644 index 00000000..eb352926 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_mobile_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberMobileEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberMobileEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberMobileEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberMobileEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_address_requirement.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_address_requirement.rs new file mode 100644 index 00000000..256c88df --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_address_requirement.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumAddressRequirement { + #[serde(rename = "none")] + None, + #[serde(rename = "any")] + Any, + #[serde(rename = "local")] + Local, + #[serde(rename = "foreign")] + Foreign, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumAddressRequirement { + fn to_string(&self) -> String { + match self { + Self::None => String::from("none"), + Self::Any => String::from("any"), + Self::Local => String::from("local"), + Self::Foreign => String::from("foreign"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumAddressRequirement { + fn default() -> IncomingPhoneNumberTollFreeEnumAddressRequirement { + Self::None + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs new file mode 100644 index 00000000..6daa3c34 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_emergency_address_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + #[serde(rename = "registered")] + Registered, + #[serde(rename = "unregistered")] + Unregistered, + #[serde(rename = "pending-registration")] + PendingRegistration, + #[serde(rename = "registration-failure")] + RegistrationFailure, + #[serde(rename = "pending-unregistration")] + PendingUnregistration, + #[serde(rename = "unregistration-failure")] + UnregistrationFailure, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + fn to_string(&self) -> String { + match self { + Self::Registered => String::from("registered"), + Self::Unregistered => String::from("unregistered"), + Self::PendingRegistration => String::from("pending-registration"), + Self::RegistrationFailure => String::from("registration-failure"), + Self::PendingUnregistration => String::from("pending-unregistration"), + Self::UnregistrationFailure => String::from("unregistration-failure"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + fn default() -> IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus { + Self::Registered + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_emergency_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_emergency_status.rs new file mode 100644 index 00000000..1055877e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_emergency_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumEmergencyStatus { + #[serde(rename = "Active")] + Active, + #[serde(rename = "Inactive")] + Inactive, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumEmergencyStatus { + fn to_string(&self) -> String { + match self { + Self::Active => String::from("Active"), + Self::Inactive => String::from("Inactive"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumEmergencyStatus { + fn default() -> IncomingPhoneNumberTollFreeEnumEmergencyStatus { + Self::Active + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs new file mode 100644 index 00000000..24fd26c6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/incoming_phone_number_toll_free_enum_voice_receive_mode.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + #[serde(rename = "voice")] + Voice, + #[serde(rename = "fax")] + Fax, + +} + +impl ToString for IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + fn to_string(&self) -> String { + match self { + Self::Voice => String::from("voice"), + Self::Fax => String::from("fax"), + } + } +} + +impl Default for IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + fn default() -> IncomingPhoneNumberTollFreeEnumVoiceReceiveMode { + Self::Voice + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_account_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_account_response.rs new file mode 100644 index 00000000..ce34f7ba --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_account_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAccountResponse { + #[serde(rename = "accounts", skip_serializing_if = "Option::is_none")] + pub accounts: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAccountResponse { + pub fn new() -> ListAccountResponse { + ListAccountResponse { + accounts: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_address_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_address_response.rs new file mode 100644 index 00000000..8d01f514 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_address_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAddressResponse { + #[serde(rename = "addresses", skip_serializing_if = "Option::is_none")] + pub addresses: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAddressResponse { + pub fn new() -> ListAddressResponse { + ListAddressResponse { + addresses: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_application_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_application_response.rs new file mode 100644 index 00000000..c4fc3ab6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_application_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListApplicationResponse { + #[serde(rename = "applications", skip_serializing_if = "Option::is_none")] + pub applications: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListApplicationResponse { + pub fn new() -> ListApplicationResponse { + ListApplicationResponse { + applications: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_authorized_connect_app_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_authorized_connect_app_response.rs new file mode 100644 index 00000000..dcd87e1c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_authorized_connect_app_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAuthorizedConnectAppResponse { + #[serde(rename = "authorized_connect_apps", skip_serializing_if = "Option::is_none")] + pub authorized_connect_apps: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAuthorizedConnectAppResponse { + pub fn new() -> ListAuthorizedConnectAppResponse { + ListAuthorizedConnectAppResponse { + authorized_connect_apps: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_country_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_country_response.rs new file mode 100644 index 00000000..f5d28e0b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_country_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberCountryResponse { + #[serde(rename = "countries", skip_serializing_if = "Option::is_none")] + pub countries: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberCountryResponse { + pub fn new() -> ListAvailablePhoneNumberCountryResponse { + ListAvailablePhoneNumberCountryResponse { + countries: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_local_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_local_response.rs new file mode 100644 index 00000000..bbe3a509 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_local_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberLocalResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberLocalResponse { + pub fn new() -> ListAvailablePhoneNumberLocalResponse { + ListAvailablePhoneNumberLocalResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_machine_to_machine_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_machine_to_machine_response.rs new file mode 100644 index 00000000..b2e3d103 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_machine_to_machine_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberMachineToMachineResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberMachineToMachineResponse { + pub fn new() -> ListAvailablePhoneNumberMachineToMachineResponse { + ListAvailablePhoneNumberMachineToMachineResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_mobile_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_mobile_response.rs new file mode 100644 index 00000000..0ecdf812 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_mobile_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberMobileResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberMobileResponse { + pub fn new() -> ListAvailablePhoneNumberMobileResponse { + ListAvailablePhoneNumberMobileResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_national_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_national_response.rs new file mode 100644 index 00000000..1813f5ce --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_national_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberNationalResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberNationalResponse { + pub fn new() -> ListAvailablePhoneNumberNationalResponse { + ListAvailablePhoneNumberNationalResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_shared_cost_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_shared_cost_response.rs new file mode 100644 index 00000000..b79f114a --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_shared_cost_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberSharedCostResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberSharedCostResponse { + pub fn new() -> ListAvailablePhoneNumberSharedCostResponse { + ListAvailablePhoneNumberSharedCostResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_toll_free_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_toll_free_response.rs new file mode 100644 index 00000000..3b6def2f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_toll_free_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberTollFreeResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberTollFreeResponse { + pub fn new() -> ListAvailablePhoneNumberTollFreeResponse { + ListAvailablePhoneNumberTollFreeResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_voip_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_voip_response.rs new file mode 100644 index 00000000..1e0287c2 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_available_phone_number_voip_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListAvailablePhoneNumberVoipResponse { + #[serde(rename = "available_phone_numbers", skip_serializing_if = "Option::is_none")] + pub available_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListAvailablePhoneNumberVoipResponse { + pub fn new() -> ListAvailablePhoneNumberVoipResponse { + ListAvailablePhoneNumberVoipResponse { + available_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_event_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_event_response.rs new file mode 100644 index 00000000..32b9d874 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_event_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListCallEventResponse { + #[serde(rename = "events", skip_serializing_if = "Option::is_none")] + pub events: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallEventResponse { + pub fn new() -> ListCallEventResponse { + ListCallEventResponse { + events: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_notification_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_notification_response.rs new file mode 100644 index 00000000..8f7e50b6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_notification_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListCallNotificationResponse { + #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")] + pub notifications: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallNotificationResponse { + pub fn new() -> ListCallNotificationResponse { + ListCallNotificationResponse { + notifications: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_recording_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_recording_response.rs new file mode 100644 index 00000000..dcde03c5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_recording_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListCallRecordingResponse { + #[serde(rename = "recordings", skip_serializing_if = "Option::is_none")] + pub recordings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallRecordingResponse { + pub fn new() -> ListCallRecordingResponse { + ListCallRecordingResponse { + recordings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_response.rs new file mode 100644 index 00000000..64817fac --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_call_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListCallResponse { + #[serde(rename = "calls", skip_serializing_if = "Option::is_none")] + pub calls: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListCallResponse { + pub fn new() -> ListCallResponse { + ListCallResponse { + calls: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_conference_recording_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_conference_recording_response.rs new file mode 100644 index 00000000..a21b23a0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_conference_recording_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListConferenceRecordingResponse { + #[serde(rename = "recordings", skip_serializing_if = "Option::is_none")] + pub recordings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListConferenceRecordingResponse { + pub fn new() -> ListConferenceRecordingResponse { + ListConferenceRecordingResponse { + recordings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_conference_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_conference_response.rs new file mode 100644 index 00000000..1c2bf121 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_conference_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListConferenceResponse { + #[serde(rename = "conferences", skip_serializing_if = "Option::is_none")] + pub conferences: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListConferenceResponse { + pub fn new() -> ListConferenceResponse { + ListConferenceResponse { + conferences: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_connect_app_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_connect_app_response.rs new file mode 100644 index 00000000..f2c13288 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_connect_app_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListConnectAppResponse { + #[serde(rename = "connect_apps", skip_serializing_if = "Option::is_none")] + pub connect_apps: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListConnectAppResponse { + pub fn new() -> ListConnectAppResponse { + ListConnectAppResponse { + connect_apps: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_dependent_phone_number_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_dependent_phone_number_response.rs new file mode 100644 index 00000000..7b3216df --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_dependent_phone_number_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListDependentPhoneNumberResponse { + #[serde(rename = "dependent_phone_numbers", skip_serializing_if = "Option::is_none")] + pub dependent_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListDependentPhoneNumberResponse { + pub fn new() -> ListDependentPhoneNumberResponse { + ListDependentPhoneNumberResponse { + dependent_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs new file mode 100644 index 00000000..bde92160 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_assigned_add_on_extension_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + #[serde(rename = "extensions", skip_serializing_if = "Option::is_none")] + pub extensions: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + pub fn new() -> ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + ListIncomingPhoneNumberAssignedAddOnExtensionResponse { + extensions: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_assigned_add_on_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_assigned_add_on_response.rs new file mode 100644 index 00000000..8879cc08 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_assigned_add_on_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberAssignedAddOnResponse { + #[serde(rename = "assigned_add_ons", skip_serializing_if = "Option::is_none")] + pub assigned_add_ons: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberAssignedAddOnResponse { + pub fn new() -> ListIncomingPhoneNumberAssignedAddOnResponse { + ListIncomingPhoneNumberAssignedAddOnResponse { + assigned_add_ons: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_local_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_local_response.rs new file mode 100644 index 00000000..025d27f5 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_local_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberLocalResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberLocalResponse { + pub fn new() -> ListIncomingPhoneNumberLocalResponse { + ListIncomingPhoneNumberLocalResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_mobile_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_mobile_response.rs new file mode 100644 index 00000000..2542b833 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_mobile_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberMobileResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberMobileResponse { + pub fn new() -> ListIncomingPhoneNumberMobileResponse { + ListIncomingPhoneNumberMobileResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_response.rs new file mode 100644 index 00000000..e0412e5f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberResponse { + pub fn new() -> ListIncomingPhoneNumberResponse { + ListIncomingPhoneNumberResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_toll_free_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_toll_free_response.rs new file mode 100644 index 00000000..76a33fae --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_incoming_phone_number_toll_free_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListIncomingPhoneNumberTollFreeResponse { + #[serde(rename = "incoming_phone_numbers", skip_serializing_if = "Option::is_none")] + pub incoming_phone_numbers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListIncomingPhoneNumberTollFreeResponse { + pub fn new() -> ListIncomingPhoneNumberTollFreeResponse { + ListIncomingPhoneNumberTollFreeResponse { + incoming_phone_numbers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_key_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_key_response.rs new file mode 100644 index 00000000..11408199 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_key_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListKeyResponse { + #[serde(rename = "keys", skip_serializing_if = "Option::is_none")] + pub keys: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListKeyResponse { + pub fn new() -> ListKeyResponse { + ListKeyResponse { + keys: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_media_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_media_response.rs new file mode 100644 index 00000000..46a1b838 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_media_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListMediaResponse { + #[serde(rename = "media_list", skip_serializing_if = "Option::is_none")] + pub media_list: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListMediaResponse { + pub fn new() -> ListMediaResponse { + ListMediaResponse { + media_list: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_member_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_member_response.rs new file mode 100644 index 00000000..8d3275ff --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_member_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListMemberResponse { + #[serde(rename = "queue_members", skip_serializing_if = "Option::is_none")] + pub queue_members: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListMemberResponse { + pub fn new() -> ListMemberResponse { + ListMemberResponse { + queue_members: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_message_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_message_response.rs new file mode 100644 index 00000000..3d5816a8 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_message_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListMessageResponse { + #[serde(rename = "messages", skip_serializing_if = "Option::is_none")] + pub messages: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListMessageResponse { + pub fn new() -> ListMessageResponse { + ListMessageResponse { + messages: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_notification_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_notification_response.rs new file mode 100644 index 00000000..642d8363 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_notification_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListNotificationResponse { + #[serde(rename = "notifications", skip_serializing_if = "Option::is_none")] + pub notifications: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListNotificationResponse { + pub fn new() -> ListNotificationResponse { + ListNotificationResponse { + notifications: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_outgoing_caller_id_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_outgoing_caller_id_response.rs new file mode 100644 index 00000000..c3a09349 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_outgoing_caller_id_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListOutgoingCallerIdResponse { + #[serde(rename = "outgoing_caller_ids", skip_serializing_if = "Option::is_none")] + pub outgoing_caller_ids: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListOutgoingCallerIdResponse { + pub fn new() -> ListOutgoingCallerIdResponse { + ListOutgoingCallerIdResponse { + outgoing_caller_ids: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_participant_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_participant_response.rs new file mode 100644 index 00000000..eef67e07 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_participant_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListParticipantResponse { + #[serde(rename = "participants", skip_serializing_if = "Option::is_none")] + pub participants: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListParticipantResponse { + pub fn new() -> ListParticipantResponse { + ListParticipantResponse { + participants: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_queue_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_queue_response.rs new file mode 100644 index 00000000..3b49271d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_queue_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListQueueResponse { + #[serde(rename = "queues", skip_serializing_if = "Option::is_none")] + pub queues: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListQueueResponse { + pub fn new() -> ListQueueResponse { + ListQueueResponse { + queues: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_add_on_result_payload_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_add_on_result_payload_response.rs new file mode 100644 index 00000000..b56ee3f3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_add_on_result_payload_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListRecordingAddOnResultPayloadResponse { + #[serde(rename = "payloads", skip_serializing_if = "Option::is_none")] + pub payloads: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingAddOnResultPayloadResponse { + pub fn new() -> ListRecordingAddOnResultPayloadResponse { + ListRecordingAddOnResultPayloadResponse { + payloads: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_add_on_result_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_add_on_result_response.rs new file mode 100644 index 00000000..3d8140ae --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_add_on_result_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListRecordingAddOnResultResponse { + #[serde(rename = "add_on_results", skip_serializing_if = "Option::is_none")] + pub add_on_results: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingAddOnResultResponse { + pub fn new() -> ListRecordingAddOnResultResponse { + ListRecordingAddOnResultResponse { + add_on_results: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_response.rs new file mode 100644 index 00000000..a70d0970 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListRecordingResponse { + #[serde(rename = "recordings", skip_serializing_if = "Option::is_none")] + pub recordings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingResponse { + pub fn new() -> ListRecordingResponse { + ListRecordingResponse { + recordings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_transcription_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_transcription_response.rs new file mode 100644 index 00000000..42c90a08 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_recording_transcription_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListRecordingTranscriptionResponse { + #[serde(rename = "transcriptions", skip_serializing_if = "Option::is_none")] + pub transcriptions: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListRecordingTranscriptionResponse { + pub fn new() -> ListRecordingTranscriptionResponse { + ListRecordingTranscriptionResponse { + transcriptions: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_short_code_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_short_code_response.rs new file mode 100644 index 00000000..144ddff4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_short_code_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListShortCodeResponse { + #[serde(rename = "short_codes", skip_serializing_if = "Option::is_none")] + pub short_codes: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListShortCodeResponse { + pub fn new() -> ListShortCodeResponse { + ListShortCodeResponse { + short_codes: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_signing_key_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_signing_key_response.rs new file mode 100644 index 00000000..adf09dbb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_signing_key_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSigningKeyResponse { + #[serde(rename = "signing_keys", skip_serializing_if = "Option::is_none")] + pub signing_keys: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSigningKeyResponse { + pub fn new() -> ListSigningKeyResponse { + ListSigningKeyResponse { + signing_keys: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_calls_credential_list_mapping_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_calls_credential_list_mapping_response.rs new file mode 100644 index 00000000..043d23e7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_calls_credential_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipAuthCallsCredentialListMappingResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipAuthCallsCredentialListMappingResponse { + pub fn new() -> ListSipAuthCallsCredentialListMappingResponse { + ListSipAuthCallsCredentialListMappingResponse { + contents: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs new file mode 100644 index 00000000..fad15b51 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_calls_ip_access_control_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipAuthCallsIpAccessControlListMappingResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipAuthCallsIpAccessControlListMappingResponse { + pub fn new() -> ListSipAuthCallsIpAccessControlListMappingResponse { + ListSipAuthCallsIpAccessControlListMappingResponse { + contents: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_registrations_credential_list_mapping_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_registrations_credential_list_mapping_response.rs new file mode 100644 index 00000000..92256390 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_auth_registrations_credential_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipAuthRegistrationsCredentialListMappingResponse { + #[serde(rename = "contents", skip_serializing_if = "Option::is_none")] + pub contents: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipAuthRegistrationsCredentialListMappingResponse { + pub fn new() -> ListSipAuthRegistrationsCredentialListMappingResponse { + ListSipAuthRegistrationsCredentialListMappingResponse { + contents: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_list_mapping_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_list_mapping_response.rs new file mode 100644 index 00000000..5e672081 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipCredentialListMappingResponse { + #[serde(rename = "credential_list_mappings", skip_serializing_if = "Option::is_none")] + pub credential_list_mappings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipCredentialListMappingResponse { + pub fn new() -> ListSipCredentialListMappingResponse { + ListSipCredentialListMappingResponse { + credential_list_mappings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_list_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_list_response.rs new file mode 100644 index 00000000..2c867bac --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_list_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipCredentialListResponse { + #[serde(rename = "credential_lists", skip_serializing_if = "Option::is_none")] + pub credential_lists: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipCredentialListResponse { + pub fn new() -> ListSipCredentialListResponse { + ListSipCredentialListResponse { + credential_lists: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_response.rs new file mode 100644 index 00000000..0b135b53 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_credential_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipCredentialResponse { + #[serde(rename = "credentials", skip_serializing_if = "Option::is_none")] + pub credentials: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipCredentialResponse { + pub fn new() -> ListSipCredentialResponse { + ListSipCredentialResponse { + credentials: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_domain_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_domain_response.rs new file mode 100644 index 00000000..7e962834 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_domain_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipDomainResponse { + #[serde(rename = "domains", skip_serializing_if = "Option::is_none")] + pub domains: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipDomainResponse { + pub fn new() -> ListSipDomainResponse { + ListSipDomainResponse { + domains: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_access_control_list_mapping_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_access_control_list_mapping_response.rs new file mode 100644 index 00000000..7ad51b46 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_access_control_list_mapping_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipIpAccessControlListMappingResponse { + #[serde(rename = "ip_access_control_list_mappings", skip_serializing_if = "Option::is_none")] + pub ip_access_control_list_mappings: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipIpAccessControlListMappingResponse { + pub fn new() -> ListSipIpAccessControlListMappingResponse { + ListSipIpAccessControlListMappingResponse { + ip_access_control_list_mappings: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_access_control_list_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_access_control_list_response.rs new file mode 100644 index 00000000..f27661d4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_access_control_list_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipIpAccessControlListResponse { + #[serde(rename = "ip_access_control_lists", skip_serializing_if = "Option::is_none")] + pub ip_access_control_lists: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipIpAccessControlListResponse { + pub fn new() -> ListSipIpAccessControlListResponse { + ListSipIpAccessControlListResponse { + ip_access_control_lists: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_address_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_address_response.rs new file mode 100644 index 00000000..12100cf4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_sip_ip_address_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListSipIpAddressResponse { + #[serde(rename = "ip_addresses", skip_serializing_if = "Option::is_none")] + pub ip_addresses: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListSipIpAddressResponse { + pub fn new() -> ListSipIpAddressResponse { + ListSipIpAddressResponse { + ip_addresses: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_transcription_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_transcription_response.rs new file mode 100644 index 00000000..0e22af4c --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_transcription_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListTranscriptionResponse { + #[serde(rename = "transcriptions", skip_serializing_if = "Option::is_none")] + pub transcriptions: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListTranscriptionResponse { + pub fn new() -> ListTranscriptionResponse { + ListTranscriptionResponse { + transcriptions: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_all_time_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_all_time_response.rs new file mode 100644 index 00000000..5fae25b4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_all_time_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordAllTimeResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordAllTimeResponse { + pub fn new() -> ListUsageRecordAllTimeResponse { + ListUsageRecordAllTimeResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_daily_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_daily_response.rs new file mode 100644 index 00000000..bf57b390 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_daily_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordDailyResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordDailyResponse { + pub fn new() -> ListUsageRecordDailyResponse { + ListUsageRecordDailyResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_last_month_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_last_month_response.rs new file mode 100644 index 00000000..88a69840 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_last_month_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordLastMonthResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordLastMonthResponse { + pub fn new() -> ListUsageRecordLastMonthResponse { + ListUsageRecordLastMonthResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_monthly_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_monthly_response.rs new file mode 100644 index 00000000..b735da07 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_monthly_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordMonthlyResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordMonthlyResponse { + pub fn new() -> ListUsageRecordMonthlyResponse { + ListUsageRecordMonthlyResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_response.rs new file mode 100644 index 00000000..9cc8b41b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordResponse { + pub fn new() -> ListUsageRecordResponse { + ListUsageRecordResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_this_month_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_this_month_response.rs new file mode 100644 index 00000000..ed8dfbc4 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_this_month_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordThisMonthResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordThisMonthResponse { + pub fn new() -> ListUsageRecordThisMonthResponse { + ListUsageRecordThisMonthResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_today_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_today_response.rs new file mode 100644 index 00000000..dc418633 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_today_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordTodayResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordTodayResponse { + pub fn new() -> ListUsageRecordTodayResponse { + ListUsageRecordTodayResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_yearly_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_yearly_response.rs new file mode 100644 index 00000000..61cea0c7 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_yearly_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordYearlyResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordYearlyResponse { + pub fn new() -> ListUsageRecordYearlyResponse { + ListUsageRecordYearlyResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_yesterday_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_yesterday_response.rs new file mode 100644 index 00000000..750b83c3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_record_yesterday_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageRecordYesterdayResponse { + #[serde(rename = "usage_records", skip_serializing_if = "Option::is_none")] + pub usage_records: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageRecordYesterdayResponse { + pub fn new() -> ListUsageRecordYesterdayResponse { + ListUsageRecordYesterdayResponse { + usage_records: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_trigger_response.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_trigger_response.rs new file mode 100644 index 00000000..19fd8011 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/list_usage_trigger_response.rs @@ -0,0 +1,52 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListUsageTriggerResponse { + #[serde(rename = "usage_triggers", skip_serializing_if = "Option::is_none")] + pub usage_triggers: Option>, + #[serde(rename = "end", skip_serializing_if = "Option::is_none")] + pub end: Option, + #[serde(rename = "first_page_uri", skip_serializing_if = "Option::is_none")] + pub first_page_uri: Option, + #[serde(rename = "next_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub next_page_uri: Option>, + #[serde(rename = "page", skip_serializing_if = "Option::is_none")] + pub page: Option, + #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")] + pub page_size: Option, + #[serde(rename = "previous_page_uri", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub previous_page_uri: Option>, + #[serde(rename = "start", skip_serializing_if = "Option::is_none")] + pub start: Option, + #[serde(rename = "uri", skip_serializing_if = "Option::is_none")] + pub uri: Option, +} + +impl ListUsageTriggerResponse { + pub fn new() -> ListUsageTriggerResponse { + ListUsageTriggerResponse { + usage_triggers: None, + end: None, + first_page_uri: None, + next_page_uri: None, + page: None, + page_size: None, + previous_page_uri: None, + start: None, + uri: None, + } + } +} + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_address_retention.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_address_retention.rs new file mode 100644 index 00000000..e945fce1 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_address_retention.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumAddressRetention { + #[serde(rename = "retain")] + Retain, + #[serde(rename = "obfuscate")] + Obfuscate, + +} + +impl ToString for MessageEnumAddressRetention { + fn to_string(&self) -> String { + match self { + Self::Retain => String::from("retain"), + Self::Obfuscate => String::from("obfuscate"), + } + } +} + +impl Default for MessageEnumAddressRetention { + fn default() -> MessageEnumAddressRetention { + Self::Retain + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_content_retention.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_content_retention.rs new file mode 100644 index 00000000..ed6d9280 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_content_retention.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumContentRetention { + #[serde(rename = "retain")] + Retain, + #[serde(rename = "discard")] + Discard, + +} + +impl ToString for MessageEnumContentRetention { + fn to_string(&self) -> String { + match self { + Self::Retain => String::from("retain"), + Self::Discard => String::from("discard"), + } + } +} + +impl Default for MessageEnumContentRetention { + fn default() -> MessageEnumContentRetention { + Self::Retain + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_direction.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_direction.rs new file mode 100644 index 00000000..380e47e9 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_direction.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumDirection { + #[serde(rename = "inbound")] + Inbound, + #[serde(rename = "outbound-api")] + OutboundApi, + #[serde(rename = "outbound-call")] + OutboundCall, + #[serde(rename = "outbound-reply")] + OutboundReply, + +} + +impl ToString for MessageEnumDirection { + fn to_string(&self) -> String { + match self { + Self::Inbound => String::from("inbound"), + Self::OutboundApi => String::from("outbound-api"), + Self::OutboundCall => String::from("outbound-call"), + Self::OutboundReply => String::from("outbound-reply"), + } + } +} + +impl Default for MessageEnumDirection { + fn default() -> MessageEnumDirection { + Self::Inbound + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_risk_check.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_risk_check.rs new file mode 100644 index 00000000..262f0072 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_risk_check.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumRiskCheck { + #[serde(rename = "enable")] + Enable, + #[serde(rename = "disable")] + Disable, + +} + +impl ToString for MessageEnumRiskCheck { + fn to_string(&self) -> String { + match self { + Self::Enable => String::from("enable"), + Self::Disable => String::from("disable"), + } + } +} + +impl Default for MessageEnumRiskCheck { + fn default() -> MessageEnumRiskCheck { + Self::Enable + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_schedule_type.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_schedule_type.rs new file mode 100644 index 00000000..cfbb1923 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_schedule_type.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumScheduleType { + #[serde(rename = "fixed")] + Fixed, + +} + +impl ToString for MessageEnumScheduleType { + fn to_string(&self) -> String { + match self { + Self::Fixed => String::from("fixed"), + } + } +} + +impl Default for MessageEnumScheduleType { + fn default() -> MessageEnumScheduleType { + Self::Fixed + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_status.rs new file mode 100644 index 00000000..a2750521 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_status.rs @@ -0,0 +1,72 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "sending")] + Sending, + #[serde(rename = "sent")] + Sent, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "delivered")] + Delivered, + #[serde(rename = "undelivered")] + Undelivered, + #[serde(rename = "receiving")] + Receiving, + #[serde(rename = "received")] + Received, + #[serde(rename = "accepted")] + Accepted, + #[serde(rename = "scheduled")] + Scheduled, + #[serde(rename = "read")] + Read, + #[serde(rename = "partially_delivered")] + PartiallyDelivered, + #[serde(rename = "canceled")] + Canceled, + +} + +impl ToString for MessageEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::Sending => String::from("sending"), + Self::Sent => String::from("sent"), + Self::Failed => String::from("failed"), + Self::Delivered => String::from("delivered"), + Self::Undelivered => String::from("undelivered"), + Self::Receiving => String::from("receiving"), + Self::Received => String::from("received"), + Self::Accepted => String::from("accepted"), + Self::Scheduled => String::from("scheduled"), + Self::Read => String::from("read"), + Self::PartiallyDelivered => String::from("partially_delivered"), + Self::Canceled => String::from("canceled"), + } + } +} + +impl Default for MessageEnumStatus { + fn default() -> MessageEnumStatus { + Self::Queued + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_traffic_type.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_traffic_type.rs new file mode 100644 index 00000000..cafb6511 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_traffic_type.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumTrafficType { + #[serde(rename = "free")] + Free, + +} + +impl ToString for MessageEnumTrafficType { + fn to_string(&self) -> String { + match self { + Self::Free => String::from("free"), + } + } +} + +impl Default for MessageEnumTrafficType { + fn default() -> MessageEnumTrafficType { + Self::Free + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_update_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_update_status.rs new file mode 100644 index 00000000..80b63cf6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_enum_update_status.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageEnumUpdateStatus { + #[serde(rename = "canceled")] + Canceled, + +} + +impl ToString for MessageEnumUpdateStatus { + fn to_string(&self) -> String { + match self { + Self::Canceled => String::from("canceled"), + } + } +} + +impl Default for MessageEnumUpdateStatus { + fn default() -> MessageEnumUpdateStatus { + Self::Canceled + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/message_feedback_enum_outcome.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/message_feedback_enum_outcome.rs new file mode 100644 index 00000000..e1c0f9fb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/message_feedback_enum_outcome.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum MessageFeedbackEnumOutcome { + #[serde(rename = "confirmed")] + Confirmed, + #[serde(rename = "unconfirmed")] + Unconfirmed, + +} + +impl ToString for MessageFeedbackEnumOutcome { + fn to_string(&self) -> String { + match self { + Self::Confirmed => String::from("confirmed"), + Self::Unconfirmed => String::from("unconfirmed"), + } + } +} + +impl Default for MessageFeedbackEnumOutcome { + fn default() -> MessageFeedbackEnumOutcome { + Self::Confirmed + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/mod.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/mod.rs new file mode 100644 index 00000000..b02371e0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/mod.rs @@ -0,0 +1,426 @@ +pub mod account_enum_status; +pub use self::account_enum_status::AccountEnumStatus; +pub mod account_enum_type; +pub use self::account_enum_type::AccountEnumType; +pub mod api_period_v2010_period_account; +pub use self::api_period_v2010_period_account::ApiPeriodV2010PeriodAccount; +pub mod api_period_v2010_period_account_period_address; +pub use self::api_period_v2010_period_account_period_address::ApiPeriodV2010PeriodAccountPeriodAddress; +pub mod api_period_v2010_period_account_period_address_period_dependent_phone_number; +pub use self::api_period_v2010_period_account_period_address_period_dependent_phone_number::ApiPeriodV2010PeriodAccountPeriodAddressPeriodDependentPhoneNumber; +pub mod api_period_v2010_period_account_period_application; +pub use self::api_period_v2010_period_account_period_application::ApiPeriodV2010PeriodAccountPeriodApplication; +pub mod api_period_v2010_period_account_period_authorized_connect_app; +pub use self::api_period_v2010_period_account_period_authorized_connect_app::ApiPeriodV2010PeriodAccountPeriodAuthorizedConnectApp; +pub mod api_period_v2010_period_account_period_available_phone_number_country; +pub use self::api_period_v2010_period_account_period_available_phone_number_country::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountry; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_local::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberLocal; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_machine_to_machine::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMachineToMachine; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_mobile::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberMobile; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_national::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberNational; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_shared_cost::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberSharedCost; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_toll_free::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberTollFree; +pub mod api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip; +pub use self::api_period_v2010_period_account_period_available_phone_number_country_period_available_phone_number_voip::ApiPeriodV2010PeriodAccountPeriodAvailablePhoneNumberCountryPeriodAvailablePhoneNumberVoip; +pub mod api_period_v2010_period_account_period_balance; +pub use self::api_period_v2010_period_account_period_balance::ApiPeriodV2010PeriodAccountPeriodBalance; +pub mod api_period_v2010_period_account_period_call; +pub use self::api_period_v2010_period_account_period_call::ApiPeriodV2010PeriodAccountPeriodCall; +pub mod api_period_v2010_period_account_period_call_period_call_event; +pub use self::api_period_v2010_period_account_period_call_period_call_event::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallEvent; +pub mod api_period_v2010_period_account_period_call_period_call_feedback; +pub use self::api_period_v2010_period_account_period_call_period_call_feedback::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedback; +pub mod api_period_v2010_period_account_period_call_period_call_feedback_summary; +pub use self::api_period_v2010_period_account_period_call_period_call_feedback_summary::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallFeedbackSummary; +pub mod api_period_v2010_period_account_period_call_period_call_notification; +pub use self::api_period_v2010_period_account_period_call_period_call_notification::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotification; +pub mod api_period_v2010_period_account_period_call_period_call_notification_instance; +pub use self::api_period_v2010_period_account_period_call_period_call_notification_instance::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallNotificationInstance; +pub mod api_period_v2010_period_account_period_call_period_call_recording; +pub use self::api_period_v2010_period_account_period_call_period_call_recording::ApiPeriodV2010PeriodAccountPeriodCallPeriodCallRecording; +pub mod api_period_v2010_period_account_period_call_period_payments; +pub use self::api_period_v2010_period_account_period_call_period_payments::ApiPeriodV2010PeriodAccountPeriodCallPeriodPayments; +pub mod api_period_v2010_period_account_period_call_period_siprec; +pub use self::api_period_v2010_period_account_period_call_period_siprec::ApiPeriodV2010PeriodAccountPeriodCallPeriodSiprec; +pub mod api_period_v2010_period_account_period_call_period_stream; +pub use self::api_period_v2010_period_account_period_call_period_stream::ApiPeriodV2010PeriodAccountPeriodCallPeriodStream; +pub mod api_period_v2010_period_account_period_call_period_user_defined_message; +pub use self::api_period_v2010_period_account_period_call_period_user_defined_message::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessage; +pub mod api_period_v2010_period_account_period_call_period_user_defined_message_subscription; +pub use self::api_period_v2010_period_account_period_call_period_user_defined_message_subscription::ApiPeriodV2010PeriodAccountPeriodCallPeriodUserDefinedMessageSubscription; +pub mod api_period_v2010_period_account_period_conference; +pub use self::api_period_v2010_period_account_period_conference::ApiPeriodV2010PeriodAccountPeriodConference; +pub mod api_period_v2010_period_account_period_conference_period_conference_recording; +pub use self::api_period_v2010_period_account_period_conference_period_conference_recording::ApiPeriodV2010PeriodAccountPeriodConferencePeriodConferenceRecording; +pub mod api_period_v2010_period_account_period_conference_period_participant; +pub use self::api_period_v2010_period_account_period_conference_period_participant::ApiPeriodV2010PeriodAccountPeriodConferencePeriodParticipant; +pub mod api_period_v2010_period_account_period_connect_app; +pub use self::api_period_v2010_period_account_period_connect_app::ApiPeriodV2010PeriodAccountPeriodConnectApp; +pub mod api_period_v2010_period_account_period_incoming_phone_number; +pub use self::api_period_v2010_period_account_period_incoming_phone_number::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumber; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOn; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_assigned_add_on_period_incoming_phone_number_assigned_add_on_extension::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberAssignedAddOnPeriodIncomingPhoneNumberAssignedAddOnExtension; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_local::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberLocal; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_mobile::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberMobile; +pub mod api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free; +pub use self::api_period_v2010_period_account_period_incoming_phone_number_period_incoming_phone_number_toll_free::ApiPeriodV2010PeriodAccountPeriodIncomingPhoneNumberPeriodIncomingPhoneNumberTollFree; +pub mod api_period_v2010_period_account_period_key; +pub use self::api_period_v2010_period_account_period_key::ApiPeriodV2010PeriodAccountPeriodKey; +pub mod api_period_v2010_period_account_period_message; +pub use self::api_period_v2010_period_account_period_message::ApiPeriodV2010PeriodAccountPeriodMessage; +pub mod api_period_v2010_period_account_period_message_period_media; +pub use self::api_period_v2010_period_account_period_message_period_media::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMedia; +pub mod api_period_v2010_period_account_period_message_period_message_feedback; +pub use self::api_period_v2010_period_account_period_message_period_message_feedback::ApiPeriodV2010PeriodAccountPeriodMessagePeriodMessageFeedback; +pub mod api_period_v2010_period_account_period_new_key; +pub use self::api_period_v2010_period_account_period_new_key::ApiPeriodV2010PeriodAccountPeriodNewKey; +pub mod api_period_v2010_period_account_period_new_signing_key; +pub use self::api_period_v2010_period_account_period_new_signing_key::ApiPeriodV2010PeriodAccountPeriodNewSigningKey; +pub mod api_period_v2010_period_account_period_notification; +pub use self::api_period_v2010_period_account_period_notification::ApiPeriodV2010PeriodAccountPeriodNotification; +pub mod api_period_v2010_period_account_period_notification_instance; +pub use self::api_period_v2010_period_account_period_notification_instance::ApiPeriodV2010PeriodAccountPeriodNotificationInstance; +pub mod api_period_v2010_period_account_period_outgoing_caller_id; +pub use self::api_period_v2010_period_account_period_outgoing_caller_id::ApiPeriodV2010PeriodAccountPeriodOutgoingCallerId; +pub mod api_period_v2010_period_account_period_queue; +pub use self::api_period_v2010_period_account_period_queue::ApiPeriodV2010PeriodAccountPeriodQueue; +pub mod api_period_v2010_period_account_period_queue_period_member; +pub use self::api_period_v2010_period_account_period_queue_period_member::ApiPeriodV2010PeriodAccountPeriodQueuePeriodMember; +pub mod api_period_v2010_period_account_period_recording; +pub use self::api_period_v2010_period_account_period_recording::ApiPeriodV2010PeriodAccountPeriodRecording; +pub mod api_period_v2010_period_account_period_recording_period_recording_add_on_result; +pub use self::api_period_v2010_period_account_period_recording_period_recording_add_on_result::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResult; +pub mod api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload; +pub use self::api_period_v2010_period_account_period_recording_period_recording_add_on_result_period_recording_add_on_result_payload::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingAddOnResultPeriodRecordingAddOnResultPayload; +pub mod api_period_v2010_period_account_period_recording_period_recording_transcription; +pub use self::api_period_v2010_period_account_period_recording_period_recording_transcription::ApiPeriodV2010PeriodAccountPeriodRecordingPeriodRecordingTranscription; +pub mod api_period_v2010_period_account_period_short_code; +pub use self::api_period_v2010_period_account_period_short_code::ApiPeriodV2010PeriodAccountPeriodShortCode; +pub mod api_period_v2010_period_account_period_signing_key; +pub use self::api_period_v2010_period_account_period_signing_key::ApiPeriodV2010PeriodAccountPeriodSigningKey; +pub mod api_period_v2010_period_account_period_sip_period_sip_credential_list; +pub use self::api_period_v2010_period_account_period_sip_period_sip_credential_list::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialList; +pub mod api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential; +pub use self::api_period_v2010_period_account_period_sip_period_sip_credential_list_period_sip_credential::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipCredentialListPeriodSipCredential; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomain; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_credential_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsCredentialListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_calls_period_sip_auth_calls_ip_access_control_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthCallsPeriodSipAuthCallsIpAccessControlListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_auth_period_sip_auth_registrations_period_sip_auth_registrations_credential_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipAuthPeriodSipAuthRegistrationsPeriodSipAuthRegistrationsCredentialListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_credential_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipCredentialListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping; +pub use self::api_period_v2010_period_account_period_sip_period_sip_domain_period_sip_ip_access_control_list_mapping::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipDomainPeriodSipIpAccessControlListMapping; +pub mod api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list; +pub use self::api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlList; +pub mod api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address; +pub use self::api_period_v2010_period_account_period_sip_period_sip_ip_access_control_list_period_sip_ip_address::ApiPeriodV2010PeriodAccountPeriodSipPeriodSipIpAccessControlListPeriodSipIpAddress; +pub mod api_period_v2010_period_account_period_token; +pub use self::api_period_v2010_period_account_period_token::ApiPeriodV2010PeriodAccountPeriodToken; +pub mod api_period_v2010_period_account_period_transcription; +pub use self::api_period_v2010_period_account_period_transcription::ApiPeriodV2010PeriodAccountPeriodTranscription; +pub mod api_period_v2010_period_account_period_usage_period_usage_record; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecord; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_all_time::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordAllTime; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_daily::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordDaily; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_last_month::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordLastMonth; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_monthly::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordMonthly; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_this_month::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordThisMonth; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_today::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordToday; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yearly::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYearly; +pub mod api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday; +pub use self::api_period_v2010_period_account_period_usage_period_usage_record_period_usage_record_yesterday::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageRecordPeriodUsageRecordYesterday; +pub mod api_period_v2010_period_account_period_usage_period_usage_trigger; +pub use self::api_period_v2010_period_account_period_usage_period_usage_trigger::ApiPeriodV2010PeriodAccountPeriodUsagePeriodUsageTrigger; +pub mod api_period_v2010_period_account_period_validation_request; +pub use self::api_period_v2010_period_account_period_validation_request::ApiPeriodV2010PeriodAccountPeriodValidationRequest; +pub mod api_period_v2010_period_safelist; +pub use self::api_period_v2010_period_safelist::ApiPeriodV2010PeriodSafelist; +pub mod api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities; +pub use self::api_v2010_account_available_phone_number_country_available_phone_number_local_capabilities::ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalCapabilities; +pub mod api_v2010_account_incoming_phone_number_capabilities; +pub use self::api_v2010_account_incoming_phone_number_capabilities::ApiV2010AccountIncomingPhoneNumberCapabilities; +pub mod api_v2010_account_token_ice_servers_inner; +pub use self::api_v2010_account_token_ice_servers_inner::ApiV2010AccountTokenIceServersInner; +pub mod authorized_connect_app_enum_permission; +pub use self::authorized_connect_app_enum_permission::AuthorizedConnectAppEnumPermission; +pub mod call_enum_event; +pub use self::call_enum_event::CallEnumEvent; +pub mod call_enum_status; +pub use self::call_enum_status::CallEnumStatus; +pub mod call_enum_update_status; +pub use self::call_enum_update_status::CallEnumUpdateStatus; +pub mod call_feedback_enum_issues; +pub use self::call_feedback_enum_issues::CallFeedbackEnumIssues; +pub mod call_feedback_summary_enum_status; +pub use self::call_feedback_summary_enum_status::CallFeedbackSummaryEnumStatus; +pub mod call_recording_enum_source; +pub use self::call_recording_enum_source::CallRecordingEnumSource; +pub mod call_recording_enum_status; +pub use self::call_recording_enum_status::CallRecordingEnumStatus; +pub mod conference_enum_reason_conference_ended; +pub use self::conference_enum_reason_conference_ended::ConferenceEnumReasonConferenceEnded; +pub mod conference_enum_status; +pub use self::conference_enum_status::ConferenceEnumStatus; +pub mod conference_enum_update_status; +pub use self::conference_enum_update_status::ConferenceEnumUpdateStatus; +pub mod conference_recording_enum_source; +pub use self::conference_recording_enum_source::ConferenceRecordingEnumSource; +pub mod conference_recording_enum_status; +pub use self::conference_recording_enum_status::ConferenceRecordingEnumStatus; +pub mod connect_app_enum_permission; +pub use self::connect_app_enum_permission::ConnectAppEnumPermission; +pub mod dependent_phone_number_enum_address_requirement; +pub use self::dependent_phone_number_enum_address_requirement::DependentPhoneNumberEnumAddressRequirement; +pub mod dependent_phone_number_enum_emergency_status; +pub use self::dependent_phone_number_enum_emergency_status::DependentPhoneNumberEnumEmergencyStatus; +pub mod incoming_phone_number_enum_address_requirement; +pub use self::incoming_phone_number_enum_address_requirement::IncomingPhoneNumberEnumAddressRequirement; +pub mod incoming_phone_number_enum_emergency_address_status; +pub use self::incoming_phone_number_enum_emergency_address_status::IncomingPhoneNumberEnumEmergencyAddressStatus; +pub mod incoming_phone_number_enum_emergency_status; +pub use self::incoming_phone_number_enum_emergency_status::IncomingPhoneNumberEnumEmergencyStatus; +pub mod incoming_phone_number_enum_voice_receive_mode; +pub use self::incoming_phone_number_enum_voice_receive_mode::IncomingPhoneNumberEnumVoiceReceiveMode; +pub mod incoming_phone_number_local_enum_address_requirement; +pub use self::incoming_phone_number_local_enum_address_requirement::IncomingPhoneNumberLocalEnumAddressRequirement; +pub mod incoming_phone_number_local_enum_emergency_address_status; +pub use self::incoming_phone_number_local_enum_emergency_address_status::IncomingPhoneNumberLocalEnumEmergencyAddressStatus; +pub mod incoming_phone_number_local_enum_emergency_status; +pub use self::incoming_phone_number_local_enum_emergency_status::IncomingPhoneNumberLocalEnumEmergencyStatus; +pub mod incoming_phone_number_local_enum_voice_receive_mode; +pub use self::incoming_phone_number_local_enum_voice_receive_mode::IncomingPhoneNumberLocalEnumVoiceReceiveMode; +pub mod incoming_phone_number_mobile_enum_address_requirement; +pub use self::incoming_phone_number_mobile_enum_address_requirement::IncomingPhoneNumberMobileEnumAddressRequirement; +pub mod incoming_phone_number_mobile_enum_emergency_address_status; +pub use self::incoming_phone_number_mobile_enum_emergency_address_status::IncomingPhoneNumberMobileEnumEmergencyAddressStatus; +pub mod incoming_phone_number_mobile_enum_emergency_status; +pub use self::incoming_phone_number_mobile_enum_emergency_status::IncomingPhoneNumberMobileEnumEmergencyStatus; +pub mod incoming_phone_number_mobile_enum_voice_receive_mode; +pub use self::incoming_phone_number_mobile_enum_voice_receive_mode::IncomingPhoneNumberMobileEnumVoiceReceiveMode; +pub mod incoming_phone_number_toll_free_enum_address_requirement; +pub use self::incoming_phone_number_toll_free_enum_address_requirement::IncomingPhoneNumberTollFreeEnumAddressRequirement; +pub mod incoming_phone_number_toll_free_enum_emergency_address_status; +pub use self::incoming_phone_number_toll_free_enum_emergency_address_status::IncomingPhoneNumberTollFreeEnumEmergencyAddressStatus; +pub mod incoming_phone_number_toll_free_enum_emergency_status; +pub use self::incoming_phone_number_toll_free_enum_emergency_status::IncomingPhoneNumberTollFreeEnumEmergencyStatus; +pub mod incoming_phone_number_toll_free_enum_voice_receive_mode; +pub use self::incoming_phone_number_toll_free_enum_voice_receive_mode::IncomingPhoneNumberTollFreeEnumVoiceReceiveMode; +pub mod list_account_response; +pub use self::list_account_response::ListAccountResponse; +pub mod list_address_response; +pub use self::list_address_response::ListAddressResponse; +pub mod list_application_response; +pub use self::list_application_response::ListApplicationResponse; +pub mod list_authorized_connect_app_response; +pub use self::list_authorized_connect_app_response::ListAuthorizedConnectAppResponse; +pub mod list_available_phone_number_country_response; +pub use self::list_available_phone_number_country_response::ListAvailablePhoneNumberCountryResponse; +pub mod list_available_phone_number_local_response; +pub use self::list_available_phone_number_local_response::ListAvailablePhoneNumberLocalResponse; +pub mod list_available_phone_number_machine_to_machine_response; +pub use self::list_available_phone_number_machine_to_machine_response::ListAvailablePhoneNumberMachineToMachineResponse; +pub mod list_available_phone_number_mobile_response; +pub use self::list_available_phone_number_mobile_response::ListAvailablePhoneNumberMobileResponse; +pub mod list_available_phone_number_national_response; +pub use self::list_available_phone_number_national_response::ListAvailablePhoneNumberNationalResponse; +pub mod list_available_phone_number_shared_cost_response; +pub use self::list_available_phone_number_shared_cost_response::ListAvailablePhoneNumberSharedCostResponse; +pub mod list_available_phone_number_toll_free_response; +pub use self::list_available_phone_number_toll_free_response::ListAvailablePhoneNumberTollFreeResponse; +pub mod list_available_phone_number_voip_response; +pub use self::list_available_phone_number_voip_response::ListAvailablePhoneNumberVoipResponse; +pub mod list_call_event_response; +pub use self::list_call_event_response::ListCallEventResponse; +pub mod list_call_notification_response; +pub use self::list_call_notification_response::ListCallNotificationResponse; +pub mod list_call_recording_response; +pub use self::list_call_recording_response::ListCallRecordingResponse; +pub mod list_call_response; +pub use self::list_call_response::ListCallResponse; +pub mod list_conference_recording_response; +pub use self::list_conference_recording_response::ListConferenceRecordingResponse; +pub mod list_conference_response; +pub use self::list_conference_response::ListConferenceResponse; +pub mod list_connect_app_response; +pub use self::list_connect_app_response::ListConnectAppResponse; +pub mod list_dependent_phone_number_response; +pub use self::list_dependent_phone_number_response::ListDependentPhoneNumberResponse; +pub mod list_incoming_phone_number_assigned_add_on_extension_response; +pub use self::list_incoming_phone_number_assigned_add_on_extension_response::ListIncomingPhoneNumberAssignedAddOnExtensionResponse; +pub mod list_incoming_phone_number_assigned_add_on_response; +pub use self::list_incoming_phone_number_assigned_add_on_response::ListIncomingPhoneNumberAssignedAddOnResponse; +pub mod list_incoming_phone_number_local_response; +pub use self::list_incoming_phone_number_local_response::ListIncomingPhoneNumberLocalResponse; +pub mod list_incoming_phone_number_mobile_response; +pub use self::list_incoming_phone_number_mobile_response::ListIncomingPhoneNumberMobileResponse; +pub mod list_incoming_phone_number_response; +pub use self::list_incoming_phone_number_response::ListIncomingPhoneNumberResponse; +pub mod list_incoming_phone_number_toll_free_response; +pub use self::list_incoming_phone_number_toll_free_response::ListIncomingPhoneNumberTollFreeResponse; +pub mod list_key_response; +pub use self::list_key_response::ListKeyResponse; +pub mod list_media_response; +pub use self::list_media_response::ListMediaResponse; +pub mod list_member_response; +pub use self::list_member_response::ListMemberResponse; +pub mod list_message_response; +pub use self::list_message_response::ListMessageResponse; +pub mod list_notification_response; +pub use self::list_notification_response::ListNotificationResponse; +pub mod list_outgoing_caller_id_response; +pub use self::list_outgoing_caller_id_response::ListOutgoingCallerIdResponse; +pub mod list_participant_response; +pub use self::list_participant_response::ListParticipantResponse; +pub mod list_queue_response; +pub use self::list_queue_response::ListQueueResponse; +pub mod list_recording_add_on_result_payload_response; +pub use self::list_recording_add_on_result_payload_response::ListRecordingAddOnResultPayloadResponse; +pub mod list_recording_add_on_result_response; +pub use self::list_recording_add_on_result_response::ListRecordingAddOnResultResponse; +pub mod list_recording_response; +pub use self::list_recording_response::ListRecordingResponse; +pub mod list_recording_transcription_response; +pub use self::list_recording_transcription_response::ListRecordingTranscriptionResponse; +pub mod list_short_code_response; +pub use self::list_short_code_response::ListShortCodeResponse; +pub mod list_signing_key_response; +pub use self::list_signing_key_response::ListSigningKeyResponse; +pub mod list_sip_auth_calls_credential_list_mapping_response; +pub use self::list_sip_auth_calls_credential_list_mapping_response::ListSipAuthCallsCredentialListMappingResponse; +pub mod list_sip_auth_calls_ip_access_control_list_mapping_response; +pub use self::list_sip_auth_calls_ip_access_control_list_mapping_response::ListSipAuthCallsIpAccessControlListMappingResponse; +pub mod list_sip_auth_registrations_credential_list_mapping_response; +pub use self::list_sip_auth_registrations_credential_list_mapping_response::ListSipAuthRegistrationsCredentialListMappingResponse; +pub mod list_sip_credential_list_mapping_response; +pub use self::list_sip_credential_list_mapping_response::ListSipCredentialListMappingResponse; +pub mod list_sip_credential_list_response; +pub use self::list_sip_credential_list_response::ListSipCredentialListResponse; +pub mod list_sip_credential_response; +pub use self::list_sip_credential_response::ListSipCredentialResponse; +pub mod list_sip_domain_response; +pub use self::list_sip_domain_response::ListSipDomainResponse; +pub mod list_sip_ip_access_control_list_mapping_response; +pub use self::list_sip_ip_access_control_list_mapping_response::ListSipIpAccessControlListMappingResponse; +pub mod list_sip_ip_access_control_list_response; +pub use self::list_sip_ip_access_control_list_response::ListSipIpAccessControlListResponse; +pub mod list_sip_ip_address_response; +pub use self::list_sip_ip_address_response::ListSipIpAddressResponse; +pub mod list_transcription_response; +pub use self::list_transcription_response::ListTranscriptionResponse; +pub mod list_usage_record_all_time_response; +pub use self::list_usage_record_all_time_response::ListUsageRecordAllTimeResponse; +pub mod list_usage_record_daily_response; +pub use self::list_usage_record_daily_response::ListUsageRecordDailyResponse; +pub mod list_usage_record_last_month_response; +pub use self::list_usage_record_last_month_response::ListUsageRecordLastMonthResponse; +pub mod list_usage_record_monthly_response; +pub use self::list_usage_record_monthly_response::ListUsageRecordMonthlyResponse; +pub mod list_usage_record_response; +pub use self::list_usage_record_response::ListUsageRecordResponse; +pub mod list_usage_record_this_month_response; +pub use self::list_usage_record_this_month_response::ListUsageRecordThisMonthResponse; +pub mod list_usage_record_today_response; +pub use self::list_usage_record_today_response::ListUsageRecordTodayResponse; +pub mod list_usage_record_yearly_response; +pub use self::list_usage_record_yearly_response::ListUsageRecordYearlyResponse; +pub mod list_usage_record_yesterday_response; +pub use self::list_usage_record_yesterday_response::ListUsageRecordYesterdayResponse; +pub mod list_usage_trigger_response; +pub use self::list_usage_trigger_response::ListUsageTriggerResponse; +pub mod message_enum_address_retention; +pub use self::message_enum_address_retention::MessageEnumAddressRetention; +pub mod message_enum_content_retention; +pub use self::message_enum_content_retention::MessageEnumContentRetention; +pub mod message_enum_direction; +pub use self::message_enum_direction::MessageEnumDirection; +pub mod message_enum_risk_check; +pub use self::message_enum_risk_check::MessageEnumRiskCheck; +pub mod message_enum_schedule_type; +pub use self::message_enum_schedule_type::MessageEnumScheduleType; +pub mod message_enum_status; +pub use self::message_enum_status::MessageEnumStatus; +pub mod message_enum_traffic_type; +pub use self::message_enum_traffic_type::MessageEnumTrafficType; +pub mod message_enum_update_status; +pub use self::message_enum_update_status::MessageEnumUpdateStatus; +pub mod message_feedback_enum_outcome; +pub use self::message_feedback_enum_outcome::MessageFeedbackEnumOutcome; +pub mod participant_enum_status; +pub use self::participant_enum_status::ParticipantEnumStatus; +pub mod payments_enum_bank_account_type; +pub use self::payments_enum_bank_account_type::PaymentsEnumBankAccountType; +pub mod payments_enum_capture; +pub use self::payments_enum_capture::PaymentsEnumCapture; +pub mod payments_enum_payment_method; +pub use self::payments_enum_payment_method::PaymentsEnumPaymentMethod; +pub mod payments_enum_status; +pub use self::payments_enum_status::PaymentsEnumStatus; +pub mod payments_enum_token_type; +pub use self::payments_enum_token_type::PaymentsEnumTokenType; +pub mod recording_add_on_result_enum_status; +pub use self::recording_add_on_result_enum_status::RecordingAddOnResultEnumStatus; +pub mod recording_enum_source; +pub use self::recording_enum_source::RecordingEnumSource; +pub mod recording_enum_status; +pub use self::recording_enum_status::RecordingEnumStatus; +pub mod recording_transcription_enum_status; +pub use self::recording_transcription_enum_status::RecordingTranscriptionEnumStatus; +pub mod siprec_enum_status; +pub use self::siprec_enum_status::SiprecEnumStatus; +pub mod siprec_enum_track; +pub use self::siprec_enum_track::SiprecEnumTrack; +pub mod siprec_enum_update_status; +pub use self::siprec_enum_update_status::SiprecEnumUpdateStatus; +pub mod stream_enum_status; +pub use self::stream_enum_status::StreamEnumStatus; +pub mod stream_enum_track; +pub use self::stream_enum_track::StreamEnumTrack; +pub mod stream_enum_update_status; +pub use self::stream_enum_update_status::StreamEnumUpdateStatus; +pub mod transcription_enum_status; +pub use self::transcription_enum_status::TranscriptionEnumStatus; +pub mod usage_record_all_time_enum_category; +pub use self::usage_record_all_time_enum_category::UsageRecordAllTimeEnumCategory; +pub mod usage_record_daily_enum_category; +pub use self::usage_record_daily_enum_category::UsageRecordDailyEnumCategory; +pub mod usage_record_enum_category; +pub use self::usage_record_enum_category::UsageRecordEnumCategory; +pub mod usage_record_last_month_enum_category; +pub use self::usage_record_last_month_enum_category::UsageRecordLastMonthEnumCategory; +pub mod usage_record_monthly_enum_category; +pub use self::usage_record_monthly_enum_category::UsageRecordMonthlyEnumCategory; +pub mod usage_record_this_month_enum_category; +pub use self::usage_record_this_month_enum_category::UsageRecordThisMonthEnumCategory; +pub mod usage_record_today_enum_category; +pub use self::usage_record_today_enum_category::UsageRecordTodayEnumCategory; +pub mod usage_record_yearly_enum_category; +pub use self::usage_record_yearly_enum_category::UsageRecordYearlyEnumCategory; +pub mod usage_record_yesterday_enum_category; +pub use self::usage_record_yesterday_enum_category::UsageRecordYesterdayEnumCategory; +pub mod usage_trigger_enum_recurring; +pub use self::usage_trigger_enum_recurring::UsageTriggerEnumRecurring; +pub mod usage_trigger_enum_trigger_field; +pub use self::usage_trigger_enum_trigger_field::UsageTriggerEnumTriggerField; +pub mod usage_trigger_enum_usage_category; +pub use self::usage_trigger_enum_usage_category::UsageTriggerEnumUsageCategory; diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/participant_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/participant_enum_status.rs new file mode 100644 index 00000000..c5a95649 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/participant_enum_status.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ParticipantEnumStatus { + #[serde(rename = "queued")] + Queued, + #[serde(rename = "connecting")] + Connecting, + #[serde(rename = "ringing")] + Ringing, + #[serde(rename = "connected")] + Connected, + #[serde(rename = "complete")] + Complete, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for ParticipantEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Queued => String::from("queued"), + Self::Connecting => String::from("connecting"), + Self::Ringing => String::from("ringing"), + Self::Connected => String::from("connected"), + Self::Complete => String::from("complete"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for ParticipantEnumStatus { + fn default() -> ParticipantEnumStatus { + Self::Queued + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_bank_account_type.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_bank_account_type.rs new file mode 100644 index 00000000..a04cc28d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_bank_account_type.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PaymentsEnumBankAccountType { + #[serde(rename = "consumer-checking")] + ConsumerChecking, + #[serde(rename = "consumer-savings")] + ConsumerSavings, + #[serde(rename = "commercial-checking")] + CommercialChecking, + +} + +impl ToString for PaymentsEnumBankAccountType { + fn to_string(&self) -> String { + match self { + Self::ConsumerChecking => String::from("consumer-checking"), + Self::ConsumerSavings => String::from("consumer-savings"), + Self::CommercialChecking => String::from("commercial-checking"), + } + } +} + +impl Default for PaymentsEnumBankAccountType { + fn default() -> PaymentsEnumBankAccountType { + Self::ConsumerChecking + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_capture.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_capture.rs new file mode 100644 index 00000000..169a356b --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_capture.rs @@ -0,0 +1,51 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PaymentsEnumCapture { + #[serde(rename = "payment-card-number")] + PaymentCardNumber, + #[serde(rename = "expiration-date")] + ExpirationDate, + #[serde(rename = "security-code")] + SecurityCode, + #[serde(rename = "postal-code")] + PostalCode, + #[serde(rename = "bank-routing-number")] + BankRoutingNumber, + #[serde(rename = "bank-account-number")] + BankAccountNumber, + +} + +impl ToString for PaymentsEnumCapture { + fn to_string(&self) -> String { + match self { + Self::PaymentCardNumber => String::from("payment-card-number"), + Self::ExpirationDate => String::from("expiration-date"), + Self::SecurityCode => String::from("security-code"), + Self::PostalCode => String::from("postal-code"), + Self::BankRoutingNumber => String::from("bank-routing-number"), + Self::BankAccountNumber => String::from("bank-account-number"), + } + } +} + +impl Default for PaymentsEnumCapture { + fn default() -> PaymentsEnumCapture { + Self::PaymentCardNumber + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_payment_method.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_payment_method.rs new file mode 100644 index 00000000..b0947619 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_payment_method.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PaymentsEnumPaymentMethod { + #[serde(rename = "credit-card")] + CreditCard, + #[serde(rename = "ach-debit")] + AchDebit, + +} + +impl ToString for PaymentsEnumPaymentMethod { + fn to_string(&self) -> String { + match self { + Self::CreditCard => String::from("credit-card"), + Self::AchDebit => String::from("ach-debit"), + } + } +} + +impl Default for PaymentsEnumPaymentMethod { + fn default() -> PaymentsEnumPaymentMethod { + Self::CreditCard + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_status.rs new file mode 100644 index 00000000..2cfd67ec --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PaymentsEnumStatus { + #[serde(rename = "complete")] + Complete, + #[serde(rename = "cancel")] + Cancel, + +} + +impl ToString for PaymentsEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Complete => String::from("complete"), + Self::Cancel => String::from("cancel"), + } + } +} + +impl Default for PaymentsEnumStatus { + fn default() -> PaymentsEnumStatus { + Self::Complete + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_token_type.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_token_type.rs new file mode 100644 index 00000000..dff253e6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/payments_enum_token_type.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PaymentsEnumTokenType { + #[serde(rename = "one-time")] + OneTime, + #[serde(rename = "reusable")] + Reusable, + +} + +impl ToString for PaymentsEnumTokenType { + fn to_string(&self) -> String { + match self { + Self::OneTime => String::from("one-time"), + Self::Reusable => String::from("reusable"), + } + } +} + +impl Default for PaymentsEnumTokenType { + fn default() -> PaymentsEnumTokenType { + Self::OneTime + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/recording_add_on_result_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_add_on_result_enum_status.rs new file mode 100644 index 00000000..3a78dc0e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_add_on_result_enum_status.rs @@ -0,0 +1,57 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingAddOnResultEnumStatus { + #[serde(rename = "canceled")] + Canceled, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "deleted")] + Deleted, + #[serde(rename = "failed")] + Failed, + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "init")] + Init, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "queued")] + Queued, + +} + +impl ToString for RecordingAddOnResultEnumStatus { + fn to_string(&self) -> String { + match self { + Self::Canceled => String::from("canceled"), + Self::Completed => String::from("completed"), + Self::Deleted => String::from("deleted"), + Self::Failed => String::from("failed"), + Self::InProgress => String::from("in-progress"), + Self::Init => String::from("init"), + Self::Processing => String::from("processing"), + Self::Queued => String::from("queued"), + } + } +} + +impl Default for RecordingAddOnResultEnumStatus { + fn default() -> RecordingAddOnResultEnumStatus { + Self::Canceled + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/recording_enum_source.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_enum_source.rs new file mode 100644 index 00000000..010ab7b6 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_enum_source.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingEnumSource { + #[serde(rename = "DialVerb")] + DialVerb, + #[serde(rename = "Conference")] + Conference, + #[serde(rename = "OutboundAPI")] + OutboundApi, + #[serde(rename = "Trunking")] + Trunking, + #[serde(rename = "RecordVerb")] + RecordVerb, + #[serde(rename = "StartCallRecordingAPI")] + StartCallRecordingApi, + #[serde(rename = "StartConferenceRecordingAPI")] + StartConferenceRecordingApi, + +} + +impl ToString for RecordingEnumSource { + fn to_string(&self) -> String { + match self { + Self::DialVerb => String::from("DialVerb"), + Self::Conference => String::from("Conference"), + Self::OutboundApi => String::from("OutboundAPI"), + Self::Trunking => String::from("Trunking"), + Self::RecordVerb => String::from("RecordVerb"), + Self::StartCallRecordingApi => String::from("StartCallRecordingAPI"), + Self::StartConferenceRecordingApi => String::from("StartConferenceRecordingAPI"), + } + } +} + +impl Default for RecordingEnumSource { + fn default() -> RecordingEnumSource { + Self::DialVerb + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/recording_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_enum_status.rs new file mode 100644 index 00000000..5dc8760e --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_enum_status.rs @@ -0,0 +1,54 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "paused")] + Paused, + #[serde(rename = "stopped")] + Stopped, + #[serde(rename = "processing")] + Processing, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "absent")] + Absent, + #[serde(rename = "deleted")] + Deleted, + +} + +impl ToString for RecordingEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Paused => String::from("paused"), + Self::Stopped => String::from("stopped"), + Self::Processing => String::from("processing"), + Self::Completed => String::from("completed"), + Self::Absent => String::from("absent"), + Self::Deleted => String::from("deleted"), + } + } +} + +impl Default for RecordingEnumStatus { + fn default() -> RecordingEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/recording_transcription_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_transcription_enum_status.rs new file mode 100644 index 00000000..2144f249 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/recording_transcription_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum RecordingTranscriptionEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for RecordingTranscriptionEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for RecordingTranscriptionEnumStatus { + fn default() -> RecordingTranscriptionEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_status.rs new file mode 100644 index 00000000..76837958 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SiprecEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "stopped")] + Stopped, + +} + +impl ToString for SiprecEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Stopped => String::from("stopped"), + } + } +} + +impl Default for SiprecEnumStatus { + fn default() -> SiprecEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_track.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_track.rs new file mode 100644 index 00000000..10d4a336 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_track.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SiprecEnumTrack { + #[serde(rename = "inbound_track")] + InboundTrack, + #[serde(rename = "outbound_track")] + OutboundTrack, + #[serde(rename = "both_tracks")] + BothTracks, + +} + +impl ToString for SiprecEnumTrack { + fn to_string(&self) -> String { + match self { + Self::InboundTrack => String::from("inbound_track"), + Self::OutboundTrack => String::from("outbound_track"), + Self::BothTracks => String::from("both_tracks"), + } + } +} + +impl Default for SiprecEnumTrack { + fn default() -> SiprecEnumTrack { + Self::InboundTrack + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_update_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_update_status.rs new file mode 100644 index 00000000..ac271fee --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/siprec_enum_update_status.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum SiprecEnumUpdateStatus { + #[serde(rename = "stopped")] + Stopped, + +} + +impl ToString for SiprecEnumUpdateStatus { + fn to_string(&self) -> String { + match self { + Self::Stopped => String::from("stopped"), + } + } +} + +impl Default for SiprecEnumUpdateStatus { + fn default() -> SiprecEnumUpdateStatus { + Self::Stopped + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_status.rs new file mode 100644 index 00000000..2cbb4daf --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_status.rs @@ -0,0 +1,39 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StreamEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "stopped")] + Stopped, + +} + +impl ToString for StreamEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Stopped => String::from("stopped"), + } + } +} + +impl Default for StreamEnumStatus { + fn default() -> StreamEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_track.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_track.rs new file mode 100644 index 00000000..c7f9f9e0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_track.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StreamEnumTrack { + #[serde(rename = "inbound_track")] + InboundTrack, + #[serde(rename = "outbound_track")] + OutboundTrack, + #[serde(rename = "both_tracks")] + BothTracks, + +} + +impl ToString for StreamEnumTrack { + fn to_string(&self) -> String { + match self { + Self::InboundTrack => String::from("inbound_track"), + Self::OutboundTrack => String::from("outbound_track"), + Self::BothTracks => String::from("both_tracks"), + } + } +} + +impl Default for StreamEnumTrack { + fn default() -> StreamEnumTrack { + Self::InboundTrack + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_update_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_update_status.rs new file mode 100644 index 00000000..a53868ae --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/stream_enum_update_status.rs @@ -0,0 +1,36 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StreamEnumUpdateStatus { + #[serde(rename = "stopped")] + Stopped, + +} + +impl ToString for StreamEnumUpdateStatus { + fn to_string(&self) -> String { + match self { + Self::Stopped => String::from("stopped"), + } + } +} + +impl Default for StreamEnumUpdateStatus { + fn default() -> StreamEnumUpdateStatus { + Self::Stopped + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/transcription_enum_status.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/transcription_enum_status.rs new file mode 100644 index 00000000..8f28a42f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/transcription_enum_status.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum TranscriptionEnumStatus { + #[serde(rename = "in-progress")] + InProgress, + #[serde(rename = "completed")] + Completed, + #[serde(rename = "failed")] + Failed, + +} + +impl ToString for TranscriptionEnumStatus { + fn to_string(&self) -> String { + match self { + Self::InProgress => String::from("in-progress"), + Self::Completed => String::from("completed"), + Self::Failed => String::from("failed"), + } + } +} + +impl Default for TranscriptionEnumStatus { + fn default() -> TranscriptionEnumStatus { + Self::InProgress + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_all_time_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_all_time_enum_category.rs new file mode 100644 index 00000000..540000c0 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_all_time_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordAllTimeEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordAllTimeEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordAllTimeEnumCategory { + fn default() -> UsageRecordAllTimeEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_daily_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_daily_enum_category.rs new file mode 100644 index 00000000..9f8525c3 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_daily_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordDailyEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordDailyEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordDailyEnumCategory { + fn default() -> UsageRecordDailyEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_enum_category.rs new file mode 100644 index 00000000..6f63fd83 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordEnumCategory { + fn default() -> UsageRecordEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_last_month_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_last_month_enum_category.rs new file mode 100644 index 00000000..d666c6cb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_last_month_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordLastMonthEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordLastMonthEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordLastMonthEnumCategory { + fn default() -> UsageRecordLastMonthEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_monthly_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_monthly_enum_category.rs new file mode 100644 index 00000000..588ea12f --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_monthly_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordMonthlyEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordMonthlyEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordMonthlyEnumCategory { + fn default() -> UsageRecordMonthlyEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_this_month_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_this_month_enum_category.rs new file mode 100644 index 00000000..af71eebb --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_this_month_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordThisMonthEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordThisMonthEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordThisMonthEnumCategory { + fn default() -> UsageRecordThisMonthEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_today_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_today_enum_category.rs new file mode 100644 index 00000000..ef17f471 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_today_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordTodayEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordTodayEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordTodayEnumCategory { + fn default() -> UsageRecordTodayEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_yearly_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_yearly_enum_category.rs new file mode 100644 index 00000000..3c63b427 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_yearly_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordYearlyEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordYearlyEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordYearlyEnumCategory { + fn default() -> UsageRecordYearlyEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_yesterday_enum_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_yesterday_enum_category.rs new file mode 100644 index 00000000..7117c6be --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_record_yesterday_enum_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageRecordYesterdayEnumCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageRecordYesterdayEnumCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageRecordYesterdayEnumCategory { + fn default() -> UsageRecordYesterdayEnumCategory { + Self::A2pRegistrationFees + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_recurring.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_recurring.rs new file mode 100644 index 00000000..8aa8bd17 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_recurring.rs @@ -0,0 +1,45 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageTriggerEnumRecurring { + #[serde(rename = "daily")] + Daily, + #[serde(rename = "monthly")] + Monthly, + #[serde(rename = "yearly")] + Yearly, + #[serde(rename = "alltime")] + Alltime, + +} + +impl ToString for UsageTriggerEnumRecurring { + fn to_string(&self) -> String { + match self { + Self::Daily => String::from("daily"), + Self::Monthly => String::from("monthly"), + Self::Yearly => String::from("yearly"), + Self::Alltime => String::from("alltime"), + } + } +} + +impl Default for UsageTriggerEnumRecurring { + fn default() -> UsageTriggerEnumRecurring { + Self::Daily + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_trigger_field.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_trigger_field.rs new file mode 100644 index 00000000..529d3c6d --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_trigger_field.rs @@ -0,0 +1,42 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageTriggerEnumTriggerField { + #[serde(rename = "count")] + Count, + #[serde(rename = "usage")] + Usage, + #[serde(rename = "price")] + Price, + +} + +impl ToString for UsageTriggerEnumTriggerField { + fn to_string(&self) -> String { + match self { + Self::Count => String::from("count"), + Self::Usage => String::from("usage"), + Self::Price => String::from("price"), + } + } +} + +impl Default for UsageTriggerEnumTriggerField { + fn default() -> UsageTriggerEnumTriggerField { + Self::Count + } +} + + + + diff --git a/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_usage_category.rs b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_usage_category.rs new file mode 100644 index 00000000..50437d78 --- /dev/null +++ b/unmnemonic_devices_vrs/twilio-rust/src/models/usage_trigger_enum_usage_category.rs @@ -0,0 +1,780 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * The version of the OpenAPI document: 1.50.1 + * Contact: support@twilio.com + * Generated by: https://openapi-generator.tech + */ + + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum UsageTriggerEnumUsageCategory { + #[serde(rename = "a2p-registration-fees")] + A2pRegistrationFees, + #[serde(rename = "agent-conference")] + AgentConference, + #[serde(rename = "amazon-polly")] + AmazonPolly, + #[serde(rename = "answering-machine-detection")] + AnsweringMachineDetection, + #[serde(rename = "authy-authentications")] + AuthyAuthentications, + #[serde(rename = "authy-calls-outbound")] + AuthyCallsOutbound, + #[serde(rename = "authy-monthly-fees")] + AuthyMonthlyFees, + #[serde(rename = "authy-phone-intelligence")] + AuthyPhoneIntelligence, + #[serde(rename = "authy-phone-verifications")] + AuthyPhoneVerifications, + #[serde(rename = "authy-sms-outbound")] + AuthySmsOutbound, + #[serde(rename = "call-progess-events")] + CallProgessEvents, + #[serde(rename = "calleridlookups")] + Calleridlookups, + #[serde(rename = "calls")] + Calls, + #[serde(rename = "calls-client")] + CallsClient, + #[serde(rename = "calls-globalconference")] + CallsGlobalconference, + #[serde(rename = "calls-inbound")] + CallsInbound, + #[serde(rename = "calls-inbound-local")] + CallsInboundLocal, + #[serde(rename = "calls-inbound-mobile")] + CallsInboundMobile, + #[serde(rename = "calls-inbound-tollfree")] + CallsInboundTollfree, + #[serde(rename = "calls-outbound")] + CallsOutbound, + #[serde(rename = "calls-pay-verb-transactions")] + CallsPayVerbTransactions, + #[serde(rename = "calls-recordings")] + CallsRecordings, + #[serde(rename = "calls-sip")] + CallsSip, + #[serde(rename = "calls-sip-inbound")] + CallsSipInbound, + #[serde(rename = "calls-sip-outbound")] + CallsSipOutbound, + #[serde(rename = "calls-transfers")] + CallsTransfers, + #[serde(rename = "carrier-lookups")] + CarrierLookups, + #[serde(rename = "conversations")] + Conversations, + #[serde(rename = "conversations-api-requests")] + ConversationsApiRequests, + #[serde(rename = "conversations-conversation-events")] + ConversationsConversationEvents, + #[serde(rename = "conversations-endpoint-connectivity")] + ConversationsEndpointConnectivity, + #[serde(rename = "conversations-events")] + ConversationsEvents, + #[serde(rename = "conversations-participant-events")] + ConversationsParticipantEvents, + #[serde(rename = "conversations-participants")] + ConversationsParticipants, + #[serde(rename = "cps")] + Cps, + #[serde(rename = "flex-usage")] + FlexUsage, + #[serde(rename = "fraud-lookups")] + FraudLookups, + #[serde(rename = "group-rooms")] + GroupRooms, + #[serde(rename = "group-rooms-data-track")] + GroupRoomsDataTrack, + #[serde(rename = "group-rooms-encrypted-media-recorded")] + GroupRoomsEncryptedMediaRecorded, + #[serde(rename = "group-rooms-media-downloaded")] + GroupRoomsMediaDownloaded, + #[serde(rename = "group-rooms-media-recorded")] + GroupRoomsMediaRecorded, + #[serde(rename = "group-rooms-media-routed")] + GroupRoomsMediaRouted, + #[serde(rename = "group-rooms-media-stored")] + GroupRoomsMediaStored, + #[serde(rename = "group-rooms-participant-minutes")] + GroupRoomsParticipantMinutes, + #[serde(rename = "group-rooms-recorded-minutes")] + GroupRoomsRecordedMinutes, + #[serde(rename = "imp-v1-usage")] + ImpV1Usage, + #[serde(rename = "lookups")] + Lookups, + #[serde(rename = "marketplace")] + Marketplace, + #[serde(rename = "marketplace-algorithmia-named-entity-recognition")] + MarketplaceAlgorithmiaNamedEntityRecognition, + #[serde(rename = "marketplace-cadence-transcription")] + MarketplaceCadenceTranscription, + #[serde(rename = "marketplace-cadence-translation")] + MarketplaceCadenceTranslation, + #[serde(rename = "marketplace-capio-speech-to-text")] + MarketplaceCapioSpeechToText, + #[serde(rename = "marketplace-convriza-ababa")] + MarketplaceConvrizaAbaba, + #[serde(rename = "marketplace-deepgram-phrase-detector")] + MarketplaceDeepgramPhraseDetector, + #[serde(rename = "marketplace-digital-segment-business-info")] + MarketplaceDigitalSegmentBusinessInfo, + #[serde(rename = "marketplace-facebook-offline-conversions")] + MarketplaceFacebookOfflineConversions, + #[serde(rename = "marketplace-google-speech-to-text")] + MarketplaceGoogleSpeechToText, + #[serde(rename = "marketplace-ibm-watson-message-insights")] + MarketplaceIbmWatsonMessageInsights, + #[serde(rename = "marketplace-ibm-watson-message-sentiment")] + MarketplaceIbmWatsonMessageSentiment, + #[serde(rename = "marketplace-ibm-watson-recording-analysis")] + MarketplaceIbmWatsonRecordingAnalysis, + #[serde(rename = "marketplace-ibm-watson-tone-analyzer")] + MarketplaceIbmWatsonToneAnalyzer, + #[serde(rename = "marketplace-icehook-systems-scout")] + MarketplaceIcehookSystemsScout, + #[serde(rename = "marketplace-infogroup-dataaxle-bizinfo")] + MarketplaceInfogroupDataaxleBizinfo, + #[serde(rename = "marketplace-keen-io-contact-center-analytics")] + MarketplaceKeenIoContactCenterAnalytics, + #[serde(rename = "marketplace-marchex-cleancall")] + MarketplaceMarchexCleancall, + #[serde(rename = "marketplace-marchex-sentiment-analysis-for-sms")] + MarketplaceMarchexSentimentAnalysisForSms, + #[serde(rename = "marketplace-marketplace-nextcaller-social-id")] + MarketplaceMarketplaceNextcallerSocialId, + #[serde(rename = "marketplace-mobile-commons-opt-out-classifier")] + MarketplaceMobileCommonsOptOutClassifier, + #[serde(rename = "marketplace-nexiwave-voicemail-to-text")] + MarketplaceNexiwaveVoicemailToText, + #[serde(rename = "marketplace-nextcaller-advanced-caller-identification")] + MarketplaceNextcallerAdvancedCallerIdentification, + #[serde(rename = "marketplace-nomorobo-spam-score")] + MarketplaceNomoroboSpamScore, + #[serde(rename = "marketplace-payfone-tcpa-compliance")] + MarketplacePayfoneTcpaCompliance, + #[serde(rename = "marketplace-remeeting-automatic-speech-recognition")] + MarketplaceRemeetingAutomaticSpeechRecognition, + #[serde(rename = "marketplace-tcpa-defense-solutions-blacklist-feed")] + MarketplaceTcpaDefenseSolutionsBlacklistFeed, + #[serde(rename = "marketplace-telo-opencnam")] + MarketplaceTeloOpencnam, + #[serde(rename = "marketplace-truecnam-true-spam")] + MarketplaceTruecnamTrueSpam, + #[serde(rename = "marketplace-twilio-caller-name-lookup-us")] + MarketplaceTwilioCallerNameLookupUs, + #[serde(rename = "marketplace-twilio-carrier-information-lookup")] + MarketplaceTwilioCarrierInformationLookup, + #[serde(rename = "marketplace-voicebase-pci")] + MarketplaceVoicebasePci, + #[serde(rename = "marketplace-voicebase-transcription")] + MarketplaceVoicebaseTranscription, + #[serde(rename = "marketplace-voicebase-transcription-custom-vocabulary")] + MarketplaceVoicebaseTranscriptionCustomVocabulary, + #[serde(rename = "marketplace-whitepages-pro-caller-identification")] + MarketplaceWhitepagesProCallerIdentification, + #[serde(rename = "marketplace-whitepages-pro-phone-intelligence")] + MarketplaceWhitepagesProPhoneIntelligence, + #[serde(rename = "marketplace-whitepages-pro-phone-reputation")] + MarketplaceWhitepagesProPhoneReputation, + #[serde(rename = "marketplace-wolfarm-spoken-results")] + MarketplaceWolfarmSpokenResults, + #[serde(rename = "marketplace-wolfram-short-answer")] + MarketplaceWolframShortAnswer, + #[serde(rename = "marketplace-ytica-contact-center-reporting-analytics")] + MarketplaceYticaContactCenterReportingAnalytics, + #[serde(rename = "mediastorage")] + Mediastorage, + #[serde(rename = "mms")] + Mms, + #[serde(rename = "mms-inbound")] + MmsInbound, + #[serde(rename = "mms-inbound-longcode")] + MmsInboundLongcode, + #[serde(rename = "mms-inbound-shortcode")] + MmsInboundShortcode, + #[serde(rename = "mms-messages-carrierfees")] + MmsMessagesCarrierfees, + #[serde(rename = "mms-outbound")] + MmsOutbound, + #[serde(rename = "mms-outbound-longcode")] + MmsOutboundLongcode, + #[serde(rename = "mms-outbound-shortcode")] + MmsOutboundShortcode, + #[serde(rename = "monitor-reads")] + MonitorReads, + #[serde(rename = "monitor-storage")] + MonitorStorage, + #[serde(rename = "monitor-writes")] + MonitorWrites, + #[serde(rename = "notify")] + Notify, + #[serde(rename = "notify-actions-attempts")] + NotifyActionsAttempts, + #[serde(rename = "notify-channels")] + NotifyChannels, + #[serde(rename = "number-format-lookups")] + NumberFormatLookups, + #[serde(rename = "pchat")] + Pchat, + #[serde(rename = "pchat-users")] + PchatUsers, + #[serde(rename = "peer-to-peer-rooms-participant-minutes")] + PeerToPeerRoomsParticipantMinutes, + #[serde(rename = "pfax")] + Pfax, + #[serde(rename = "pfax-minutes")] + PfaxMinutes, + #[serde(rename = "pfax-minutes-inbound")] + PfaxMinutesInbound, + #[serde(rename = "pfax-minutes-outbound")] + PfaxMinutesOutbound, + #[serde(rename = "pfax-pages")] + PfaxPages, + #[serde(rename = "phonenumbers")] + Phonenumbers, + #[serde(rename = "phonenumbers-cps")] + PhonenumbersCps, + #[serde(rename = "phonenumbers-emergency")] + PhonenumbersEmergency, + #[serde(rename = "phonenumbers-local")] + PhonenumbersLocal, + #[serde(rename = "phonenumbers-mobile")] + PhonenumbersMobile, + #[serde(rename = "phonenumbers-setups")] + PhonenumbersSetups, + #[serde(rename = "phonenumbers-tollfree")] + PhonenumbersTollfree, + #[serde(rename = "premiumsupport")] + Premiumsupport, + #[serde(rename = "proxy")] + Proxy, + #[serde(rename = "proxy-active-sessions")] + ProxyActiveSessions, + #[serde(rename = "pstnconnectivity")] + Pstnconnectivity, + #[serde(rename = "pv")] + Pv, + #[serde(rename = "pv-composition-media-downloaded")] + PvCompositionMediaDownloaded, + #[serde(rename = "pv-composition-media-encrypted")] + PvCompositionMediaEncrypted, + #[serde(rename = "pv-composition-media-stored")] + PvCompositionMediaStored, + #[serde(rename = "pv-composition-minutes")] + PvCompositionMinutes, + #[serde(rename = "pv-recording-compositions")] + PvRecordingCompositions, + #[serde(rename = "pv-room-participants")] + PvRoomParticipants, + #[serde(rename = "pv-room-participants-au1")] + PvRoomParticipantsAu1, + #[serde(rename = "pv-room-participants-br1")] + PvRoomParticipantsBr1, + #[serde(rename = "pv-room-participants-ie1")] + PvRoomParticipantsIe1, + #[serde(rename = "pv-room-participants-jp1")] + PvRoomParticipantsJp1, + #[serde(rename = "pv-room-participants-sg1")] + PvRoomParticipantsSg1, + #[serde(rename = "pv-room-participants-us1")] + PvRoomParticipantsUs1, + #[serde(rename = "pv-room-participants-us2")] + PvRoomParticipantsUs2, + #[serde(rename = "pv-rooms")] + PvRooms, + #[serde(rename = "pv-sip-endpoint-registrations")] + PvSipEndpointRegistrations, + #[serde(rename = "recordings")] + Recordings, + #[serde(rename = "recordingstorage")] + Recordingstorage, + #[serde(rename = "rooms-group-bandwidth")] + RoomsGroupBandwidth, + #[serde(rename = "rooms-group-minutes")] + RoomsGroupMinutes, + #[serde(rename = "rooms-peer-to-peer-minutes")] + RoomsPeerToPeerMinutes, + #[serde(rename = "shortcodes")] + Shortcodes, + #[serde(rename = "shortcodes-customerowned")] + ShortcodesCustomerowned, + #[serde(rename = "shortcodes-mms-enablement")] + ShortcodesMmsEnablement, + #[serde(rename = "shortcodes-mps")] + ShortcodesMps, + #[serde(rename = "shortcodes-random")] + ShortcodesRandom, + #[serde(rename = "shortcodes-uk")] + ShortcodesUk, + #[serde(rename = "shortcodes-vanity")] + ShortcodesVanity, + #[serde(rename = "small-group-rooms")] + SmallGroupRooms, + #[serde(rename = "small-group-rooms-data-track")] + SmallGroupRoomsDataTrack, + #[serde(rename = "small-group-rooms-participant-minutes")] + SmallGroupRoomsParticipantMinutes, + #[serde(rename = "sms")] + Sms, + #[serde(rename = "sms-inbound")] + SmsInbound, + #[serde(rename = "sms-inbound-longcode")] + SmsInboundLongcode, + #[serde(rename = "sms-inbound-shortcode")] + SmsInboundShortcode, + #[serde(rename = "sms-messages-carrierfees")] + SmsMessagesCarrierfees, + #[serde(rename = "sms-messages-features")] + SmsMessagesFeatures, + #[serde(rename = "sms-messages-features-senderid")] + SmsMessagesFeaturesSenderid, + #[serde(rename = "sms-outbound")] + SmsOutbound, + #[serde(rename = "sms-outbound-content-inspection")] + SmsOutboundContentInspection, + #[serde(rename = "sms-outbound-longcode")] + SmsOutboundLongcode, + #[serde(rename = "sms-outbound-shortcode")] + SmsOutboundShortcode, + #[serde(rename = "speech-recognition")] + SpeechRecognition, + #[serde(rename = "studio-engagements")] + StudioEngagements, + #[serde(rename = "sync")] + Sync, + #[serde(rename = "sync-actions")] + SyncActions, + #[serde(rename = "sync-endpoint-hours")] + SyncEndpointHours, + #[serde(rename = "sync-endpoint-hours-above-daily-cap")] + SyncEndpointHoursAboveDailyCap, + #[serde(rename = "taskrouter-tasks")] + TaskrouterTasks, + #[serde(rename = "totalprice")] + Totalprice, + #[serde(rename = "transcriptions")] + Transcriptions, + #[serde(rename = "trunking-cps")] + TrunkingCps, + #[serde(rename = "trunking-emergency-calls")] + TrunkingEmergencyCalls, + #[serde(rename = "trunking-origination")] + TrunkingOrigination, + #[serde(rename = "trunking-origination-local")] + TrunkingOriginationLocal, + #[serde(rename = "trunking-origination-mobile")] + TrunkingOriginationMobile, + #[serde(rename = "trunking-origination-tollfree")] + TrunkingOriginationTollfree, + #[serde(rename = "trunking-recordings")] + TrunkingRecordings, + #[serde(rename = "trunking-secure")] + TrunkingSecure, + #[serde(rename = "trunking-termination")] + TrunkingTermination, + #[serde(rename = "tts-google")] + TtsGoogle, + #[serde(rename = "turnmegabytes")] + Turnmegabytes, + #[serde(rename = "turnmegabytes-australia")] + TurnmegabytesAustralia, + #[serde(rename = "turnmegabytes-brasil")] + TurnmegabytesBrasil, + #[serde(rename = "turnmegabytes-germany")] + TurnmegabytesGermany, + #[serde(rename = "turnmegabytes-india")] + TurnmegabytesIndia, + #[serde(rename = "turnmegabytes-ireland")] + TurnmegabytesIreland, + #[serde(rename = "turnmegabytes-japan")] + TurnmegabytesJapan, + #[serde(rename = "turnmegabytes-singapore")] + TurnmegabytesSingapore, + #[serde(rename = "turnmegabytes-useast")] + TurnmegabytesUseast, + #[serde(rename = "turnmegabytes-uswest")] + TurnmegabytesUswest, + #[serde(rename = "twilio-interconnect")] + TwilioInterconnect, + #[serde(rename = "verify-push")] + VerifyPush, + #[serde(rename = "verify-totp")] + VerifyTotp, + #[serde(rename = "verify-whatsapp-conversations-business-initiated")] + VerifyWhatsappConversationsBusinessInitiated, + #[serde(rename = "video-recordings")] + VideoRecordings, + #[serde(rename = "virtual-agent")] + VirtualAgent, + #[serde(rename = "voice-insights")] + VoiceInsights, + #[serde(rename = "voice-insights-client-insights-on-demand-minute")] + VoiceInsightsClientInsightsOnDemandMinute, + #[serde(rename = "voice-insights-ptsn-insights-on-demand-minute")] + VoiceInsightsPtsnInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-interface-insights-on-demand-minute")] + VoiceInsightsSipInterfaceInsightsOnDemandMinute, + #[serde(rename = "voice-insights-sip-trunking-insights-on-demand-minute")] + VoiceInsightsSipTrunkingInsightsOnDemandMinute, + #[serde(rename = "voice-intelligence")] + VoiceIntelligence, + #[serde(rename = "voice-intelligence-transcription")] + VoiceIntelligenceTranscription, + #[serde(rename = "voice-intelligence-operators")] + VoiceIntelligenceOperators, + #[serde(rename = "wireless")] + Wireless, + #[serde(rename = "wireless-orders")] + WirelessOrders, + #[serde(rename = "wireless-orders-artwork")] + WirelessOrdersArtwork, + #[serde(rename = "wireless-orders-bulk")] + WirelessOrdersBulk, + #[serde(rename = "wireless-orders-esim")] + WirelessOrdersEsim, + #[serde(rename = "wireless-orders-starter")] + WirelessOrdersStarter, + #[serde(rename = "wireless-usage")] + WirelessUsage, + #[serde(rename = "wireless-usage-commands")] + WirelessUsageCommands, + #[serde(rename = "wireless-usage-commands-africa")] + WirelessUsageCommandsAfrica, + #[serde(rename = "wireless-usage-commands-asia")] + WirelessUsageCommandsAsia, + #[serde(rename = "wireless-usage-commands-centralandsouthamerica")] + WirelessUsageCommandsCentralandsouthamerica, + #[serde(rename = "wireless-usage-commands-europe")] + WirelessUsageCommandsEurope, + #[serde(rename = "wireless-usage-commands-home")] + WirelessUsageCommandsHome, + #[serde(rename = "wireless-usage-commands-northamerica")] + WirelessUsageCommandsNorthamerica, + #[serde(rename = "wireless-usage-commands-oceania")] + WirelessUsageCommandsOceania, + #[serde(rename = "wireless-usage-commands-roaming")] + WirelessUsageCommandsRoaming, + #[serde(rename = "wireless-usage-data")] + WirelessUsageData, + #[serde(rename = "wireless-usage-data-africa")] + WirelessUsageDataAfrica, + #[serde(rename = "wireless-usage-data-asia")] + WirelessUsageDataAsia, + #[serde(rename = "wireless-usage-data-centralandsouthamerica")] + WirelessUsageDataCentralandsouthamerica, + #[serde(rename = "wireless-usage-data-custom-additionalmb")] + WirelessUsageDataCustomAdditionalmb, + #[serde(rename = "wireless-usage-data-custom-first5mb")] + WirelessUsageDataCustomFirst5mb, + #[serde(rename = "wireless-usage-data-domestic-roaming")] + WirelessUsageDataDomesticRoaming, + #[serde(rename = "wireless-usage-data-europe")] + WirelessUsageDataEurope, + #[serde(rename = "wireless-usage-data-individual-additionalgb")] + WirelessUsageDataIndividualAdditionalgb, + #[serde(rename = "wireless-usage-data-individual-firstgb")] + WirelessUsageDataIndividualFirstgb, + #[serde(rename = "wireless-usage-data-international-roaming-canada")] + WirelessUsageDataInternationalRoamingCanada, + #[serde(rename = "wireless-usage-data-international-roaming-india")] + WirelessUsageDataInternationalRoamingIndia, + #[serde(rename = "wireless-usage-data-international-roaming-mexico")] + WirelessUsageDataInternationalRoamingMexico, + #[serde(rename = "wireless-usage-data-northamerica")] + WirelessUsageDataNorthamerica, + #[serde(rename = "wireless-usage-data-oceania")] + WirelessUsageDataOceania, + #[serde(rename = "wireless-usage-data-pooled")] + WirelessUsageDataPooled, + #[serde(rename = "wireless-usage-data-pooled-downlink")] + WirelessUsageDataPooledDownlink, + #[serde(rename = "wireless-usage-data-pooled-uplink")] + WirelessUsageDataPooledUplink, + #[serde(rename = "wireless-usage-mrc")] + WirelessUsageMrc, + #[serde(rename = "wireless-usage-mrc-custom")] + WirelessUsageMrcCustom, + #[serde(rename = "wireless-usage-mrc-individual")] + WirelessUsageMrcIndividual, + #[serde(rename = "wireless-usage-mrc-pooled")] + WirelessUsageMrcPooled, + #[serde(rename = "wireless-usage-mrc-suspended")] + WirelessUsageMrcSuspended, + #[serde(rename = "wireless-usage-sms")] + WirelessUsageSms, + #[serde(rename = "wireless-usage-voice")] + WirelessUsageVoice, + +} + +impl ToString for UsageTriggerEnumUsageCategory { + fn to_string(&self) -> String { + match self { + Self::A2pRegistrationFees => String::from("a2p-registration-fees"), + Self::AgentConference => String::from("agent-conference"), + Self::AmazonPolly => String::from("amazon-polly"), + Self::AnsweringMachineDetection => String::from("answering-machine-detection"), + Self::AuthyAuthentications => String::from("authy-authentications"), + Self::AuthyCallsOutbound => String::from("authy-calls-outbound"), + Self::AuthyMonthlyFees => String::from("authy-monthly-fees"), + Self::AuthyPhoneIntelligence => String::from("authy-phone-intelligence"), + Self::AuthyPhoneVerifications => String::from("authy-phone-verifications"), + Self::AuthySmsOutbound => String::from("authy-sms-outbound"), + Self::CallProgessEvents => String::from("call-progess-events"), + Self::Calleridlookups => String::from("calleridlookups"), + Self::Calls => String::from("calls"), + Self::CallsClient => String::from("calls-client"), + Self::CallsGlobalconference => String::from("calls-globalconference"), + Self::CallsInbound => String::from("calls-inbound"), + Self::CallsInboundLocal => String::from("calls-inbound-local"), + Self::CallsInboundMobile => String::from("calls-inbound-mobile"), + Self::CallsInboundTollfree => String::from("calls-inbound-tollfree"), + Self::CallsOutbound => String::from("calls-outbound"), + Self::CallsPayVerbTransactions => String::from("calls-pay-verb-transactions"), + Self::CallsRecordings => String::from("calls-recordings"), + Self::CallsSip => String::from("calls-sip"), + Self::CallsSipInbound => String::from("calls-sip-inbound"), + Self::CallsSipOutbound => String::from("calls-sip-outbound"), + Self::CallsTransfers => String::from("calls-transfers"), + Self::CarrierLookups => String::from("carrier-lookups"), + Self::Conversations => String::from("conversations"), + Self::ConversationsApiRequests => String::from("conversations-api-requests"), + Self::ConversationsConversationEvents => String::from("conversations-conversation-events"), + Self::ConversationsEndpointConnectivity => String::from("conversations-endpoint-connectivity"), + Self::ConversationsEvents => String::from("conversations-events"), + Self::ConversationsParticipantEvents => String::from("conversations-participant-events"), + Self::ConversationsParticipants => String::from("conversations-participants"), + Self::Cps => String::from("cps"), + Self::FlexUsage => String::from("flex-usage"), + Self::FraudLookups => String::from("fraud-lookups"), + Self::GroupRooms => String::from("group-rooms"), + Self::GroupRoomsDataTrack => String::from("group-rooms-data-track"), + Self::GroupRoomsEncryptedMediaRecorded => String::from("group-rooms-encrypted-media-recorded"), + Self::GroupRoomsMediaDownloaded => String::from("group-rooms-media-downloaded"), + Self::GroupRoomsMediaRecorded => String::from("group-rooms-media-recorded"), + Self::GroupRoomsMediaRouted => String::from("group-rooms-media-routed"), + Self::GroupRoomsMediaStored => String::from("group-rooms-media-stored"), + Self::GroupRoomsParticipantMinutes => String::from("group-rooms-participant-minutes"), + Self::GroupRoomsRecordedMinutes => String::from("group-rooms-recorded-minutes"), + Self::ImpV1Usage => String::from("imp-v1-usage"), + Self::Lookups => String::from("lookups"), + Self::Marketplace => String::from("marketplace"), + Self::MarketplaceAlgorithmiaNamedEntityRecognition => String::from("marketplace-algorithmia-named-entity-recognition"), + Self::MarketplaceCadenceTranscription => String::from("marketplace-cadence-transcription"), + Self::MarketplaceCadenceTranslation => String::from("marketplace-cadence-translation"), + Self::MarketplaceCapioSpeechToText => String::from("marketplace-capio-speech-to-text"), + Self::MarketplaceConvrizaAbaba => String::from("marketplace-convriza-ababa"), + Self::MarketplaceDeepgramPhraseDetector => String::from("marketplace-deepgram-phrase-detector"), + Self::MarketplaceDigitalSegmentBusinessInfo => String::from("marketplace-digital-segment-business-info"), + Self::MarketplaceFacebookOfflineConversions => String::from("marketplace-facebook-offline-conversions"), + Self::MarketplaceGoogleSpeechToText => String::from("marketplace-google-speech-to-text"), + Self::MarketplaceIbmWatsonMessageInsights => String::from("marketplace-ibm-watson-message-insights"), + Self::MarketplaceIbmWatsonMessageSentiment => String::from("marketplace-ibm-watson-message-sentiment"), + Self::MarketplaceIbmWatsonRecordingAnalysis => String::from("marketplace-ibm-watson-recording-analysis"), + Self::MarketplaceIbmWatsonToneAnalyzer => String::from("marketplace-ibm-watson-tone-analyzer"), + Self::MarketplaceIcehookSystemsScout => String::from("marketplace-icehook-systems-scout"), + Self::MarketplaceInfogroupDataaxleBizinfo => String::from("marketplace-infogroup-dataaxle-bizinfo"), + Self::MarketplaceKeenIoContactCenterAnalytics => String::from("marketplace-keen-io-contact-center-analytics"), + Self::MarketplaceMarchexCleancall => String::from("marketplace-marchex-cleancall"), + Self::MarketplaceMarchexSentimentAnalysisForSms => String::from("marketplace-marchex-sentiment-analysis-for-sms"), + Self::MarketplaceMarketplaceNextcallerSocialId => String::from("marketplace-marketplace-nextcaller-social-id"), + Self::MarketplaceMobileCommonsOptOutClassifier => String::from("marketplace-mobile-commons-opt-out-classifier"), + Self::MarketplaceNexiwaveVoicemailToText => String::from("marketplace-nexiwave-voicemail-to-text"), + Self::MarketplaceNextcallerAdvancedCallerIdentification => String::from("marketplace-nextcaller-advanced-caller-identification"), + Self::MarketplaceNomoroboSpamScore => String::from("marketplace-nomorobo-spam-score"), + Self::MarketplacePayfoneTcpaCompliance => String::from("marketplace-payfone-tcpa-compliance"), + Self::MarketplaceRemeetingAutomaticSpeechRecognition => String::from("marketplace-remeeting-automatic-speech-recognition"), + Self::MarketplaceTcpaDefenseSolutionsBlacklistFeed => String::from("marketplace-tcpa-defense-solutions-blacklist-feed"), + Self::MarketplaceTeloOpencnam => String::from("marketplace-telo-opencnam"), + Self::MarketplaceTruecnamTrueSpam => String::from("marketplace-truecnam-true-spam"), + Self::MarketplaceTwilioCallerNameLookupUs => String::from("marketplace-twilio-caller-name-lookup-us"), + Self::MarketplaceTwilioCarrierInformationLookup => String::from("marketplace-twilio-carrier-information-lookup"), + Self::MarketplaceVoicebasePci => String::from("marketplace-voicebase-pci"), + Self::MarketplaceVoicebaseTranscription => String::from("marketplace-voicebase-transcription"), + Self::MarketplaceVoicebaseTranscriptionCustomVocabulary => String::from("marketplace-voicebase-transcription-custom-vocabulary"), + Self::MarketplaceWhitepagesProCallerIdentification => String::from("marketplace-whitepages-pro-caller-identification"), + Self::MarketplaceWhitepagesProPhoneIntelligence => String::from("marketplace-whitepages-pro-phone-intelligence"), + Self::MarketplaceWhitepagesProPhoneReputation => String::from("marketplace-whitepages-pro-phone-reputation"), + Self::MarketplaceWolfarmSpokenResults => String::from("marketplace-wolfarm-spoken-results"), + Self::MarketplaceWolframShortAnswer => String::from("marketplace-wolfram-short-answer"), + Self::MarketplaceYticaContactCenterReportingAnalytics => String::from("marketplace-ytica-contact-center-reporting-analytics"), + Self::Mediastorage => String::from("mediastorage"), + Self::Mms => String::from("mms"), + Self::MmsInbound => String::from("mms-inbound"), + Self::MmsInboundLongcode => String::from("mms-inbound-longcode"), + Self::MmsInboundShortcode => String::from("mms-inbound-shortcode"), + Self::MmsMessagesCarrierfees => String::from("mms-messages-carrierfees"), + Self::MmsOutbound => String::from("mms-outbound"), + Self::MmsOutboundLongcode => String::from("mms-outbound-longcode"), + Self::MmsOutboundShortcode => String::from("mms-outbound-shortcode"), + Self::MonitorReads => String::from("monitor-reads"), + Self::MonitorStorage => String::from("monitor-storage"), + Self::MonitorWrites => String::from("monitor-writes"), + Self::Notify => String::from("notify"), + Self::NotifyActionsAttempts => String::from("notify-actions-attempts"), + Self::NotifyChannels => String::from("notify-channels"), + Self::NumberFormatLookups => String::from("number-format-lookups"), + Self::Pchat => String::from("pchat"), + Self::PchatUsers => String::from("pchat-users"), + Self::PeerToPeerRoomsParticipantMinutes => String::from("peer-to-peer-rooms-participant-minutes"), + Self::Pfax => String::from("pfax"), + Self::PfaxMinutes => String::from("pfax-minutes"), + Self::PfaxMinutesInbound => String::from("pfax-minutes-inbound"), + Self::PfaxMinutesOutbound => String::from("pfax-minutes-outbound"), + Self::PfaxPages => String::from("pfax-pages"), + Self::Phonenumbers => String::from("phonenumbers"), + Self::PhonenumbersCps => String::from("phonenumbers-cps"), + Self::PhonenumbersEmergency => String::from("phonenumbers-emergency"), + Self::PhonenumbersLocal => String::from("phonenumbers-local"), + Self::PhonenumbersMobile => String::from("phonenumbers-mobile"), + Self::PhonenumbersSetups => String::from("phonenumbers-setups"), + Self::PhonenumbersTollfree => String::from("phonenumbers-tollfree"), + Self::Premiumsupport => String::from("premiumsupport"), + Self::Proxy => String::from("proxy"), + Self::ProxyActiveSessions => String::from("proxy-active-sessions"), + Self::Pstnconnectivity => String::from("pstnconnectivity"), + Self::Pv => String::from("pv"), + Self::PvCompositionMediaDownloaded => String::from("pv-composition-media-downloaded"), + Self::PvCompositionMediaEncrypted => String::from("pv-composition-media-encrypted"), + Self::PvCompositionMediaStored => String::from("pv-composition-media-stored"), + Self::PvCompositionMinutes => String::from("pv-composition-minutes"), + Self::PvRecordingCompositions => String::from("pv-recording-compositions"), + Self::PvRoomParticipants => String::from("pv-room-participants"), + Self::PvRoomParticipantsAu1 => String::from("pv-room-participants-au1"), + Self::PvRoomParticipantsBr1 => String::from("pv-room-participants-br1"), + Self::PvRoomParticipantsIe1 => String::from("pv-room-participants-ie1"), + Self::PvRoomParticipantsJp1 => String::from("pv-room-participants-jp1"), + Self::PvRoomParticipantsSg1 => String::from("pv-room-participants-sg1"), + Self::PvRoomParticipantsUs1 => String::from("pv-room-participants-us1"), + Self::PvRoomParticipantsUs2 => String::from("pv-room-participants-us2"), + Self::PvRooms => String::from("pv-rooms"), + Self::PvSipEndpointRegistrations => String::from("pv-sip-endpoint-registrations"), + Self::Recordings => String::from("recordings"), + Self::Recordingstorage => String::from("recordingstorage"), + Self::RoomsGroupBandwidth => String::from("rooms-group-bandwidth"), + Self::RoomsGroupMinutes => String::from("rooms-group-minutes"), + Self::RoomsPeerToPeerMinutes => String::from("rooms-peer-to-peer-minutes"), + Self::Shortcodes => String::from("shortcodes"), + Self::ShortcodesCustomerowned => String::from("shortcodes-customerowned"), + Self::ShortcodesMmsEnablement => String::from("shortcodes-mms-enablement"), + Self::ShortcodesMps => String::from("shortcodes-mps"), + Self::ShortcodesRandom => String::from("shortcodes-random"), + Self::ShortcodesUk => String::from("shortcodes-uk"), + Self::ShortcodesVanity => String::from("shortcodes-vanity"), + Self::SmallGroupRooms => String::from("small-group-rooms"), + Self::SmallGroupRoomsDataTrack => String::from("small-group-rooms-data-track"), + Self::SmallGroupRoomsParticipantMinutes => String::from("small-group-rooms-participant-minutes"), + Self::Sms => String::from("sms"), + Self::SmsInbound => String::from("sms-inbound"), + Self::SmsInboundLongcode => String::from("sms-inbound-longcode"), + Self::SmsInboundShortcode => String::from("sms-inbound-shortcode"), + Self::SmsMessagesCarrierfees => String::from("sms-messages-carrierfees"), + Self::SmsMessagesFeatures => String::from("sms-messages-features"), + Self::SmsMessagesFeaturesSenderid => String::from("sms-messages-features-senderid"), + Self::SmsOutbound => String::from("sms-outbound"), + Self::SmsOutboundContentInspection => String::from("sms-outbound-content-inspection"), + Self::SmsOutboundLongcode => String::from("sms-outbound-longcode"), + Self::SmsOutboundShortcode => String::from("sms-outbound-shortcode"), + Self::SpeechRecognition => String::from("speech-recognition"), + Self::StudioEngagements => String::from("studio-engagements"), + Self::Sync => String::from("sync"), + Self::SyncActions => String::from("sync-actions"), + Self::SyncEndpointHours => String::from("sync-endpoint-hours"), + Self::SyncEndpointHoursAboveDailyCap => String::from("sync-endpoint-hours-above-daily-cap"), + Self::TaskrouterTasks => String::from("taskrouter-tasks"), + Self::Totalprice => String::from("totalprice"), + Self::Transcriptions => String::from("transcriptions"), + Self::TrunkingCps => String::from("trunking-cps"), + Self::TrunkingEmergencyCalls => String::from("trunking-emergency-calls"), + Self::TrunkingOrigination => String::from("trunking-origination"), + Self::TrunkingOriginationLocal => String::from("trunking-origination-local"), + Self::TrunkingOriginationMobile => String::from("trunking-origination-mobile"), + Self::TrunkingOriginationTollfree => String::from("trunking-origination-tollfree"), + Self::TrunkingRecordings => String::from("trunking-recordings"), + Self::TrunkingSecure => String::from("trunking-secure"), + Self::TrunkingTermination => String::from("trunking-termination"), + Self::TtsGoogle => String::from("tts-google"), + Self::Turnmegabytes => String::from("turnmegabytes"), + Self::TurnmegabytesAustralia => String::from("turnmegabytes-australia"), + Self::TurnmegabytesBrasil => String::from("turnmegabytes-brasil"), + Self::TurnmegabytesGermany => String::from("turnmegabytes-germany"), + Self::TurnmegabytesIndia => String::from("turnmegabytes-india"), + Self::TurnmegabytesIreland => String::from("turnmegabytes-ireland"), + Self::TurnmegabytesJapan => String::from("turnmegabytes-japan"), + Self::TurnmegabytesSingapore => String::from("turnmegabytes-singapore"), + Self::TurnmegabytesUseast => String::from("turnmegabytes-useast"), + Self::TurnmegabytesUswest => String::from("turnmegabytes-uswest"), + Self::TwilioInterconnect => String::from("twilio-interconnect"), + Self::VerifyPush => String::from("verify-push"), + Self::VerifyTotp => String::from("verify-totp"), + Self::VerifyWhatsappConversationsBusinessInitiated => String::from("verify-whatsapp-conversations-business-initiated"), + Self::VideoRecordings => String::from("video-recordings"), + Self::VirtualAgent => String::from("virtual-agent"), + Self::VoiceInsights => String::from("voice-insights"), + Self::VoiceInsightsClientInsightsOnDemandMinute => String::from("voice-insights-client-insights-on-demand-minute"), + Self::VoiceInsightsPtsnInsightsOnDemandMinute => String::from("voice-insights-ptsn-insights-on-demand-minute"), + Self::VoiceInsightsSipInterfaceInsightsOnDemandMinute => String::from("voice-insights-sip-interface-insights-on-demand-minute"), + Self::VoiceInsightsSipTrunkingInsightsOnDemandMinute => String::from("voice-insights-sip-trunking-insights-on-demand-minute"), + Self::VoiceIntelligence => String::from("voice-intelligence"), + Self::VoiceIntelligenceTranscription => String::from("voice-intelligence-transcription"), + Self::VoiceIntelligenceOperators => String::from("voice-intelligence-operators"), + Self::Wireless => String::from("wireless"), + Self::WirelessOrders => String::from("wireless-orders"), + Self::WirelessOrdersArtwork => String::from("wireless-orders-artwork"), + Self::WirelessOrdersBulk => String::from("wireless-orders-bulk"), + Self::WirelessOrdersEsim => String::from("wireless-orders-esim"), + Self::WirelessOrdersStarter => String::from("wireless-orders-starter"), + Self::WirelessUsage => String::from("wireless-usage"), + Self::WirelessUsageCommands => String::from("wireless-usage-commands"), + Self::WirelessUsageCommandsAfrica => String::from("wireless-usage-commands-africa"), + Self::WirelessUsageCommandsAsia => String::from("wireless-usage-commands-asia"), + Self::WirelessUsageCommandsCentralandsouthamerica => String::from("wireless-usage-commands-centralandsouthamerica"), + Self::WirelessUsageCommandsEurope => String::from("wireless-usage-commands-europe"), + Self::WirelessUsageCommandsHome => String::from("wireless-usage-commands-home"), + Self::WirelessUsageCommandsNorthamerica => String::from("wireless-usage-commands-northamerica"), + Self::WirelessUsageCommandsOceania => String::from("wireless-usage-commands-oceania"), + Self::WirelessUsageCommandsRoaming => String::from("wireless-usage-commands-roaming"), + Self::WirelessUsageData => String::from("wireless-usage-data"), + Self::WirelessUsageDataAfrica => String::from("wireless-usage-data-africa"), + Self::WirelessUsageDataAsia => String::from("wireless-usage-data-asia"), + Self::WirelessUsageDataCentralandsouthamerica => String::from("wireless-usage-data-centralandsouthamerica"), + Self::WirelessUsageDataCustomAdditionalmb => String::from("wireless-usage-data-custom-additionalmb"), + Self::WirelessUsageDataCustomFirst5mb => String::from("wireless-usage-data-custom-first5mb"), + Self::WirelessUsageDataDomesticRoaming => String::from("wireless-usage-data-domestic-roaming"), + Self::WirelessUsageDataEurope => String::from("wireless-usage-data-europe"), + Self::WirelessUsageDataIndividualAdditionalgb => String::from("wireless-usage-data-individual-additionalgb"), + Self::WirelessUsageDataIndividualFirstgb => String::from("wireless-usage-data-individual-firstgb"), + Self::WirelessUsageDataInternationalRoamingCanada => String::from("wireless-usage-data-international-roaming-canada"), + Self::WirelessUsageDataInternationalRoamingIndia => String::from("wireless-usage-data-international-roaming-india"), + Self::WirelessUsageDataInternationalRoamingMexico => String::from("wireless-usage-data-international-roaming-mexico"), + Self::WirelessUsageDataNorthamerica => String::from("wireless-usage-data-northamerica"), + Self::WirelessUsageDataOceania => String::from("wireless-usage-data-oceania"), + Self::WirelessUsageDataPooled => String::from("wireless-usage-data-pooled"), + Self::WirelessUsageDataPooledDownlink => String::from("wireless-usage-data-pooled-downlink"), + Self::WirelessUsageDataPooledUplink => String::from("wireless-usage-data-pooled-uplink"), + Self::WirelessUsageMrc => String::from("wireless-usage-mrc"), + Self::WirelessUsageMrcCustom => String::from("wireless-usage-mrc-custom"), + Self::WirelessUsageMrcIndividual => String::from("wireless-usage-mrc-individual"), + Self::WirelessUsageMrcPooled => String::from("wireless-usage-mrc-pooled"), + Self::WirelessUsageMrcSuspended => String::from("wireless-usage-mrc-suspended"), + Self::WirelessUsageSms => String::from("wireless-usage-sms"), + Self::WirelessUsageVoice => String::from("wireless-usage-voice"), + } + } +} + +impl Default for UsageTriggerEnumUsageCategory { + fn default() -> UsageTriggerEnumUsageCategory { + Self::A2pRegistrationFees + } +} + + + +