diff --git a/Cargo.lock b/Cargo.lock index 2e7cedb4d..6d88cead2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -196,17 +196,6 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" -[[package]] -name = "automod" -version = "1.0.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edf3ee19dbc0a46d740f6f0926bde8c50f02bdbc7b536842da28f6ac56513a8b" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.75", -] - [[package]] name = "axum" version = "0.7.5" @@ -2028,8 +2017,8 @@ dependencies = [ name = "pulumi_wasm_cloudflare" version = "5.24.1-0.0.0-DEV" dependencies = [ - "automod", "pulumi_wasm_rust", + "pulumi_wasm_wit", "serde", "wit-bindgen", ] @@ -2071,8 +2060,8 @@ dependencies = [ name = "pulumi_wasm_docker" version = "4.5.3-0.0.0-DEV" dependencies = [ - "automod", "pulumi_wasm_rust", + "pulumi_wasm_wit", "serde", "wit-bindgen", ] @@ -2173,8 +2162,8 @@ dependencies = [ name = "pulumi_wasm_random" version = "4.15.0-0.0.0-DEV" dependencies = [ - "automod", "pulumi_wasm_rust", + "pulumi_wasm_wit", "serde", "wit-bindgen", ] diff --git a/Cargo.toml b/Cargo.toml index 366dee746..03ede8514 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,7 +88,6 @@ testdir = "0.9.1" fs_extra = "1.3.0" handlebars = "6.0.0" convert_case = "0.6.0" -automod = "1.0.14" mockall = "0.13.0" wac-graph = "0.5.0" serde_yaml = "0.9.33" diff --git a/docs/Internal/WIT.md b/docs/Internal/WIT.md index 61b1fa96e..2ac2ef280 100644 --- a/docs/Internal/WIT.md +++ b/docs/Internal/WIT.md @@ -12,7 +12,7 @@ ### Output -Allow working with Outputs (so maybe not yet set values managed by Pulumi). Interface allows creating, mapping and cloning (to be removed in the future). +Allow working with Outputs (so maybe not yet set values managed by Pulumi). Interface allows creating and mapping underlying values. It also allows to combine list of outputs into output of list ### Stack diff --git a/providers/pulumi_wasm_provider_cloudflare/src/bindings.rs b/providers/pulumi_wasm_provider_cloudflare/src/bindings.rs index 51e563ca7..410482831 100644 --- a/providers/pulumi_wasm_provider_cloudflare/src/bindings.rs +++ b/providers/pulumi_wasm_provider_cloudflare/src/bindings.rs @@ -111,28 +111,6 @@ pub mod component { } } } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn duplicate(&self) -> Output { - unsafe { - #[cfg(target_arch = "wasm32")] - #[link( - wasm_import_module = "component:pulumi-wasm/output-interface@0.0.0-DEV" - )] - extern "C" { - #[link_name = "[method]output.duplicate"] - fn wit_import(_: i32) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32); - Output::from_handle(ret as u32) - } - } - } #[allow(unused_unsafe, clippy::all)] pub fn combine(outputs: _rt::Vec) -> Output { unsafe { @@ -18048,29 +18026,28 @@ pub(crate) use __export_cloudflare_pulumi_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:cloudflare-pulumi:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 38445] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xa4\xab\x02\x01A\x02\ -\x01A\xf1\x01\x01B\x0c\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 38405] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xfc\xaa\x02\x01A\x02\ +\x01A\xf1\x01\x01B\x0a\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\ \0\x13[constructor]output\x01\x02\x01h\0\x01@\x02\x04self\x03\x0dfunction-names\0\ -\x01\x04\0\x12[method]output.map\x01\x04\x01@\x01\x04self\x03\0\x01\x04\0\x18[me\ -thod]output.duplicate\x01\x05\x01p\x01\x01@\x01\x07outputs\x06\0\x01\x04\0\x07co\ -mbine\x01\x07\x03\x010component:pulumi-wasm/output-interface@0.0.0-DEV\x05\0\x02\ -\x03\0\0\x06output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ -\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04name\ -s\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\ -\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\ -\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\ -\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01\ -@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x03\x012component:pulumi-wa\ -sm/register-interface@0.0.0-DEV\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06ou\ -tput\x03\0\0\x01h\x01\x01r\x1d\x0aaccount-id\x02\x1ballow-authenticate-via-warp\x02\ -\x0callowed-idps\x02\x15app-launcher-logo-url\x02\x14app-launcher-visible\x02\x19\ -auto-redirect-to-identity\x02\x08bg-color\x02\x0ccors-headers\x02\x13custom-deny\ --message\x02\x0fcustom-deny-url\x02\x1ccustom-non-identity-deny-url\x02\x0ccusto\ -m-pages\x02\x06domain\x02\x15enable-binding-cookie\x02\x0cfooter-links\x02\x0fhe\ -ader-bg-color\x02\x1ahttp-only-cookie-attribute\x02\x13landing-page-design\x02\x08\ -logo-url\x02\x04name\x02\x08saas-app\x02\x1asame-site-cookie-attribute\x02\x13se\ -lf-hosted-domains\x02\x18service-auth401-redirect\x02\x10session-duration\x02\x11\ +\x01\x04\0\x12[method]output.map\x01\x04\x01p\x01\x01@\x01\x07outputs\x05\0\x01\x04\ +\0\x07combine\x01\x06\x03\x010component:pulumi-wasm/output-interface@0.0.0-DEV\x05\ +\0\x02\x03\0\0\x06output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01\ +h\x01\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04\ +names\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\ +\0\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04typ\ +es\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\ +\x0c\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\ +\x01@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x03\x012component:pulum\ +i-wasm/register-interface@0.0.0-DEV\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06\ +output\x03\0\0\x01h\x01\x01r\x1d\x0aaccount-id\x02\x1ballow-authenticate-via-war\ +p\x02\x0callowed-idps\x02\x15app-launcher-logo-url\x02\x14app-launcher-visible\x02\ +\x19auto-redirect-to-identity\x02\x08bg-color\x02\x0ccors-headers\x02\x13custom-\ +deny-message\x02\x0fcustom-deny-url\x02\x1ccustom-non-identity-deny-url\x02\x0cc\ +ustom-pages\x02\x06domain\x02\x15enable-binding-cookie\x02\x0cfooter-links\x02\x0f\ +header-bg-color\x02\x1ahttp-only-cookie-attribute\x02\x13landing-page-design\x02\ +\x08logo-url\x02\x04name\x02\x08saas-app\x02\x1asame-site-cookie-attribute\x02\x13\ +self-hosted-domains\x02\x18service-auth401-redirect\x02\x10session-duration\x02\x11\ skip-interstitial\x02\x04tags\x02\x04type\x02\x07zone-id\x02\x04\0\x04args\x03\0\ \x03\x01i\x01\x01r\x1e\x0aaccount-id\x05\x1ballow-authenticate-via-warp\x05\x0ca\ llowed-idps\x05\x15app-launcher-logo-url\x05\x14app-launcher-visible\x05\x03aud\x05\ diff --git a/providers/pulumi_wasm_provider_cloudflare/src/lib.rs b/providers/pulumi_wasm_provider_cloudflare/src/lib.rs index 91d53063d..f63f017bd 100644 --- a/providers/pulumi_wasm_provider_cloudflare/src/lib.rs +++ b/providers/pulumi_wasm_provider_cloudflare/src/lib.rs @@ -116,6 +116,7 @@ use bindings::exports::pulumi::cloudflare::zone_dnssec; use bindings::exports::pulumi::cloudflare::zone_hold; use bindings::exports::pulumi::cloudflare::zone_lockdown; use bindings::exports::pulumi::cloudflare::zone_settings_override; +use std::collections::HashMap; use crate::bindings::component::pulumi_wasm::register_interface::{ register, ObjectField, RegisterResourceRequest, ResultField, @@ -343,217 +344,40 @@ impl access_application::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_application::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - allow_authenticate_via_warp: o - .fields - .iter() - .find(|o| o.name == "allowAuthenticateViaWarp") - .unwrap() - .output - .duplicate(), - allowed_idps: o - .fields - .iter() - .find(|o| o.name == "allowedIdps") - .unwrap() - .output - .duplicate(), - app_launcher_logo_url: o - .fields - .iter() - .find(|o| o.name == "appLauncherLogoUrl") - .unwrap() - .output - .duplicate(), - app_launcher_visible: o - .fields - .iter() - .find(|o| o.name == "appLauncherVisible") - .unwrap() - .output - .duplicate(), - aud: o - .fields - .iter() - .find(|o| o.name == "aud") - .unwrap() - .output - .duplicate(), - auto_redirect_to_identity: o - .fields - .iter() - .find(|o| o.name == "autoRedirectToIdentity") - .unwrap() - .output - .duplicate(), - bg_color: o - .fields - .iter() - .find(|o| o.name == "bgColor") - .unwrap() - .output - .duplicate(), - cors_headers: o - .fields - .iter() - .find(|o| o.name == "corsHeaders") - .unwrap() - .output - .duplicate(), - custom_deny_message: o - .fields - .iter() - .find(|o| o.name == "customDenyMessage") - .unwrap() - .output - .duplicate(), - custom_deny_url: o - .fields - .iter() - .find(|o| o.name == "customDenyUrl") - .unwrap() - .output - .duplicate(), - custom_non_identity_deny_url: o - .fields - .iter() - .find(|o| o.name == "customNonIdentityDenyUrl") - .unwrap() - .output - .duplicate(), - custom_pages: o - .fields - .iter() - .find(|o| o.name == "customPages") - .unwrap() - .output - .duplicate(), - domain: o - .fields - .iter() - .find(|o| o.name == "domain") - .unwrap() - .output - .duplicate(), - enable_binding_cookie: o - .fields - .iter() - .find(|o| o.name == "enableBindingCookie") - .unwrap() - .output - .duplicate(), - footer_links: o - .fields - .iter() - .find(|o| o.name == "footerLinks") - .unwrap() - .output - .duplicate(), - header_bg_color: o - .fields - .iter() - .find(|o| o.name == "headerBgColor") - .unwrap() - .output - .duplicate(), - http_only_cookie_attribute: o - .fields - .iter() - .find(|o| o.name == "httpOnlyCookieAttribute") - .unwrap() - .output - .duplicate(), - landing_page_design: o - .fields - .iter() - .find(|o| o.name == "landingPageDesign") - .unwrap() - .output - .duplicate(), - logo_url: o - .fields - .iter() - .find(|o| o.name == "logoUrl") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - saas_app: o - .fields - .iter() - .find(|o| o.name == "saasApp") - .unwrap() - .output - .duplicate(), - same_site_cookie_attribute: o - .fields - .iter() - .find(|o| o.name == "sameSiteCookieAttribute") - .unwrap() - .output - .duplicate(), - self_hosted_domains: o - .fields - .iter() - .find(|o| o.name == "selfHostedDomains") - .unwrap() - .output - .duplicate(), - service_auth401_redirect: o - .fields - .iter() - .find(|o| o.name == "serviceAuth401Redirect") - .unwrap() - .output - .duplicate(), - session_duration: o - .fields - .iter() - .find(|o| o.name == "sessionDuration") - .unwrap() - .output - .duplicate(), - skip_interstitial: o - .fields - .iter() - .find(|o| o.name == "skipInterstitial") - .unwrap() - .output - .duplicate(), - tags: o - .fields - .iter() - .find(|o| o.name == "tags") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + allow_authenticate_via_warp: hashmap.remove("allowAuthenticateViaWarp").unwrap(), + allowed_idps: hashmap.remove("allowedIdps").unwrap(), + app_launcher_logo_url: hashmap.remove("appLauncherLogoUrl").unwrap(), + app_launcher_visible: hashmap.remove("appLauncherVisible").unwrap(), + aud: hashmap.remove("aud").unwrap(), + auto_redirect_to_identity: hashmap.remove("autoRedirectToIdentity").unwrap(), + bg_color: hashmap.remove("bgColor").unwrap(), + cors_headers: hashmap.remove("corsHeaders").unwrap(), + custom_deny_message: hashmap.remove("customDenyMessage").unwrap(), + custom_deny_url: hashmap.remove("customDenyUrl").unwrap(), + custom_non_identity_deny_url: hashmap.remove("customNonIdentityDenyUrl").unwrap(), + custom_pages: hashmap.remove("customPages").unwrap(), + domain: hashmap.remove("domain").unwrap(), + enable_binding_cookie: hashmap.remove("enableBindingCookie").unwrap(), + footer_links: hashmap.remove("footerLinks").unwrap(), + header_bg_color: hashmap.remove("headerBgColor").unwrap(), + http_only_cookie_attribute: hashmap.remove("httpOnlyCookieAttribute").unwrap(), + landing_page_design: hashmap.remove("landingPageDesign").unwrap(), + logo_url: hashmap.remove("logoUrl").unwrap(), + name: hashmap.remove("name").unwrap(), + saas_app: hashmap.remove("saasApp").unwrap(), + same_site_cookie_attribute: hashmap.remove("sameSiteCookieAttribute").unwrap(), + self_hosted_domains: hashmap.remove("selfHostedDomains").unwrap(), + service_auth401_redirect: hashmap.remove("serviceAuth401Redirect").unwrap(), + session_duration: hashmap.remove("sessionDuration").unwrap(), + skip_interstitial: hashmap.remove("skipInterstitial").unwrap(), + tags: hashmap.remove("tags").unwrap(), + type_: hashmap.remove("type").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -596,42 +420,15 @@ impl access_ca_certificate::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_ca_certificate::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - application_id: o - .fields - .iter() - .find(|o| o.name == "applicationId") - .unwrap() - .output - .duplicate(), - aud: o - .fields - .iter() - .find(|o| o.name == "aud") - .unwrap() - .output - .duplicate(), - public_key: o - .fields - .iter() - .find(|o| o.name == "publicKey") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + application_id: hashmap.remove("applicationId").unwrap(), + aud: hashmap.remove("aud").unwrap(), + public_key: hashmap.remove("publicKey").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -691,49 +488,16 @@ impl access_custom_page::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_custom_page::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - app_count: o - .fields - .iter() - .find(|o| o.name == "appCount") - .unwrap() - .output - .duplicate(), - custom_html: o - .fields - .iter() - .find(|o| o.name == "customHtml") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + app_count: hashmap.remove("appCount").unwrap(), + custom_html: hashmap.remove("customHtml").unwrap(), + name: hashmap.remove("name").unwrap(), + type_: hashmap.remove("type").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -793,49 +557,16 @@ impl access_group::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_group::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - excludes: o - .fields - .iter() - .find(|o| o.name == "excludes") - .unwrap() - .output - .duplicate(), - includes: o - .fields - .iter() - .find(|o| o.name == "includes") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - requires: o - .fields - .iter() - .find(|o| o.name == "requires") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + excludes: hashmap.remove("excludes").unwrap(), + includes: hashmap.remove("includes").unwrap(), + name: hashmap.remove("name").unwrap(), + requires: hashmap.remove("requires").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -895,49 +626,16 @@ impl access_identity_provider::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_identity_provider::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - configs: o - .fields - .iter() - .find(|o| o.name == "configs") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - scim_configs: o - .fields - .iter() - .find(|o| o.name == "scimConfigs") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + configs: hashmap.remove("configs").unwrap(), + name: hashmap.remove("name").unwrap(), + scim_configs: hashmap.remove("scimConfigs").unwrap(), + type_: hashmap.remove("type").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -972,21 +670,12 @@ impl access_keys_configuration::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_keys_configuration::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - key_rotation_interval_days: o - .fields - .iter() - .find(|o| o.name == "keyRotationIntervalDays") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + key_rotation_interval_days: hashmap.remove("keyRotationIntervalDays").unwrap(), } } } @@ -1045,49 +734,16 @@ impl access_mutual_tls_certificate::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_mutual_tls_certificate::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - associated_hostnames: o - .fields - .iter() - .find(|o| o.name == "associatedHostnames") - .unwrap() - .output - .duplicate(), - certificate: o - .fields - .iter() - .find(|o| o.name == "certificate") - .unwrap() - .output - .duplicate(), - fingerprint: o - .fields - .iter() - .find(|o| o.name == "fingerprint") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + associated_hostnames: hashmap.remove("associatedHostnames").unwrap(), + certificate: hashmap.remove("certificate").unwrap(), + fingerprint: hashmap.remove("fingerprint").unwrap(), + name: hashmap.remove("name").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1131,28 +787,13 @@ impl access_mutual_tls_hostname_settings::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_mutual_tls_hostname_settings::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - settings: o - .fields - .iter() - .find(|o| o.name == "settings") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + settings: hashmap.remove("settings").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1261,98 +902,25 @@ impl access_organization::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_organization::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - allow_authenticate_via_warp: o - .fields - .iter() - .find(|o| o.name == "allowAuthenticateViaWarp") - .unwrap() - .output - .duplicate(), - auth_domain: o - .fields - .iter() - .find(|o| o.name == "authDomain") - .unwrap() - .output - .duplicate(), - auto_redirect_to_identity: o - .fields - .iter() - .find(|o| o.name == "autoRedirectToIdentity") - .unwrap() - .output - .duplicate(), - custom_pages: o - .fields - .iter() - .find(|o| o.name == "customPages") - .unwrap() - .output - .duplicate(), - is_ui_read_only: o - .fields - .iter() - .find(|o| o.name == "isUiReadOnly") - .unwrap() - .output - .duplicate(), - login_designs: o - .fields - .iter() - .find(|o| o.name == "loginDesigns") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - session_duration: o - .fields - .iter() - .find(|o| o.name == "sessionDuration") - .unwrap() - .output - .duplicate(), - ui_read_only_toggle_reason: o - .fields - .iter() - .find(|o| o.name == "uiReadOnlyToggleReason") - .unwrap() - .output - .duplicate(), - user_seat_expiration_inactive_time: o - .fields - .iter() - .find(|o| o.name == "userSeatExpirationInactiveTime") - .unwrap() - .output - .duplicate(), - warp_auth_session_duration: o - .fields - .iter() - .find(|o| o.name == "warpAuthSessionDuration") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + allow_authenticate_via_warp: hashmap.remove("allowAuthenticateViaWarp").unwrap(), + auth_domain: hashmap.remove("authDomain").unwrap(), + auto_redirect_to_identity: hashmap.remove("autoRedirectToIdentity").unwrap(), + custom_pages: hashmap.remove("customPages").unwrap(), + is_ui_read_only: hashmap.remove("isUiReadOnly").unwrap(), + login_designs: hashmap.remove("loginDesigns").unwrap(), + name: hashmap.remove("name").unwrap(), + session_duration: hashmap.remove("sessionDuration").unwrap(), + ui_read_only_toggle_reason: hashmap.remove("uiReadOnlyToggleReason").unwrap(), + user_seat_expiration_inactive_time: hashmap + .remove("userSeatExpirationInactiveTime") + .unwrap(), + warp_auth_session_duration: hashmap.remove("warpAuthSessionDuration").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1475,112 +1043,25 @@ impl access_policy::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_policy::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - application_id: o - .fields - .iter() - .find(|o| o.name == "applicationId") - .unwrap() - .output - .duplicate(), - approval_groups: o - .fields - .iter() - .find(|o| o.name == "approvalGroups") - .unwrap() - .output - .duplicate(), - approval_required: o - .fields - .iter() - .find(|o| o.name == "approvalRequired") - .unwrap() - .output - .duplicate(), - decision: o - .fields - .iter() - .find(|o| o.name == "decision") - .unwrap() - .output - .duplicate(), - excludes: o - .fields - .iter() - .find(|o| o.name == "excludes") - .unwrap() - .output - .duplicate(), - includes: o - .fields - .iter() - .find(|o| o.name == "includes") - .unwrap() - .output - .duplicate(), - isolation_required: o - .fields - .iter() - .find(|o| o.name == "isolationRequired") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - precedence: o - .fields - .iter() - .find(|o| o.name == "precedence") - .unwrap() - .output - .duplicate(), - purpose_justification_prompt: o - .fields - .iter() - .find(|o| o.name == "purposeJustificationPrompt") - .unwrap() - .output - .duplicate(), - purpose_justification_required: o - .fields - .iter() - .find(|o| o.name == "purposeJustificationRequired") - .unwrap() - .output - .duplicate(), - requires: o - .fields - .iter() - .find(|o| o.name == "requires") - .unwrap() - .output - .duplicate(), - session_duration: o - .fields - .iter() - .find(|o| o.name == "sessionDuration") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + application_id: hashmap.remove("applicationId").unwrap(), + approval_groups: hashmap.remove("approvalGroups").unwrap(), + approval_required: hashmap.remove("approvalRequired").unwrap(), + decision: hashmap.remove("decision").unwrap(), + excludes: hashmap.remove("excludes").unwrap(), + includes: hashmap.remove("includes").unwrap(), + isolation_required: hashmap.remove("isolationRequired").unwrap(), + name: hashmap.remove("name").unwrap(), + precedence: hashmap.remove("precedence").unwrap(), + purpose_justification_prompt: hashmap.remove("purposeJustificationPrompt").unwrap(), + purpose_justification_required: hashmap.remove("purposeJustificationRequired").unwrap(), + requires: hashmap.remove("requires").unwrap(), + session_duration: hashmap.remove("sessionDuration").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1633,42 +1114,15 @@ impl access_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_rule::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - configuration: o - .fields - .iter() - .find(|o| o.name == "configuration") - .unwrap() - .output - .duplicate(), - mode: o - .fields - .iter() - .find(|o| o.name == "mode") - .unwrap() - .output - .duplicate(), - notes: o - .fields - .iter() - .find(|o| o.name == "notes") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + configuration: hashmap.remove("configuration").unwrap(), + mode: hashmap.remove("mode").unwrap(), + notes: hashmap.remove("notes").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1730,63 +1184,18 @@ impl access_service_token::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_service_token::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - client_id: o - .fields - .iter() - .find(|o| o.name == "clientId") - .unwrap() - .output - .duplicate(), - client_secret: o - .fields - .iter() - .find(|o| o.name == "clientSecret") - .unwrap() - .output - .duplicate(), - duration: o - .fields - .iter() - .find(|o| o.name == "duration") - .unwrap() - .output - .duplicate(), - expires_at: o - .fields - .iter() - .find(|o| o.name == "expiresAt") - .unwrap() - .output - .duplicate(), - min_days_for_renewal: o - .fields - .iter() - .find(|o| o.name == "minDaysForRenewal") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + client_id: hashmap.remove("clientId").unwrap(), + client_secret: hashmap.remove("clientSecret").unwrap(), + duration: hashmap.remove("duration").unwrap(), + expires_at: hashmap.remove("expiresAt").unwrap(), + min_days_for_renewal: hashmap.remove("minDaysForRenewal").unwrap(), + name: hashmap.remove("name").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1832,35 +1241,14 @@ impl access_tag::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + access_tag::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - app_count: o - .fields - .iter() - .find(|o| o.name == "appCount") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + app_count: hashmap.remove("appCount").unwrap(), + name: hashmap.remove("name").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -1899,28 +1287,13 @@ impl account::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + account::Res { - enforce_twofactor: o - .fields - .iter() - .find(|o| o.name == "enforceTwofactor") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + enforce_twofactor: hashmap.remove("enforceTwofactor").unwrap(), + name: hashmap.remove("name").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -1966,35 +1339,14 @@ impl account_member::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + account_member::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - email_address: o - .fields - .iter() - .find(|o| o.name == "emailAddress") - .unwrap() - .output - .duplicate(), - role_ids: o - .fields - .iter() - .find(|o| o.name == "roleIds") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + email_address: hashmap.remove("emailAddress").unwrap(), + role_ids: hashmap.remove("roleIds").unwrap(), + status: hashmap.remove("status").unwrap(), } } } @@ -2058,63 +1410,18 @@ impl address_map::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + address_map::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - can_delete: o - .fields - .iter() - .find(|o| o.name == "canDelete") - .unwrap() - .output - .duplicate(), - can_modify_ips: o - .fields - .iter() - .find(|o| o.name == "canModifyIps") - .unwrap() - .output - .duplicate(), - default_sni: o - .fields - .iter() - .find(|o| o.name == "defaultSni") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - ips: o - .fields - .iter() - .find(|o| o.name == "ips") - .unwrap() - .output - .duplicate(), - memberships: o - .fields - .iter() - .find(|o| o.name == "memberships") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + can_delete: hashmap.remove("canDelete").unwrap(), + can_modify_ips: hashmap.remove("canModifyIps").unwrap(), + default_sni: hashmap.remove("defaultSni").unwrap(), + description: hashmap.remove("description").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + ips: hashmap.remove("ips").unwrap(), + memberships: hashmap.remove("memberships").unwrap(), } } } @@ -2146,21 +1453,12 @@ impl api_shield::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + api_shield::Res { - auth_id_characteristics: o - .fields - .iter() - .find(|o| o.name == "authIdCharacteristics") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + auth_id_characteristics: hashmap.remove("authIdCharacteristics").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2206,35 +1504,14 @@ impl api_shield_operation::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + api_shield_operation::Res { - endpoint: o - .fields - .iter() - .find(|o| o.name == "endpoint") - .unwrap() - .output - .duplicate(), - host: o - .fields - .iter() - .find(|o| o.name == "host") - .unwrap() - .output - .duplicate(), - method: o - .fields - .iter() - .find(|o| o.name == "method") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + endpoint: hashmap.remove("endpoint").unwrap(), + host: hashmap.remove("host").unwrap(), + method: hashmap.remove("method").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2261,28 +1538,13 @@ impl api_shield_operation_schema_validation_settings::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + api_shield_operation_schema_validation_settings::Res { - mitigation_action: o - .fields - .iter() - .find(|o| o.name == "mitigationAction") - .unwrap() - .output - .duplicate(), - operation_id: o - .fields - .iter() - .find(|o| o.name == "operationId") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + mitigation_action: hashmap.remove("mitigationAction").unwrap(), + operation_id: hashmap.remove("operationId").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2335,42 +1597,15 @@ impl api_shield_schema::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + api_shield_schema::Res { - kind: o - .fields - .iter() - .find(|o| o.name == "kind") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - source: o - .fields - .iter() - .find(|o| o.name == "source") - .unwrap() - .output - .duplicate(), - validation_enabled: o - .fields - .iter() - .find(|o| o.name == "validationEnabled") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + kind: hashmap.remove("kind").unwrap(), + name: hashmap.remove("name").unwrap(), + source: hashmap.remove("source").unwrap(), + validation_enabled: hashmap.remove("validationEnabled").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2397,28 +1632,17 @@ impl api_shield_schema_validation_settings::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + api_shield_schema_validation_settings::Res { - validation_default_mitigation_action: o - .fields - .iter() - .find(|o| o.name == "validationDefaultMitigationAction") - .unwrap() - .output - .duplicate(), - validation_override_mitigation_action: o - .fields - .iter() - .find(|o| o.name == "validationOverrideMitigationAction") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + validation_default_mitigation_action: hashmap + .remove("validationDefaultMitigationAction") + .unwrap(), + validation_override_mitigation_action: hashmap + .remove("validationOverrideMitigationAction") + .unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2483,70 +1707,19 @@ impl api_token::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + api_token::Res { - condition: o - .fields - .iter() - .find(|o| o.name == "condition") - .unwrap() - .output - .duplicate(), - expires_on: o - .fields - .iter() - .find(|o| o.name == "expiresOn") - .unwrap() - .output - .duplicate(), - issued_on: o - .fields - .iter() - .find(|o| o.name == "issuedOn") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - not_before: o - .fields - .iter() - .find(|o| o.name == "notBefore") - .unwrap() - .output - .duplicate(), - policies: o - .fields - .iter() - .find(|o| o.name == "policies") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - value: o - .fields - .iter() - .find(|o| o.name == "value") - .unwrap() - .output - .duplicate(), + condition: hashmap.remove("condition").unwrap(), + expires_on: hashmap.remove("expiresOn").unwrap(), + issued_on: hashmap.remove("issuedOn").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + name: hashmap.remove("name").unwrap(), + not_before: hashmap.remove("notBefore").unwrap(), + policies: hashmap.remove("policies").unwrap(), + status: hashmap.remove("status").unwrap(), + value: hashmap.remove("value").unwrap(), } } } @@ -2585,28 +1758,13 @@ impl argo::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + argo::Res { - smart_routing: o - .fields - .iter() - .find(|o| o.name == "smartRouting") - .unwrap() - .output - .duplicate(), - tiered_caching: o - .fields - .iter() - .find(|o| o.name == "tieredCaching") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + smart_routing: hashmap.remove("smartRouting").unwrap(), + tiered_caching: hashmap.remove("tieredCaching").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2655,35 +1813,16 @@ impl authenticated_origin_pulls::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + authenticated_origin_pulls::Res { - authenticated_origin_pulls_certificate: o - .fields - .iter() - .find(|o| o.name == "authenticatedOriginPullsCertificate") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + authenticated_origin_pulls_certificate: hashmap + .remove("authenticatedOriginPullsCertificate") + .unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2718,77 +1857,20 @@ impl authenticated_origin_pulls_certificate::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + authenticated_origin_pulls_certificate::Res { - certificate: o - .fields - .iter() - .find(|o| o.name == "certificate") - .unwrap() - .output - .duplicate(), - expires_on: o - .fields - .iter() - .find(|o| o.name == "expiresOn") - .unwrap() - .output - .duplicate(), - issuer: o - .fields - .iter() - .find(|o| o.name == "issuer") - .unwrap() - .output - .duplicate(), - private_key: o - .fields - .iter() - .find(|o| o.name == "privateKey") - .unwrap() - .output - .duplicate(), - serial_number: o - .fields - .iter() - .find(|o| o.name == "serialNumber") - .unwrap() - .output - .duplicate(), - signature: o - .fields - .iter() - .find(|o| o.name == "signature") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - uploaded_on: o - .fields - .iter() - .find(|o| o.name == "uploadedOn") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + certificate: hashmap.remove("certificate").unwrap(), + expires_on: hashmap.remove("expiresOn").unwrap(), + issuer: hashmap.remove("issuer").unwrap(), + private_key: hashmap.remove("privateKey").unwrap(), + serial_number: hashmap.remove("serialNumber").unwrap(), + signature: hashmap.remove("signature").unwrap(), + status: hashmap.remove("status").unwrap(), + type_: hashmap.remove("type").unwrap(), + uploaded_on: hashmap.remove("uploadedOn").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -2879,84 +1961,23 @@ impl bot_management::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + bot_management::Res { - auto_update_model: o - .fields - .iter() - .find(|o| o.name == "autoUpdateModel") - .unwrap() - .output - .duplicate(), - enable_js: o - .fields - .iter() - .find(|o| o.name == "enableJs") - .unwrap() - .output - .duplicate(), - fight_mode: o - .fields - .iter() - .find(|o| o.name == "fightMode") - .unwrap() - .output - .duplicate(), - optimize_wordpress: o - .fields - .iter() - .find(|o| o.name == "optimizeWordpress") - .unwrap() - .output - .duplicate(), - sbfm_definitely_automated: o - .fields - .iter() - .find(|o| o.name == "sbfmDefinitelyAutomated") - .unwrap() - .output - .duplicate(), - sbfm_likely_automated: o - .fields - .iter() - .find(|o| o.name == "sbfmLikelyAutomated") - .unwrap() - .output - .duplicate(), - sbfm_static_resource_protection: o - .fields - .iter() - .find(|o| o.name == "sbfmStaticResourceProtection") - .unwrap() - .output - .duplicate(), - sbfm_verified_bots: o - .fields - .iter() - .find(|o| o.name == "sbfmVerifiedBots") - .unwrap() - .output - .duplicate(), - suppress_session_score: o - .fields - .iter() - .find(|o| o.name == "suppressSessionScore") - .unwrap() - .output - .duplicate(), - using_latest_model: o - .fields - .iter() - .find(|o| o.name == "usingLatestModel") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + auto_update_model: hashmap.remove("autoUpdateModel").unwrap(), + enable_js: hashmap.remove("enableJs").unwrap(), + fight_mode: hashmap.remove("fightMode").unwrap(), + optimize_wordpress: hashmap.remove("optimizeWordpress").unwrap(), + sbfm_definitely_automated: hashmap.remove("sbfmDefinitelyAutomated").unwrap(), + sbfm_likely_automated: hashmap.remove("sbfmLikelyAutomated").unwrap(), + sbfm_static_resource_protection: hashmap + .remove("sbfmStaticResourceProtection") + .unwrap(), + sbfm_verified_bots: hashmap.remove("sbfmVerifiedBots").unwrap(), + suppress_session_score: hashmap.remove("suppressSessionScore").unwrap(), + using_latest_model: hashmap.remove("usingLatestModel").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3002,35 +2023,14 @@ impl byo_ip_prefix::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + byo_ip_prefix::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - advertisement: o - .fields - .iter() - .find(|o| o.name == "advertisement") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - prefix_id: o - .fields - .iter() - .find(|o| o.name == "prefixId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + advertisement: hashmap.remove("advertisement").unwrap(), + description: hashmap.remove("description").unwrap(), + prefix_id: hashmap.remove("prefixId").unwrap(), } } } @@ -3118,77 +2118,20 @@ impl certificate_pack::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + certificate_pack::Res { - certificate_authority: o - .fields - .iter() - .find(|o| o.name == "certificateAuthority") - .unwrap() - .output - .duplicate(), - cloudflare_branding: o - .fields - .iter() - .find(|o| o.name == "cloudflareBranding") - .unwrap() - .output - .duplicate(), - hosts: o - .fields - .iter() - .find(|o| o.name == "hosts") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - validation_errors: o - .fields - .iter() - .find(|o| o.name == "validationErrors") - .unwrap() - .output - .duplicate(), - validation_method: o - .fields - .iter() - .find(|o| o.name == "validationMethod") - .unwrap() - .output - .duplicate(), - validation_records: o - .fields - .iter() - .find(|o| o.name == "validationRecords") - .unwrap() - .output - .duplicate(), - validity_days: o - .fields - .iter() - .find(|o| o.name == "validityDays") - .unwrap() - .output - .duplicate(), - wait_for_active_status: o - .fields - .iter() - .find(|o| o.name == "waitForActiveStatus") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + certificate_authority: hashmap.remove("certificateAuthority").unwrap(), + cloudflare_branding: hashmap.remove("cloudflareBranding").unwrap(), + hosts: hashmap.remove("hosts").unwrap(), + type_: hashmap.remove("type").unwrap(), + validation_errors: hashmap.remove("validationErrors").unwrap(), + validation_method: hashmap.remove("validationMethod").unwrap(), + validation_records: hashmap.remove("validationRecords").unwrap(), + validity_days: hashmap.remove("validityDays").unwrap(), + wait_for_active_status: hashmap.remove("waitForActiveStatus").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3264,77 +2207,20 @@ impl custom_hostname::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + custom_hostname::Res { - custom_metadata: o - .fields - .iter() - .find(|o| o.name == "customMetadata") - .unwrap() - .output - .duplicate(), - custom_origin_server: o - .fields - .iter() - .find(|o| o.name == "customOriginServer") - .unwrap() - .output - .duplicate(), - custom_origin_sni: o - .fields - .iter() - .find(|o| o.name == "customOriginSni") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - ownership_verification: o - .fields - .iter() - .find(|o| o.name == "ownershipVerification") - .unwrap() - .output - .duplicate(), - ownership_verification_http: o - .fields - .iter() - .find(|o| o.name == "ownershipVerificationHttp") - .unwrap() - .output - .duplicate(), - ssls: o - .fields - .iter() - .find(|o| o.name == "ssls") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - wait_for_ssl_pending_validation: o - .fields - .iter() - .find(|o| o.name == "waitForSslPendingValidation") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + custom_metadata: hashmap.remove("customMetadata").unwrap(), + custom_origin_server: hashmap.remove("customOriginServer").unwrap(), + custom_origin_sni: hashmap.remove("customOriginSni").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + ownership_verification: hashmap.remove("ownershipVerification").unwrap(), + ownership_verification_http: hashmap.remove("ownershipVerificationHttp").unwrap(), + ssls: hashmap.remove("ssls").unwrap(), + status: hashmap.remove("status").unwrap(), + wait_for_ssl_pending_validation: hashmap.remove("waitForSslPendingValidation").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3373,28 +2259,13 @@ impl custom_hostname_fallback_origin::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + custom_hostname_fallback_origin::Res { - origin: o - .fields - .iter() - .find(|o| o.name == "origin") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + origin: hashmap.remove("origin").unwrap(), + status: hashmap.remove("status").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3445,42 +2316,15 @@ impl custom_pages::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + custom_pages::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - state: o - .fields - .iter() - .find(|o| o.name == "state") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - url: o - .fields - .iter() - .find(|o| o.name == "url") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + state: hashmap.remove("state").unwrap(), + type_: hashmap.remove("type").unwrap(), + url: hashmap.remove("url").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3543,84 +2387,21 @@ impl custom_ssl::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + custom_ssl::Res { - custom_ssl_options: o - .fields - .iter() - .find(|o| o.name == "customSslOptions") - .unwrap() - .output - .duplicate(), - custom_ssl_priorities: o - .fields - .iter() - .find(|o| o.name == "customSslPriorities") - .unwrap() - .output - .duplicate(), - expires_on: o - .fields - .iter() - .find(|o| o.name == "expiresOn") - .unwrap() - .output - .duplicate(), - hosts: o - .fields - .iter() - .find(|o| o.name == "hosts") - .unwrap() - .output - .duplicate(), - issuer: o - .fields - .iter() - .find(|o| o.name == "issuer") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - signature: o - .fields - .iter() - .find(|o| o.name == "signature") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - uploaded_on: o - .fields - .iter() - .find(|o| o.name == "uploadedOn") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + custom_ssl_options: hashmap.remove("customSslOptions").unwrap(), + custom_ssl_priorities: hashmap.remove("customSslPriorities").unwrap(), + expires_on: hashmap.remove("expiresOn").unwrap(), + hosts: hashmap.remove("hosts").unwrap(), + issuer: hashmap.remove("issuer").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + priority: hashmap.remove("priority").unwrap(), + signature: hashmap.remove("signature").unwrap(), + status: hashmap.remove("status").unwrap(), + uploaded_on: hashmap.remove("uploadedOn").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3655,28 +2436,13 @@ impl d1_database::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + d1_database::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - version: o - .fields - .iter() - .find(|o| o.name == "version") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + name: hashmap.remove("name").unwrap(), + version: hashmap.remove("version").unwrap(), } } } @@ -3742,63 +2508,18 @@ impl device_dex_test::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + device_dex_test::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - created: o - .fields - .iter() - .find(|o| o.name == "created") - .unwrap() - .output - .duplicate(), - data: o - .fields - .iter() - .find(|o| o.name == "data") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - interval: o - .fields - .iter() - .find(|o| o.name == "interval") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - updated: o - .fields - .iter() - .find(|o| o.name == "updated") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + created: hashmap.remove("created").unwrap(), + data: hashmap.remove("data").unwrap(), + description: hashmap.remove("description").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + interval: hashmap.remove("interval").unwrap(), + name: hashmap.remove("name").unwrap(), + updated: hashmap.remove("updated").unwrap(), } } } @@ -3844,35 +2565,14 @@ impl device_managed_networks::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + device_managed_networks::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - config: o - .fields - .iter() - .find(|o| o.name == "config") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + config: hashmap.remove("config").unwrap(), + name: hashmap.remove("name").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -3907,21 +2607,12 @@ impl device_policy_certificates::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + device_policy_certificates::Res { - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + enabled: hashmap.remove("enabled").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -3984,49 +2675,16 @@ impl device_posture_integration::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + device_posture_integration::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - configs: o - .fields - .iter() - .find(|o| o.name == "configs") - .unwrap() - .output - .duplicate(), - identifier: o - .fields - .iter() - .find(|o| o.name == "identifier") - .unwrap() - .output - .duplicate(), - interval: o - .fields - .iter() - .find(|o| o.name == "interval") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + configs: hashmap.remove("configs").unwrap(), + identifier: hashmap.remove("identifier").unwrap(), + interval: hashmap.remove("interval").unwrap(), + name: hashmap.remove("name").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -4100,63 +2758,18 @@ impl device_posture_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + device_posture_rule::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - expiration: o - .fields - .iter() - .find(|o| o.name == "expiration") - .unwrap() - .output - .duplicate(), - inputs: o - .fields - .iter() - .find(|o| o.name == "inputs") - .unwrap() - .output - .duplicate(), - matches: o - .fields - .iter() - .find(|o| o.name == "matches") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - schedule: o - .fields - .iter() - .find(|o| o.name == "schedule") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + description: hashmap.remove("description").unwrap(), + expiration: hashmap.remove("expiration").unwrap(), + inputs: hashmap.remove("inputs").unwrap(), + matches: hashmap.remove("matches").unwrap(), + name: hashmap.remove("name").unwrap(), + schedule: hashmap.remove("schedule").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -4300,133 +2913,28 @@ impl device_settings_policy::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + device_settings_policy::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - allow_mode_switch: o - .fields - .iter() - .find(|o| o.name == "allowModeSwitch") - .unwrap() - .output - .duplicate(), - allow_updates: o - .fields - .iter() - .find(|o| o.name == "allowUpdates") - .unwrap() - .output - .duplicate(), - allowed_to_leave: o - .fields - .iter() - .find(|o| o.name == "allowedToLeave") - .unwrap() - .output - .duplicate(), - auto_connect: o - .fields - .iter() - .find(|o| o.name == "autoConnect") - .unwrap() - .output - .duplicate(), - captive_portal: o - .fields - .iter() - .find(|o| o.name == "captivePortal") - .unwrap() - .output - .duplicate(), - default: o - .fields - .iter() - .find(|o| o.name == "default") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - disable_auto_fallback: o - .fields - .iter() - .find(|o| o.name == "disableAutoFallback") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - exclude_office_ips: o - .fields - .iter() - .find(|o| o.name == "excludeOfficeIps") - .unwrap() - .output - .duplicate(), - match_: o - .fields - .iter() - .find(|o| o.name == "match") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - precedence: o - .fields - .iter() - .find(|o| o.name == "precedence") - .unwrap() - .output - .duplicate(), - service_mode_v2_mode: o - .fields - .iter() - .find(|o| o.name == "serviceModeV2Mode") - .unwrap() - .output - .duplicate(), - service_mode_v2_port: o - .fields - .iter() - .find(|o| o.name == "serviceModeV2Port") - .unwrap() - .output - .duplicate(), - support_url: o - .fields - .iter() - .find(|o| o.name == "supportUrl") - .unwrap() - .output - .duplicate(), - switch_locked: o - .fields - .iter() - .find(|o| o.name == "switchLocked") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + allow_mode_switch: hashmap.remove("allowModeSwitch").unwrap(), + allow_updates: hashmap.remove("allowUpdates").unwrap(), + allowed_to_leave: hashmap.remove("allowedToLeave").unwrap(), + auto_connect: hashmap.remove("autoConnect").unwrap(), + captive_portal: hashmap.remove("captivePortal").unwrap(), + default: hashmap.remove("default").unwrap(), + description: hashmap.remove("description").unwrap(), + disable_auto_fallback: hashmap.remove("disableAutoFallback").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + exclude_office_ips: hashmap.remove("excludeOfficeIps").unwrap(), + match_: hashmap.remove("match").unwrap(), + name: hashmap.remove("name").unwrap(), + precedence: hashmap.remove("precedence").unwrap(), + service_mode_v2_mode: hashmap.remove("serviceModeV2Mode").unwrap(), + service_mode_v2_port: hashmap.remove("serviceModeV2Port").unwrap(), + support_url: hashmap.remove("supportUrl").unwrap(), + switch_locked: hashmap.remove("switchLocked").unwrap(), } } } @@ -4493,56 +3001,17 @@ impl dlp_profile::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + dlp_profile::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - allowed_match_count: o - .fields - .iter() - .find(|o| o.name == "allowedMatchCount") - .unwrap() - .output - .duplicate(), - context_awareness: o - .fields - .iter() - .find(|o| o.name == "contextAwareness") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - entries: o - .fields - .iter() - .find(|o| o.name == "entries") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + allowed_match_count: hashmap.remove("allowedMatchCount").unwrap(), + context_awareness: hashmap.remove("contextAwareness").unwrap(), + description: hashmap.remove("description").unwrap(), + entries: hashmap.remove("entries").unwrap(), + name: hashmap.remove("name").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -4584,49 +3053,16 @@ impl email_routing_address::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + email_routing_address::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - created: o - .fields - .iter() - .find(|o| o.name == "created") - .unwrap() - .output - .duplicate(), - email: o - .fields - .iter() - .find(|o| o.name == "email") - .unwrap() - .output - .duplicate(), - modified: o - .fields - .iter() - .find(|o| o.name == "modified") - .unwrap() - .output - .duplicate(), - tag: o - .fields - .iter() - .find(|o| o.name == "tag") - .unwrap() - .output - .duplicate(), - verified: o - .fields - .iter() - .find(|o| o.name == "verified") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + created: hashmap.remove("created").unwrap(), + email: hashmap.remove("email").unwrap(), + modified: hashmap.remove("modified").unwrap(), + tag: hashmap.remove("tag").unwrap(), + verified: hashmap.remove("verified").unwrap(), } } } @@ -4680,49 +3116,16 @@ impl email_routing_catch_all::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + email_routing_catch_all::Res { - actions: o - .fields - .iter() - .find(|o| o.name == "actions") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - matchers: o - .fields - .iter() - .find(|o| o.name == "matchers") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - tag: o - .fields - .iter() - .find(|o| o.name == "tag") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + actions: hashmap.remove("actions").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + matchers: hashmap.remove("matchers").unwrap(), + name: hashmap.remove("name").unwrap(), + tag: hashmap.remove("tag").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -4783,56 +3186,17 @@ impl email_routing_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + email_routing_rule::Res { - actions: o - .fields - .iter() - .find(|o| o.name == "actions") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - matchers: o - .fields - .iter() - .find(|o| o.name == "matchers") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - tag: o - .fields - .iter() - .find(|o| o.name == "tag") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + actions: hashmap.remove("actions").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + matchers: hashmap.remove("matchers").unwrap(), + name: hashmap.remove("name").unwrap(), + priority: hashmap.remove("priority").unwrap(), + tag: hashmap.remove("tag").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -4884,63 +3248,18 @@ impl email_routing_settings::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + email_routing_settings::Res { - created: o - .fields - .iter() - .find(|o| o.name == "created") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - modified: o - .fields - .iter() - .find(|o| o.name == "modified") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - skip_wizard: o - .fields - .iter() - .find(|o| o.name == "skipWizard") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - tag: o - .fields - .iter() - .find(|o| o.name == "tag") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + created: hashmap.remove("created").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + modified: hashmap.remove("modified").unwrap(), + name: hashmap.remove("name").unwrap(), + skip_wizard: hashmap.remove("skipWizard").unwrap(), + status: hashmap.remove("status").unwrap(), + tag: hashmap.remove("tag").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -4979,28 +3298,13 @@ impl fallback_domain::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + fallback_domain::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - domains: o - .fields - .iter() - .find(|o| o.name == "domains") - .unwrap() - .output - .duplicate(), - policy_id: o - .fields - .iter() - .find(|o| o.name == "policyId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + domains: hashmap.remove("domains").unwrap(), + policy_id: hashmap.remove("policyId").unwrap(), } } } @@ -5051,42 +3355,15 @@ impl filter::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + filter::Res { - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - expression: o - .fields - .iter() - .find(|o| o.name == "expression") - .unwrap() - .output - .duplicate(), - paused: o - .fields - .iter() - .find(|o| o.name == "paused") - .unwrap() - .output - .duplicate(), - ref_: o - .fields - .iter() - .find(|o| o.name == "ref") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + description: hashmap.remove("description").unwrap(), + expression: hashmap.remove("expression").unwrap(), + paused: hashmap.remove("paused").unwrap(), + ref_: hashmap.remove("ref").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -5153,56 +3430,17 @@ impl firewall_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + firewall_rule::Res { - action: o - .fields - .iter() - .find(|o| o.name == "action") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - filter_id: o - .fields - .iter() - .find(|o| o.name == "filterId") - .unwrap() - .output - .duplicate(), - paused: o - .fields - .iter() - .find(|o| o.name == "paused") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - products: o - .fields - .iter() - .find(|o| o.name == "products") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + action: hashmap.remove("action").unwrap(), + description: hashmap.remove("description").unwrap(), + filter_id: hashmap.remove("filterId").unwrap(), + paused: hashmap.remove("paused").unwrap(), + priority: hashmap.remove("priority").unwrap(), + products: hashmap.remove("products").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -5293,84 +3531,21 @@ impl gre_tunnel::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + gre_tunnel::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - cloudflare_gre_endpoint: o - .fields - .iter() - .find(|o| o.name == "cloudflareGreEndpoint") - .unwrap() - .output - .duplicate(), - customer_gre_endpoint: o - .fields - .iter() - .find(|o| o.name == "customerGreEndpoint") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - health_check_enabled: o - .fields - .iter() - .find(|o| o.name == "healthCheckEnabled") - .unwrap() - .output - .duplicate(), - health_check_target: o - .fields - .iter() - .find(|o| o.name == "healthCheckTarget") - .unwrap() - .output - .duplicate(), - health_check_type: o - .fields - .iter() - .find(|o| o.name == "healthCheckType") - .unwrap() - .output - .duplicate(), - interface_address: o - .fields - .iter() - .find(|o| o.name == "interfaceAddress") - .unwrap() - .output - .duplicate(), - mtu: o - .fields - .iter() - .find(|o| o.name == "mtu") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - ttl: o - .fields - .iter() - .find(|o| o.name == "ttl") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + cloudflare_gre_endpoint: hashmap.remove("cloudflareGreEndpoint").unwrap(), + customer_gre_endpoint: hashmap.remove("customerGreEndpoint").unwrap(), + description: hashmap.remove("description").unwrap(), + health_check_enabled: hashmap.remove("healthCheckEnabled").unwrap(), + health_check_target: hashmap.remove("healthCheckTarget").unwrap(), + health_check_type: hashmap.remove("healthCheckType").unwrap(), + interface_address: hashmap.remove("interfaceAddress").unwrap(), + mtu: hashmap.remove("mtu").unwrap(), + name: hashmap.remove("name").unwrap(), + ttl: hashmap.remove("ttl").unwrap(), } } } @@ -5534,161 +3709,32 @@ impl healthcheck::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + healthcheck::Res { - address: o - .fields - .iter() - .find(|o| o.name == "address") - .unwrap() - .output - .duplicate(), - allow_insecure: o - .fields - .iter() - .find(|o| o.name == "allowInsecure") - .unwrap() - .output - .duplicate(), - check_regions: o - .fields - .iter() - .find(|o| o.name == "checkRegions") - .unwrap() - .output - .duplicate(), - consecutive_fails: o - .fields - .iter() - .find(|o| o.name == "consecutiveFails") - .unwrap() - .output - .duplicate(), - consecutive_successes: o - .fields - .iter() - .find(|o| o.name == "consecutiveSuccesses") - .unwrap() - .output - .duplicate(), - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - expected_body: o - .fields - .iter() - .find(|o| o.name == "expectedBody") - .unwrap() - .output - .duplicate(), - expected_codes: o - .fields - .iter() - .find(|o| o.name == "expectedCodes") - .unwrap() - .output - .duplicate(), - follow_redirects: o - .fields - .iter() - .find(|o| o.name == "followRedirects") - .unwrap() - .output - .duplicate(), - headers: o - .fields - .iter() - .find(|o| o.name == "headers") - .unwrap() - .output - .duplicate(), - interval: o - .fields - .iter() - .find(|o| o.name == "interval") - .unwrap() - .output - .duplicate(), - method: o - .fields - .iter() - .find(|o| o.name == "method") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - path: o - .fields - .iter() - .find(|o| o.name == "path") - .unwrap() - .output - .duplicate(), - port: o - .fields - .iter() - .find(|o| o.name == "port") - .unwrap() - .output - .duplicate(), - retries: o - .fields - .iter() - .find(|o| o.name == "retries") - .unwrap() - .output - .duplicate(), - suspended: o - .fields - .iter() - .find(|o| o.name == "suspended") - .unwrap() - .output - .duplicate(), - timeout: o - .fields - .iter() - .find(|o| o.name == "timeout") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + address: hashmap.remove("address").unwrap(), + allow_insecure: hashmap.remove("allowInsecure").unwrap(), + check_regions: hashmap.remove("checkRegions").unwrap(), + consecutive_fails: hashmap.remove("consecutiveFails").unwrap(), + consecutive_successes: hashmap.remove("consecutiveSuccesses").unwrap(), + created_on: hashmap.remove("createdOn").unwrap(), + description: hashmap.remove("description").unwrap(), + expected_body: hashmap.remove("expectedBody").unwrap(), + expected_codes: hashmap.remove("expectedCodes").unwrap(), + follow_redirects: hashmap.remove("followRedirects").unwrap(), + headers: hashmap.remove("headers").unwrap(), + interval: hashmap.remove("interval").unwrap(), + method: hashmap.remove("method").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + name: hashmap.remove("name").unwrap(), + path: hashmap.remove("path").unwrap(), + port: hashmap.remove("port").unwrap(), + retries: hashmap.remove("retries").unwrap(), + suspended: hashmap.remove("suspended").unwrap(), + timeout: hashmap.remove("timeout").unwrap(), + type_: hashmap.remove("type").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -5740,49 +3786,16 @@ impl hostname_tls_setting::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + hostname_tls_setting::Res { - created_at: o - .fields - .iter() - .find(|o| o.name == "createdAt") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - setting: o - .fields - .iter() - .find(|o| o.name == "setting") - .unwrap() - .output - .duplicate(), - updated_at: o - .fields - .iter() - .find(|o| o.name == "updatedAt") - .unwrap() - .output - .duplicate(), - value: o - .fields - .iter() - .find(|o| o.name == "value") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + created_at: hashmap.remove("createdAt").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + setting: hashmap.remove("setting").unwrap(), + updated_at: hashmap.remove("updatedAt").unwrap(), + value: hashmap.remove("value").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -5837,49 +3850,16 @@ impl hostname_tls_setting_ciphers::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + hostname_tls_setting_ciphers::Res { - created_at: o - .fields - .iter() - .find(|o| o.name == "createdAt") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - ports: o - .fields - .iter() - .find(|o| o.name == "ports") - .unwrap() - .output - .duplicate(), - updated_at: o - .fields - .iter() - .find(|o| o.name == "updatedAt") - .unwrap() - .output - .duplicate(), - values: o - .fields - .iter() - .find(|o| o.name == "values") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + created_at: hashmap.remove("createdAt").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + ports: hashmap.remove("ports").unwrap(), + updated_at: hashmap.remove("updatedAt").unwrap(), + values: hashmap.remove("values").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -5925,35 +3905,14 @@ impl hyperdrive_config::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + hyperdrive_config::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - caching: o - .fields - .iter() - .find(|o| o.name == "caching") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - origin: o - .fields - .iter() - .find(|o| o.name == "origin") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + caching: hashmap.remove("caching").unwrap(), + name: hashmap.remove("name").unwrap(), + origin: hashmap.remove("origin").unwrap(), } } } @@ -6088,126 +4047,27 @@ impl ipsec_tunnel::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + ipsec_tunnel::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - allow_null_cipher: o - .fields - .iter() - .find(|o| o.name == "allowNullCipher") - .unwrap() - .output - .duplicate(), - cloudflare_endpoint: o - .fields - .iter() - .find(|o| o.name == "cloudflareEndpoint") - .unwrap() - .output - .duplicate(), - customer_endpoint: o - .fields - .iter() - .find(|o| o.name == "customerEndpoint") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - fqdn_id: o - .fields - .iter() - .find(|o| o.name == "fqdnId") - .unwrap() - .output - .duplicate(), - health_check_direction: o - .fields - .iter() - .find(|o| o.name == "healthCheckDirection") - .unwrap() - .output - .duplicate(), - health_check_enabled: o - .fields - .iter() - .find(|o| o.name == "healthCheckEnabled") - .unwrap() - .output - .duplicate(), - health_check_rate: o - .fields - .iter() - .find(|o| o.name == "healthCheckRate") - .unwrap() - .output - .duplicate(), - health_check_target: o - .fields - .iter() - .find(|o| o.name == "healthCheckTarget") - .unwrap() - .output - .duplicate(), - health_check_type: o - .fields - .iter() - .find(|o| o.name == "healthCheckType") - .unwrap() - .output - .duplicate(), - hex_id: o - .fields - .iter() - .find(|o| o.name == "hexId") - .unwrap() - .output - .duplicate(), - interface_address: o - .fields - .iter() - .find(|o| o.name == "interfaceAddress") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - psk: o - .fields - .iter() - .find(|o| o.name == "psk") - .unwrap() - .output - .duplicate(), - remote_id: o - .fields - .iter() - .find(|o| o.name == "remoteId") - .unwrap() - .output - .duplicate(), - user_id: o - .fields - .iter() - .find(|o| o.name == "userId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + allow_null_cipher: hashmap.remove("allowNullCipher").unwrap(), + cloudflare_endpoint: hashmap.remove("cloudflareEndpoint").unwrap(), + customer_endpoint: hashmap.remove("customerEndpoint").unwrap(), + description: hashmap.remove("description").unwrap(), + fqdn_id: hashmap.remove("fqdnId").unwrap(), + health_check_direction: hashmap.remove("healthCheckDirection").unwrap(), + health_check_enabled: hashmap.remove("healthCheckEnabled").unwrap(), + health_check_rate: hashmap.remove("healthCheckRate").unwrap(), + health_check_target: hashmap.remove("healthCheckTarget").unwrap(), + health_check_type: hashmap.remove("healthCheckType").unwrap(), + hex_id: hashmap.remove("hexId").unwrap(), + interface_address: hashmap.remove("interfaceAddress").unwrap(), + name: hashmap.remove("name").unwrap(), + psk: hashmap.remove("psk").unwrap(), + remote_id: hashmap.remove("remoteId").unwrap(), + user_id: hashmap.remove("userId").unwrap(), } } } @@ -6277,63 +4137,18 @@ impl keyless_certificate::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + keyless_certificate::Res { - bundle_method: o - .fields - .iter() - .find(|o| o.name == "bundleMethod") - .unwrap() - .output - .duplicate(), - certificate: o - .fields - .iter() - .find(|o| o.name == "certificate") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - host: o - .fields - .iter() - .find(|o| o.name == "host") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - port: o - .fields - .iter() - .find(|o| o.name == "port") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + bundle_method: hashmap.remove("bundleMethod").unwrap(), + certificate: hashmap.remove("certificate").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + host: hashmap.remove("host").unwrap(), + name: hashmap.remove("name").unwrap(), + port: hashmap.remove("port").unwrap(), + status: hashmap.remove("status").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -6386,42 +4201,15 @@ impl list::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + list::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - items: o - .fields - .iter() - .find(|o| o.name == "items") - .unwrap() - .output - .duplicate(), - kind: o - .fields - .iter() - .find(|o| o.name == "kind") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + description: hashmap.remove("description").unwrap(), + items: hashmap.remove("items").unwrap(), + kind: hashmap.remove("kind").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -6484,56 +4272,17 @@ impl list_item::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + list_item::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - asn: o - .fields - .iter() - .find(|o| o.name == "asn") - .unwrap() - .output - .duplicate(), - comment: o - .fields - .iter() - .find(|o| o.name == "comment") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - ip: o - .fields - .iter() - .find(|o| o.name == "ip") - .unwrap() - .output - .duplicate(), - list_id: o - .fields - .iter() - .find(|o| o.name == "listId") - .unwrap() - .output - .duplicate(), - redirect: o - .fields - .iter() - .find(|o| o.name == "redirect") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + asn: hashmap.remove("asn").unwrap(), + comment: hashmap.remove("comment").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + ip: hashmap.remove("ip").unwrap(), + list_id: hashmap.remove("listId").unwrap(), + redirect: hashmap.remove("redirect").unwrap(), } } } @@ -6688,154 +4437,31 @@ impl load_balancer::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + load_balancer::Res { - adaptive_routings: o - .fields - .iter() - .find(|o| o.name == "adaptiveRoutings") - .unwrap() - .output - .duplicate(), - country_pools: o - .fields - .iter() - .find(|o| o.name == "countryPools") - .unwrap() - .output - .duplicate(), - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - default_pool_ids: o - .fields - .iter() - .find(|o| o.name == "defaultPoolIds") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - fallback_pool_id: o - .fields - .iter() - .find(|o| o.name == "fallbackPoolId") - .unwrap() - .output - .duplicate(), - location_strategies: o - .fields - .iter() - .find(|o| o.name == "locationStrategies") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - pop_pools: o - .fields - .iter() - .find(|o| o.name == "popPools") - .unwrap() - .output - .duplicate(), - proxied: o - .fields - .iter() - .find(|o| o.name == "proxied") - .unwrap() - .output - .duplicate(), - random_steerings: o - .fields - .iter() - .find(|o| o.name == "randomSteerings") - .unwrap() - .output - .duplicate(), - region_pools: o - .fields - .iter() - .find(|o| o.name == "regionPools") - .unwrap() - .output - .duplicate(), - rules: o - .fields - .iter() - .find(|o| o.name == "rules") - .unwrap() - .output - .duplicate(), - session_affinity: o - .fields - .iter() - .find(|o| o.name == "sessionAffinity") - .unwrap() - .output - .duplicate(), - session_affinity_attributes: o - .fields - .iter() - .find(|o| o.name == "sessionAffinityAttributes") - .unwrap() - .output - .duplicate(), - session_affinity_ttl: o - .fields - .iter() - .find(|o| o.name == "sessionAffinityTtl") - .unwrap() - .output - .duplicate(), - steering_policy: o - .fields - .iter() - .find(|o| o.name == "steeringPolicy") - .unwrap() - .output - .duplicate(), - ttl: o - .fields - .iter() - .find(|o| o.name == "ttl") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + adaptive_routings: hashmap.remove("adaptiveRoutings").unwrap(), + country_pools: hashmap.remove("countryPools").unwrap(), + created_on: hashmap.remove("createdOn").unwrap(), + default_pool_ids: hashmap.remove("defaultPoolIds").unwrap(), + description: hashmap.remove("description").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + fallback_pool_id: hashmap.remove("fallbackPoolId").unwrap(), + location_strategies: hashmap.remove("locationStrategies").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + name: hashmap.remove("name").unwrap(), + pop_pools: hashmap.remove("popPools").unwrap(), + proxied: hashmap.remove("proxied").unwrap(), + random_steerings: hashmap.remove("randomSteerings").unwrap(), + region_pools: hashmap.remove("regionPools").unwrap(), + rules: hashmap.remove("rules").unwrap(), + session_affinity: hashmap.remove("sessionAffinity").unwrap(), + session_affinity_attributes: hashmap.remove("sessionAffinityAttributes").unwrap(), + session_affinity_ttl: hashmap.remove("sessionAffinityTtl").unwrap(), + steering_policy: hashmap.remove("steeringPolicy").unwrap(), + ttl: hashmap.remove("ttl").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -6978,140 +4604,29 @@ impl load_balancer_monitor::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + load_balancer_monitor::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - allow_insecure: o - .fields - .iter() - .find(|o| o.name == "allowInsecure") - .unwrap() - .output - .duplicate(), - consecutive_down: o - .fields - .iter() - .find(|o| o.name == "consecutiveDown") - .unwrap() - .output - .duplicate(), - consecutive_up: o - .fields - .iter() - .find(|o| o.name == "consecutiveUp") - .unwrap() - .output - .duplicate(), - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - expected_body: o - .fields - .iter() - .find(|o| o.name == "expectedBody") - .unwrap() - .output - .duplicate(), - expected_codes: o - .fields - .iter() - .find(|o| o.name == "expectedCodes") - .unwrap() - .output - .duplicate(), - follow_redirects: o - .fields - .iter() - .find(|o| o.name == "followRedirects") - .unwrap() - .output - .duplicate(), - headers: o - .fields - .iter() - .find(|o| o.name == "headers") - .unwrap() - .output - .duplicate(), - interval: o - .fields - .iter() - .find(|o| o.name == "interval") - .unwrap() - .output - .duplicate(), - method: o - .fields - .iter() - .find(|o| o.name == "method") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - path: o - .fields - .iter() - .find(|o| o.name == "path") - .unwrap() - .output - .duplicate(), - port: o - .fields - .iter() - .find(|o| o.name == "port") - .unwrap() - .output - .duplicate(), - probe_zone: o - .fields - .iter() - .find(|o| o.name == "probeZone") - .unwrap() - .output - .duplicate(), - retries: o - .fields - .iter() - .find(|o| o.name == "retries") - .unwrap() - .output - .duplicate(), - timeout: o - .fields - .iter() - .find(|o| o.name == "timeout") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + allow_insecure: hashmap.remove("allowInsecure").unwrap(), + consecutive_down: hashmap.remove("consecutiveDown").unwrap(), + consecutive_up: hashmap.remove("consecutiveUp").unwrap(), + created_on: hashmap.remove("createdOn").unwrap(), + description: hashmap.remove("description").unwrap(), + expected_body: hashmap.remove("expectedBody").unwrap(), + expected_codes: hashmap.remove("expectedCodes").unwrap(), + follow_redirects: hashmap.remove("followRedirects").unwrap(), + headers: hashmap.remove("headers").unwrap(), + interval: hashmap.remove("interval").unwrap(), + method: hashmap.remove("method").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + path: hashmap.remove("path").unwrap(), + port: hashmap.remove("port").unwrap(), + probe_zone: hashmap.remove("probeZone").unwrap(), + retries: hashmap.remove("retries").unwrap(), + timeout: hashmap.remove("timeout").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -7226,112 +4741,25 @@ impl load_balancer_pool::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + load_balancer_pool::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - check_regions: o - .fields - .iter() - .find(|o| o.name == "checkRegions") - .unwrap() - .output - .duplicate(), - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - latitude: o - .fields - .iter() - .find(|o| o.name == "latitude") - .unwrap() - .output - .duplicate(), - load_sheddings: o - .fields - .iter() - .find(|o| o.name == "loadSheddings") - .unwrap() - .output - .duplicate(), - longitude: o - .fields - .iter() - .find(|o| o.name == "longitude") - .unwrap() - .output - .duplicate(), - minimum_origins: o - .fields - .iter() - .find(|o| o.name == "minimumOrigins") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - monitor: o - .fields - .iter() - .find(|o| o.name == "monitor") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - notification_email: o - .fields - .iter() - .find(|o| o.name == "notificationEmail") - .unwrap() - .output - .duplicate(), - origin_steerings: o - .fields - .iter() - .find(|o| o.name == "originSteerings") - .unwrap() - .output - .duplicate(), - origins: o - .fields - .iter() - .find(|o| o.name == "origins") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + check_regions: hashmap.remove("checkRegions").unwrap(), + created_on: hashmap.remove("createdOn").unwrap(), + description: hashmap.remove("description").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + latitude: hashmap.remove("latitude").unwrap(), + load_sheddings: hashmap.remove("loadSheddings").unwrap(), + longitude: hashmap.remove("longitude").unwrap(), + minimum_origins: hashmap.remove("minimumOrigins").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + monitor: hashmap.remove("monitor").unwrap(), + name: hashmap.remove("name").unwrap(), + notification_email: hashmap.remove("notificationEmail").unwrap(), + origin_steerings: hashmap.remove("originSteerings").unwrap(), + origins: hashmap.remove("origins").unwrap(), } } } @@ -7363,21 +4791,12 @@ impl logpull_retention::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + logpull_retention::Res { - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + enabled: hashmap.remove("enabled").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -7500,112 +4919,25 @@ impl logpush_job::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + logpush_job::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - dataset: o - .fields - .iter() - .find(|o| o.name == "dataset") - .unwrap() - .output - .duplicate(), - destination_conf: o - .fields - .iter() - .find(|o| o.name == "destinationConf") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - filter: o - .fields - .iter() - .find(|o| o.name == "filter") - .unwrap() - .output - .duplicate(), - frequency: o - .fields - .iter() - .find(|o| o.name == "frequency") - .unwrap() - .output - .duplicate(), - kind: o - .fields - .iter() - .find(|o| o.name == "kind") - .unwrap() - .output - .duplicate(), - logpull_options: o - .fields - .iter() - .find(|o| o.name == "logpullOptions") - .unwrap() - .output - .duplicate(), - max_upload_bytes: o - .fields - .iter() - .find(|o| o.name == "maxUploadBytes") - .unwrap() - .output - .duplicate(), - max_upload_interval_seconds: o - .fields - .iter() - .find(|o| o.name == "maxUploadIntervalSeconds") - .unwrap() - .output - .duplicate(), - max_upload_records: o - .fields - .iter() - .find(|o| o.name == "maxUploadRecords") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - output_options: o - .fields - .iter() - .find(|o| o.name == "outputOptions") - .unwrap() - .output - .duplicate(), - ownership_challenge: o - .fields - .iter() - .find(|o| o.name == "ownershipChallenge") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + dataset: hashmap.remove("dataset").unwrap(), + destination_conf: hashmap.remove("destinationConf").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + filter: hashmap.remove("filter").unwrap(), + frequency: hashmap.remove("frequency").unwrap(), + kind: hashmap.remove("kind").unwrap(), + logpull_options: hashmap.remove("logpullOptions").unwrap(), + max_upload_bytes: hashmap.remove("maxUploadBytes").unwrap(), + max_upload_interval_seconds: hashmap.remove("maxUploadIntervalSeconds").unwrap(), + max_upload_records: hashmap.remove("maxUploadRecords").unwrap(), + name: hashmap.remove("name").unwrap(), + output_options: hashmap.remove("outputOptions").unwrap(), + ownership_challenge: hashmap.remove("ownershipChallenge").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -7650,35 +4982,14 @@ impl logpush_ownership_challenge::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + logpush_ownership_challenge::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - destination_conf: o - .fields - .iter() - .find(|o| o.name == "destinationConf") - .unwrap() - .output - .duplicate(), - ownership_challenge_filename: o - .fields - .iter() - .find(|o| o.name == "ownershipChallengeFilename") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + destination_conf: hashmap.remove("destinationConf").unwrap(), + ownership_challenge_filename: hashmap.remove("ownershipChallengeFilename").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -7724,35 +5035,14 @@ impl magic_firewall_ruleset::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + magic_firewall_ruleset::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - rules: o - .fields - .iter() - .find(|o| o.name == "rules") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + description: hashmap.remove("description").unwrap(), + name: hashmap.remove("name").unwrap(), + rules: hashmap.remove("rules").unwrap(), } } } @@ -7791,28 +5081,13 @@ impl managed_headers::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + managed_headers::Res { - managed_request_headers: o - .fields - .iter() - .find(|o| o.name == "managedRequestHeaders") - .unwrap() - .output - .duplicate(), - managed_response_headers: o - .fields - .iter() - .find(|o| o.name == "managedResponseHeaders") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + managed_request_headers: hashmap.remove("managedRequestHeaders").unwrap(), + managed_response_headers: hashmap.remove("managedResponseHeaders").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -7878,77 +5153,20 @@ impl mtls_certificate::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + mtls_certificate::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - ca: o - .fields - .iter() - .find(|o| o.name == "ca") - .unwrap() - .output - .duplicate(), - certificates: o - .fields - .iter() - .find(|o| o.name == "certificates") - .unwrap() - .output - .duplicate(), - expires_on: o - .fields - .iter() - .find(|o| o.name == "expiresOn") - .unwrap() - .output - .duplicate(), - issuer: o - .fields - .iter() - .find(|o| o.name == "issuer") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - private_key: o - .fields - .iter() - .find(|o| o.name == "privateKey") - .unwrap() - .output - .duplicate(), - serial_number: o - .fields - .iter() - .find(|o| o.name == "serialNumber") - .unwrap() - .output - .duplicate(), - signature: o - .fields - .iter() - .find(|o| o.name == "signature") - .unwrap() - .output - .duplicate(), - uploaded_on: o - .fields - .iter() - .find(|o| o.name == "uploadedOn") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + ca: hashmap.remove("ca").unwrap(), + certificates: hashmap.remove("certificates").unwrap(), + expires_on: hashmap.remove("expiresOn").unwrap(), + issuer: hashmap.remove("issuer").unwrap(), + name: hashmap.remove("name").unwrap(), + private_key: hashmap.remove("privateKey").unwrap(), + serial_number: hashmap.remove("serialNumber").unwrap(), + signature: hashmap.remove("signature").unwrap(), + uploaded_on: hashmap.remove("uploadedOn").unwrap(), } } } @@ -8035,84 +5253,21 @@ impl notification_policy::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + notification_policy::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - alert_type: o - .fields - .iter() - .find(|o| o.name == "alertType") - .unwrap() - .output - .duplicate(), - created: o - .fields - .iter() - .find(|o| o.name == "created") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - email_integrations: o - .fields - .iter() - .find(|o| o.name == "emailIntegrations") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - filters: o - .fields - .iter() - .find(|o| o.name == "filters") - .unwrap() - .output - .duplicate(), - modified: o - .fields - .iter() - .find(|o| o.name == "modified") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - pagerduty_integrations: o - .fields - .iter() - .find(|o| o.name == "pagerdutyIntegrations") - .unwrap() - .output - .duplicate(), - webhooks_integrations: o - .fields - .iter() - .find(|o| o.name == "webhooksIntegrations") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + alert_type: hashmap.remove("alertType").unwrap(), + created: hashmap.remove("created").unwrap(), + description: hashmap.remove("description").unwrap(), + email_integrations: hashmap.remove("emailIntegrations").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + filters: hashmap.remove("filters").unwrap(), + modified: hashmap.remove("modified").unwrap(), + name: hashmap.remove("name").unwrap(), + pagerduty_integrations: hashmap.remove("pagerdutyIntegrations").unwrap(), + webhooks_integrations: hashmap.remove("webhooksIntegrations").unwrap(), } } } @@ -8171,63 +5326,18 @@ impl notification_policy_webhooks::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + notification_policy_webhooks::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - created_at: o - .fields - .iter() - .find(|o| o.name == "createdAt") - .unwrap() - .output - .duplicate(), - last_failure: o - .fields - .iter() - .find(|o| o.name == "lastFailure") - .unwrap() - .output - .duplicate(), - last_success: o - .fields - .iter() - .find(|o| o.name == "lastSuccess") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - secret: o - .fields - .iter() - .find(|o| o.name == "secret") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - url: o - .fields - .iter() - .find(|o| o.name == "url") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + created_at: hashmap.remove("createdAt").unwrap(), + last_failure: hashmap.remove("lastFailure").unwrap(), + last_success: hashmap.remove("lastSuccess").unwrap(), + name: hashmap.remove("name").unwrap(), + secret: hashmap.remove("secret").unwrap(), + type_: hashmap.remove("type").unwrap(), + url: hashmap.remove("url").unwrap(), } } } @@ -8274,35 +5384,14 @@ impl observatory_scheduled_test::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + observatory_scheduled_test::Res { - frequency: o - .fields - .iter() - .find(|o| o.name == "frequency") - .unwrap() - .output - .duplicate(), - region: o - .fields - .iter() - .find(|o| o.name == "region") - .unwrap() - .output - .duplicate(), - url: o - .fields - .iter() - .find(|o| o.name == "url") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + frequency: hashmap.remove("frequency").unwrap(), + region: hashmap.remove("region").unwrap(), + url: hashmap.remove("url").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -8359,56 +5448,17 @@ impl origin_ca_certificate::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + origin_ca_certificate::Res { - certificate: o - .fields - .iter() - .find(|o| o.name == "certificate") - .unwrap() - .output - .duplicate(), - csr: o - .fields - .iter() - .find(|o| o.name == "csr") - .unwrap() - .output - .duplicate(), - expires_on: o - .fields - .iter() - .find(|o| o.name == "expiresOn") - .unwrap() - .output - .duplicate(), - hostnames: o - .fields - .iter() - .find(|o| o.name == "hostnames") - .unwrap() - .output - .duplicate(), - min_days_for_renewal: o - .fields - .iter() - .find(|o| o.name == "minDaysForRenewal") - .unwrap() - .output - .duplicate(), - request_type: o - .fields - .iter() - .find(|o| o.name == "requestType") - .unwrap() - .output - .duplicate(), - requested_validity: o - .fields - .iter() - .find(|o| o.name == "requestedValidity") - .unwrap() - .output - .duplicate(), + certificate: hashmap.remove("certificate").unwrap(), + csr: hashmap.remove("csr").unwrap(), + expires_on: hashmap.remove("expiresOn").unwrap(), + hostnames: hashmap.remove("hostnames").unwrap(), + min_days_for_renewal: hashmap.remove("minDaysForRenewal").unwrap(), + request_type: hashmap.remove("requestType").unwrap(), + requested_validity: hashmap.remove("requestedValidity").unwrap(), } } } @@ -8461,42 +5511,15 @@ impl page_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + page_rule::Res { - actions: o - .fields - .iter() - .find(|o| o.name == "actions") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - target: o - .fields - .iter() - .find(|o| o.name == "target") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + actions: hashmap.remove("actions").unwrap(), + priority: hashmap.remove("priority").unwrap(), + status: hashmap.remove("status").unwrap(), + target: hashmap.remove("target").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -8538,35 +5561,14 @@ impl pages_domain::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + pages_domain::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - domain: o - .fields - .iter() - .find(|o| o.name == "domain") - .unwrap() - .output - .duplicate(), - project_name: o - .fields - .iter() - .find(|o| o.name == "projectName") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + domain: hashmap.remove("domain").unwrap(), + project_name: hashmap.remove("projectName").unwrap(), + status: hashmap.remove("status").unwrap(), } } } @@ -8635,70 +5637,19 @@ impl pages_project::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + pages_project::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - build_config: o - .fields - .iter() - .find(|o| o.name == "buildConfig") - .unwrap() - .output - .duplicate(), - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - deployment_configs: o - .fields - .iter() - .find(|o| o.name == "deploymentConfigs") - .unwrap() - .output - .duplicate(), - domains: o - .fields - .iter() - .find(|o| o.name == "domains") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - production_branch: o - .fields - .iter() - .find(|o| o.name == "productionBranch") - .unwrap() - .output - .duplicate(), - source: o - .fields - .iter() - .find(|o| o.name == "source") - .unwrap() - .output - .duplicate(), - subdomain: o - .fields - .iter() - .find(|o| o.name == "subdomain") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + build_config: hashmap.remove("buildConfig").unwrap(), + created_on: hashmap.remove("createdOn").unwrap(), + deployment_configs: hashmap.remove("deploymentConfigs").unwrap(), + domains: hashmap.remove("domains").unwrap(), + name: hashmap.remove("name").unwrap(), + production_branch: hashmap.remove("productionBranch").unwrap(), + source: hashmap.remove("source").unwrap(), + subdomain: hashmap.remove("subdomain").unwrap(), } } } @@ -8730,21 +5681,12 @@ impl queue::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + queue::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -8783,28 +5725,13 @@ impl r2_bucket::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + r2_bucket::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - location: o - .fields - .iter() - .find(|o| o.name == "location") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + location: hashmap.remove("location").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -8885,70 +5812,19 @@ impl rate_limit::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + rate_limit::Res { - action: o - .fields - .iter() - .find(|o| o.name == "action") - .unwrap() - .output - .duplicate(), - bypass_url_patterns: o - .fields - .iter() - .find(|o| o.name == "bypassUrlPatterns") - .unwrap() - .output - .duplicate(), - correlate: o - .fields - .iter() - .find(|o| o.name == "correlate") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - disabled: o - .fields - .iter() - .find(|o| o.name == "disabled") - .unwrap() - .output - .duplicate(), - match_: o - .fields - .iter() - .find(|o| o.name == "match") - .unwrap() - .output - .duplicate(), - period: o - .fields - .iter() - .find(|o| o.name == "period") - .unwrap() - .output - .duplicate(), - threshold: o - .fields - .iter() - .find(|o| o.name == "threshold") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + action: hashmap.remove("action").unwrap(), + bypass_url_patterns: hashmap.remove("bypassUrlPatterns").unwrap(), + correlate: hashmap.remove("correlate").unwrap(), + description: hashmap.remove("description").unwrap(), + disabled: hashmap.remove("disabled").unwrap(), + match_: hashmap.remove("match").unwrap(), + period: hashmap.remove("period").unwrap(), + threshold: hashmap.remove("threshold").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -9056,119 +5932,26 @@ impl record::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + record::Res { - allow_overwrite: o - .fields - .iter() - .find(|o| o.name == "allowOverwrite") - .unwrap() - .output - .duplicate(), - comment: o - .fields - .iter() - .find(|o| o.name == "comment") - .unwrap() - .output - .duplicate(), - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - data: o - .fields - .iter() - .find(|o| o.name == "data") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - metadata: o - .fields - .iter() - .find(|o| o.name == "metadata") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - proxiable: o - .fields - .iter() - .find(|o| o.name == "proxiable") - .unwrap() - .output - .duplicate(), - proxied: o - .fields - .iter() - .find(|o| o.name == "proxied") - .unwrap() - .output - .duplicate(), - tags: o - .fields - .iter() - .find(|o| o.name == "tags") - .unwrap() - .output - .duplicate(), - ttl: o - .fields - .iter() - .find(|o| o.name == "ttl") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - value: o - .fields - .iter() - .find(|o| o.name == "value") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + allow_overwrite: hashmap.remove("allowOverwrite").unwrap(), + comment: hashmap.remove("comment").unwrap(), + created_on: hashmap.remove("createdOn").unwrap(), + data: hashmap.remove("data").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + metadata: hashmap.remove("metadata").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + name: hashmap.remove("name").unwrap(), + priority: hashmap.remove("priority").unwrap(), + proxiable: hashmap.remove("proxiable").unwrap(), + proxied: hashmap.remove("proxied").unwrap(), + tags: hashmap.remove("tags").unwrap(), + ttl: hashmap.remove("ttl").unwrap(), + type_: hashmap.remove("type").unwrap(), + value: hashmap.remove("value").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -9210,35 +5993,14 @@ impl regional_hostname::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + regional_hostname::Res { - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - region_key: o - .fields - .iter() - .find(|o| o.name == "regionKey") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + created_on: hashmap.remove("createdOn").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + region_key: hashmap.remove("regionKey").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -9270,21 +6032,12 @@ impl regional_tiered_cache::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + regional_tiered_cache::Res { - value: o - .fields - .iter() - .find(|o| o.name == "value") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + value: hashmap.remove("value").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -9351,56 +6104,17 @@ impl ruleset::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + ruleset::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - kind: o - .fields - .iter() - .find(|o| o.name == "kind") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - phase: o - .fields - .iter() - .find(|o| o.name == "phase") - .unwrap() - .output - .duplicate(), - rules: o - .fields - .iter() - .find(|o| o.name == "rules") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + description: hashmap.remove("description").unwrap(), + kind: hashmap.remove("kind").unwrap(), + name: hashmap.remove("name").unwrap(), + phase: hashmap.remove("phase").unwrap(), + rules: hashmap.remove("rules").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -9505,98 +6219,23 @@ impl spectrum_application::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + spectrum_application::Res { - argo_smart_routing: o - .fields - .iter() - .find(|o| o.name == "argoSmartRouting") - .unwrap() - .output - .duplicate(), - dns: o - .fields - .iter() - .find(|o| o.name == "dns") - .unwrap() - .output - .duplicate(), - edge_ips: o - .fields - .iter() - .find(|o| o.name == "edgeIps") - .unwrap() - .output - .duplicate(), - ip_firewall: o - .fields - .iter() - .find(|o| o.name == "ipFirewall") - .unwrap() - .output - .duplicate(), - origin_directs: o - .fields - .iter() - .find(|o| o.name == "originDirects") - .unwrap() - .output - .duplicate(), - origin_dns: o - .fields - .iter() - .find(|o| o.name == "originDns") - .unwrap() - .output - .duplicate(), - origin_port: o - .fields - .iter() - .find(|o| o.name == "originPort") - .unwrap() - .output - .duplicate(), - origin_port_range: o - .fields - .iter() - .find(|o| o.name == "originPortRange") - .unwrap() - .output - .duplicate(), - protocol: o - .fields - .iter() - .find(|o| o.name == "protocol") - .unwrap() - .output - .duplicate(), - proxy_protocol: o - .fields - .iter() - .find(|o| o.name == "proxyProtocol") - .unwrap() - .output - .duplicate(), - tls: o - .fields - .iter() - .find(|o| o.name == "tls") - .unwrap() - .output - .duplicate(), - traffic_type: o - .fields - .iter() - .find(|o| o.name == "trafficType") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + argo_smart_routing: hashmap.remove("argoSmartRouting").unwrap(), + dns: hashmap.remove("dns").unwrap(), + edge_ips: hashmap.remove("edgeIps").unwrap(), + ip_firewall: hashmap.remove("ipFirewall").unwrap(), + origin_directs: hashmap.remove("originDirects").unwrap(), + origin_dns: hashmap.remove("originDns").unwrap(), + origin_port: hashmap.remove("originPort").unwrap(), + origin_port_range: hashmap.remove("originPortRange").unwrap(), + protocol: hashmap.remove("protocol").unwrap(), + proxy_protocol: hashmap.remove("proxyProtocol").unwrap(), + tls: hashmap.remove("tls").unwrap(), + traffic_type: hashmap.remove("trafficType").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -9642,35 +6281,14 @@ impl split_tunnel::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + split_tunnel::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - mode: o - .fields - .iter() - .find(|o| o.name == "mode") - .unwrap() - .output - .duplicate(), - policy_id: o - .fields - .iter() - .find(|o| o.name == "policyId") - .unwrap() - .output - .duplicate(), - tunnels: o - .fields - .iter() - .find(|o| o.name == "tunnels") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + mode: hashmap.remove("mode").unwrap(), + policy_id: hashmap.remove("policyId").unwrap(), + tunnels: hashmap.remove("tunnels").unwrap(), } } } @@ -9744,63 +6362,18 @@ impl static_route::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + static_route::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - colo_names: o - .fields - .iter() - .find(|o| o.name == "coloNames") - .unwrap() - .output - .duplicate(), - colo_regions: o - .fields - .iter() - .find(|o| o.name == "coloRegions") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - nexthop: o - .fields - .iter() - .find(|o| o.name == "nexthop") - .unwrap() - .output - .duplicate(), - prefix: o - .fields - .iter() - .find(|o| o.name == "prefix") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - weight: o - .fields - .iter() - .find(|o| o.name == "weight") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + colo_names: hashmap.remove("coloNames").unwrap(), + colo_regions: hashmap.remove("coloRegions").unwrap(), + description: hashmap.remove("description").unwrap(), + nexthop: hashmap.remove("nexthop").unwrap(), + prefix: hashmap.remove("prefix").unwrap(), + priority: hashmap.remove("priority").unwrap(), + weight: hashmap.remove("weight").unwrap(), } } } @@ -9923,112 +6496,27 @@ impl teams_account::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + teams_account::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - activity_log_enabled: o - .fields - .iter() - .find(|o| o.name == "activityLogEnabled") - .unwrap() - .output - .duplicate(), - antivirus: o - .fields - .iter() - .find(|o| o.name == "antivirus") - .unwrap() - .output - .duplicate(), - block_page: o - .fields - .iter() - .find(|o| o.name == "blockPage") - .unwrap() - .output - .duplicate(), - body_scanning: o - .fields - .iter() - .find(|o| o.name == "bodyScanning") - .unwrap() - .output - .duplicate(), - extended_email_matching: o - .fields - .iter() - .find(|o| o.name == "extendedEmailMatching") - .unwrap() - .output - .duplicate(), - fips: o - .fields - .iter() - .find(|o| o.name == "fips") - .unwrap() - .output - .duplicate(), - logging: o - .fields - .iter() - .find(|o| o.name == "logging") - .unwrap() - .output - .duplicate(), - non_identity_browser_isolation_enabled: o - .fields - .iter() - .find(|o| o.name == "nonIdentityBrowserIsolationEnabled") - .unwrap() - .output - .duplicate(), - payload_log: o - .fields - .iter() - .find(|o| o.name == "payloadLog") - .unwrap() - .output - .duplicate(), - protocol_detection_enabled: o - .fields - .iter() - .find(|o| o.name == "protocolDetectionEnabled") - .unwrap() - .output - .duplicate(), - proxy: o - .fields - .iter() - .find(|o| o.name == "proxy") - .unwrap() - .output - .duplicate(), - ssh_session_log: o - .fields - .iter() - .find(|o| o.name == "sshSessionLog") - .unwrap() - .output - .duplicate(), - tls_decrypt_enabled: o - .fields - .iter() - .find(|o| o.name == "tlsDecryptEnabled") - .unwrap() - .output - .duplicate(), - url_browser_isolation_enabled: o - .fields - .iter() - .find(|o| o.name == "urlBrowserIsolationEnabled") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + activity_log_enabled: hashmap.remove("activityLogEnabled").unwrap(), + antivirus: hashmap.remove("antivirus").unwrap(), + block_page: hashmap.remove("blockPage").unwrap(), + body_scanning: hashmap.remove("bodyScanning").unwrap(), + extended_email_matching: hashmap.remove("extendedEmailMatching").unwrap(), + fips: hashmap.remove("fips").unwrap(), + logging: hashmap.remove("logging").unwrap(), + non_identity_browser_isolation_enabled: hashmap + .remove("nonIdentityBrowserIsolationEnabled") + .unwrap(), + payload_log: hashmap.remove("payloadLog").unwrap(), + protocol_detection_enabled: hashmap.remove("protocolDetectionEnabled").unwrap(), + proxy: hashmap.remove("proxy").unwrap(), + ssh_session_log: hashmap.remove("sshSessionLog").unwrap(), + tls_decrypt_enabled: hashmap.remove("tlsDecryptEnabled").unwrap(), + url_browser_isolation_enabled: hashmap.remove("urlBrowserIsolationEnabled").unwrap(), } } } @@ -10081,42 +6569,15 @@ impl teams_list::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + teams_list::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - items: o - .fields - .iter() - .find(|o| o.name == "items") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + description: hashmap.remove("description").unwrap(), + items: hashmap.remove("items").unwrap(), + name: hashmap.remove("name").unwrap(), + type_: hashmap.remove("type").unwrap(), } } } @@ -10175,70 +6636,19 @@ impl teams_location::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + teams_location::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - anonymized_logs_enabled: o - .fields - .iter() - .find(|o| o.name == "anonymizedLogsEnabled") - .unwrap() - .output - .duplicate(), - client_default: o - .fields - .iter() - .find(|o| o.name == "clientDefault") - .unwrap() - .output - .duplicate(), - doh_subdomain: o - .fields - .iter() - .find(|o| o.name == "dohSubdomain") - .unwrap() - .output - .duplicate(), - ip: o - .fields - .iter() - .find(|o| o.name == "ip") - .unwrap() - .output - .duplicate(), - ipv4_destination: o - .fields - .iter() - .find(|o| o.name == "ipv4Destination") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - networks: o - .fields - .iter() - .find(|o| o.name == "networks") - .unwrap() - .output - .duplicate(), - policy_ids: o - .fields - .iter() - .find(|o| o.name == "policyIds") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + anonymized_logs_enabled: hashmap.remove("anonymizedLogsEnabled").unwrap(), + client_default: hashmap.remove("clientDefault").unwrap(), + doh_subdomain: hashmap.remove("dohSubdomain").unwrap(), + ip: hashmap.remove("ip").unwrap(), + ipv4_destination: hashmap.remove("ipv4Destination").unwrap(), + name: hashmap.remove("name").unwrap(), + networks: hashmap.remove("networks").unwrap(), + policy_ids: hashmap.remove("policyIds").unwrap(), } } } @@ -10278,35 +6688,14 @@ impl teams_proxy_endpoint::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + teams_proxy_endpoint::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - ips: o - .fields - .iter() - .find(|o| o.name == "ips") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - subdomain: o - .fields - .iter() - .find(|o| o.name == "subdomain") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + ips: hashmap.remove("ips").unwrap(), + name: hashmap.remove("name").unwrap(), + subdomain: hashmap.remove("subdomain").unwrap(), } } } @@ -10404,91 +6793,22 @@ impl teams_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + teams_rule::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - action: o - .fields - .iter() - .find(|o| o.name == "action") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - device_posture: o - .fields - .iter() - .find(|o| o.name == "devicePosture") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - filters: o - .fields - .iter() - .find(|o| o.name == "filters") - .unwrap() - .output - .duplicate(), - identity: o - .fields - .iter() - .find(|o| o.name == "identity") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - precedence: o - .fields - .iter() - .find(|o| o.name == "precedence") - .unwrap() - .output - .duplicate(), - rule_settings: o - .fields - .iter() - .find(|o| o.name == "ruleSettings") - .unwrap() - .output - .duplicate(), - traffic: o - .fields - .iter() - .find(|o| o.name == "traffic") - .unwrap() - .output - .duplicate(), - version: o - .fields - .iter() - .find(|o| o.name == "version") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + action: hashmap.remove("action").unwrap(), + description: hashmap.remove("description").unwrap(), + device_posture: hashmap.remove("devicePosture").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + filters: hashmap.remove("filters").unwrap(), + identity: hashmap.remove("identity").unwrap(), + name: hashmap.remove("name").unwrap(), + precedence: hashmap.remove("precedence").unwrap(), + rule_settings: hashmap.remove("ruleSettings").unwrap(), + traffic: hashmap.remove("traffic").unwrap(), + version: hashmap.remove("version").unwrap(), } } } @@ -10520,21 +6840,12 @@ impl tiered_cache::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + tiered_cache::Res { - cache_type: o - .fields - .iter() - .find(|o| o.name == "cacheType") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + cache_type: hashmap.remove("cacheType").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -10573,28 +6884,13 @@ impl total_tls::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + total_tls::Res { - certificate_authority: o - .fields - .iter() - .find(|o| o.name == "certificateAuthority") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + certificate_authority: hashmap.remove("certificateAuthority").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -10646,49 +6942,16 @@ impl tunnel::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + tunnel::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - cname: o - .fields - .iter() - .find(|o| o.name == "cname") - .unwrap() - .output - .duplicate(), - config_src: o - .fields - .iter() - .find(|o| o.name == "configSrc") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - secret: o - .fields - .iter() - .find(|o| o.name == "secret") - .unwrap() - .output - .duplicate(), - tunnel_token: o - .fields - .iter() - .find(|o| o.name == "tunnelToken") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + cname: hashmap.remove("cname").unwrap(), + config_src: hashmap.remove("configSrc").unwrap(), + name: hashmap.remove("name").unwrap(), + secret: hashmap.remove("secret").unwrap(), + tunnel_token: hashmap.remove("tunnelToken").unwrap(), } } } @@ -10727,28 +6990,13 @@ impl tunnel_config::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + tunnel_config::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - config: o - .fields - .iter() - .find(|o| o.name == "config") - .unwrap() - .output - .duplicate(), - tunnel_id: o - .fields - .iter() - .find(|o| o.name == "tunnelId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + config: hashmap.remove("config").unwrap(), + tunnel_id: hashmap.remove("tunnelId").unwrap(), } } } @@ -10801,42 +7049,15 @@ impl tunnel_route::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + tunnel_route::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - comment: o - .fields - .iter() - .find(|o| o.name == "comment") - .unwrap() - .output - .duplicate(), - network: o - .fields - .iter() - .find(|o| o.name == "network") - .unwrap() - .output - .duplicate(), - tunnel_id: o - .fields - .iter() - .find(|o| o.name == "tunnelId") - .unwrap() - .output - .duplicate(), - virtual_network_id: o - .fields - .iter() - .find(|o| o.name == "virtualNetworkId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + comment: hashmap.remove("comment").unwrap(), + network: hashmap.remove("network").unwrap(), + tunnel_id: hashmap.remove("tunnelId").unwrap(), + virtual_network_id: hashmap.remove("virtualNetworkId").unwrap(), } } } @@ -10882,35 +7103,14 @@ impl tunnel_virtual_network::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + tunnel_virtual_network::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - comment: o - .fields - .iter() - .find(|o| o.name == "comment") - .unwrap() - .output - .duplicate(), - is_default_network: o - .fields - .iter() - .find(|o| o.name == "isDefaultNetwork") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + comment: hashmap.remove("comment").unwrap(), + is_default_network: hashmap.remove("isDefaultNetwork").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -10980,63 +7180,18 @@ impl turnstile_widget::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + turnstile_widget::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - bot_fight_mode: o - .fields - .iter() - .find(|o| o.name == "botFightMode") - .unwrap() - .output - .duplicate(), - domains: o - .fields - .iter() - .find(|o| o.name == "domains") - .unwrap() - .output - .duplicate(), - mode: o - .fields - .iter() - .find(|o| o.name == "mode") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - offlabel: o - .fields - .iter() - .find(|o| o.name == "offlabel") - .unwrap() - .output - .duplicate(), - region: o - .fields - .iter() - .find(|o| o.name == "region") - .unwrap() - .output - .duplicate(), - secret: o - .fields - .iter() - .find(|o| o.name == "secret") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + bot_fight_mode: hashmap.remove("botFightMode").unwrap(), + domains: hashmap.remove("domains").unwrap(), + mode: hashmap.remove("mode").unwrap(), + name: hashmap.remove("name").unwrap(), + offlabel: hashmap.remove("offlabel").unwrap(), + region: hashmap.remove("region").unwrap(), + secret: hashmap.remove("secret").unwrap(), } } } @@ -11078,28 +7233,13 @@ impl url_normalization_settings::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + url_normalization_settings::Res { - scope: o - .fields - .iter() - .find(|o| o.name == "scope") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + scope: hashmap.remove("scope").unwrap(), + type_: hashmap.remove("type").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11152,42 +7292,15 @@ impl user_agent_blocking_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + user_agent_blocking_rule::Res { - configuration: o - .fields - .iter() - .find(|o| o.name == "configuration") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - mode: o - .fields - .iter() - .find(|o| o.name == "mode") - .unwrap() - .output - .duplicate(), - paused: o - .fields - .iter() - .find(|o| o.name == "paused") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + configuration: hashmap.remove("configuration").unwrap(), + description: hashmap.remove("description").unwrap(), + mode: hashmap.remove("mode").unwrap(), + paused: hashmap.remove("paused").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11331,133 +7444,28 @@ impl waiting_room::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + waiting_room::Res { - additional_routes: o - .fields - .iter() - .find(|o| o.name == "additionalRoutes") - .unwrap() - .output - .duplicate(), - cookie_suffix: o - .fields - .iter() - .find(|o| o.name == "cookieSuffix") - .unwrap() - .output - .duplicate(), - custom_page_html: o - .fields - .iter() - .find(|o| o.name == "customPageHtml") - .unwrap() - .output - .duplicate(), - default_template_language: o - .fields - .iter() - .find(|o| o.name == "defaultTemplateLanguage") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - disable_session_renewal: o - .fields - .iter() - .find(|o| o.name == "disableSessionRenewal") - .unwrap() - .output - .duplicate(), - host: o - .fields - .iter() - .find(|o| o.name == "host") - .unwrap() - .output - .duplicate(), - json_response_enabled: o - .fields - .iter() - .find(|o| o.name == "jsonResponseEnabled") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - new_users_per_minute: o - .fields - .iter() - .find(|o| o.name == "newUsersPerMinute") - .unwrap() - .output - .duplicate(), - path: o - .fields - .iter() - .find(|o| o.name == "path") - .unwrap() - .output - .duplicate(), - queue_all: o - .fields - .iter() - .find(|o| o.name == "queueAll") - .unwrap() - .output - .duplicate(), - queueing_method: o - .fields - .iter() - .find(|o| o.name == "queueingMethod") - .unwrap() - .output - .duplicate(), - queueing_status_code: o - .fields - .iter() - .find(|o| o.name == "queueingStatusCode") - .unwrap() - .output - .duplicate(), - session_duration: o - .fields - .iter() - .find(|o| o.name == "sessionDuration") - .unwrap() - .output - .duplicate(), - suspended: o - .fields - .iter() - .find(|o| o.name == "suspended") - .unwrap() - .output - .duplicate(), - total_active_users: o - .fields - .iter() - .find(|o| o.name == "totalActiveUsers") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + additional_routes: hashmap.remove("additionalRoutes").unwrap(), + cookie_suffix: hashmap.remove("cookieSuffix").unwrap(), + custom_page_html: hashmap.remove("customPageHtml").unwrap(), + default_template_language: hashmap.remove("defaultTemplateLanguage").unwrap(), + description: hashmap.remove("description").unwrap(), + disable_session_renewal: hashmap.remove("disableSessionRenewal").unwrap(), + host: hashmap.remove("host").unwrap(), + json_response_enabled: hashmap.remove("jsonResponseEnabled").unwrap(), + name: hashmap.remove("name").unwrap(), + new_users_per_minute: hashmap.remove("newUsersPerMinute").unwrap(), + path: hashmap.remove("path").unwrap(), + queue_all: hashmap.remove("queueAll").unwrap(), + queueing_method: hashmap.remove("queueingMethod").unwrap(), + queueing_status_code: hashmap.remove("queueingStatusCode").unwrap(), + session_duration: hashmap.remove("sessionDuration").unwrap(), + suspended: hashmap.remove("suspended").unwrap(), + total_active_users: hashmap.remove("totalActiveUsers").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11586,126 +7594,27 @@ impl waiting_room_event::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + waiting_room_event::Res { - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - custom_page_html: o - .fields - .iter() - .find(|o| o.name == "customPageHtml") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - disable_session_renewal: o - .fields - .iter() - .find(|o| o.name == "disableSessionRenewal") - .unwrap() - .output - .duplicate(), - event_end_time: o - .fields - .iter() - .find(|o| o.name == "eventEndTime") - .unwrap() - .output - .duplicate(), - event_start_time: o - .fields - .iter() - .find(|o| o.name == "eventStartTime") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - new_users_per_minute: o - .fields - .iter() - .find(|o| o.name == "newUsersPerMinute") - .unwrap() - .output - .duplicate(), - prequeue_start_time: o - .fields - .iter() - .find(|o| o.name == "prequeueStartTime") - .unwrap() - .output - .duplicate(), - queueing_method: o - .fields - .iter() - .find(|o| o.name == "queueingMethod") - .unwrap() - .output - .duplicate(), - session_duration: o - .fields - .iter() - .find(|o| o.name == "sessionDuration") - .unwrap() - .output - .duplicate(), - shuffle_at_event_start: o - .fields - .iter() - .find(|o| o.name == "shuffleAtEventStart") - .unwrap() - .output - .duplicate(), - suspended: o - .fields - .iter() - .find(|o| o.name == "suspended") - .unwrap() - .output - .duplicate(), - total_active_users: o - .fields - .iter() - .find(|o| o.name == "totalActiveUsers") - .unwrap() - .output - .duplicate(), - waiting_room_id: o - .fields - .iter() - .find(|o| o.name == "waitingRoomId") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + created_on: hashmap.remove("createdOn").unwrap(), + custom_page_html: hashmap.remove("customPageHtml").unwrap(), + description: hashmap.remove("description").unwrap(), + disable_session_renewal: hashmap.remove("disableSessionRenewal").unwrap(), + event_end_time: hashmap.remove("eventEndTime").unwrap(), + event_start_time: hashmap.remove("eventStartTime").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + name: hashmap.remove("name").unwrap(), + new_users_per_minute: hashmap.remove("newUsersPerMinute").unwrap(), + prequeue_start_time: hashmap.remove("prequeueStartTime").unwrap(), + queueing_method: hashmap.remove("queueingMethod").unwrap(), + session_duration: hashmap.remove("sessionDuration").unwrap(), + shuffle_at_event_start: hashmap.remove("shuffleAtEventStart").unwrap(), + suspended: hashmap.remove("suspended").unwrap(), + total_active_users: hashmap.remove("totalActiveUsers").unwrap(), + waiting_room_id: hashmap.remove("waitingRoomId").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11744,28 +7653,13 @@ impl waiting_room_rules::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + waiting_room_rules::Res { - rules: o - .fields - .iter() - .find(|o| o.name == "rules") - .unwrap() - .output - .duplicate(), - waiting_room_id: o - .fields - .iter() - .find(|o| o.name == "waitingRoomId") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + rules: hashmap.remove("rules").unwrap(), + waiting_room_id: hashmap.remove("waitingRoomId").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11797,21 +7691,12 @@ impl waiting_room_settings::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + waiting_room_settings::Res { - search_engine_crawler_bypass: o - .fields - .iter() - .find(|o| o.name == "searchEngineCrawlerBypass") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + search_engine_crawler_bypass: hashmap.remove("searchEngineCrawlerBypass").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11873,63 +7758,18 @@ impl web3_hostname::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + web3_hostname::Res { - created_on: o - .fields - .iter() - .find(|o| o.name == "createdOn") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - dnslink: o - .fields - .iter() - .find(|o| o.name == "dnslink") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - target: o - .fields - .iter() - .find(|o| o.name == "target") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + created_on: hashmap.remove("createdOn").unwrap(), + description: hashmap.remove("description").unwrap(), + dnslink: hashmap.remove("dnslink").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + name: hashmap.remove("name").unwrap(), + status: hashmap.remove("status").unwrap(), + target: hashmap.remove("target").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -11989,49 +7829,16 @@ impl web_analytics_rule::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + web_analytics_rule::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - host: o - .fields - .iter() - .find(|o| o.name == "host") - .unwrap() - .output - .duplicate(), - inclusive: o - .fields - .iter() - .find(|o| o.name == "inclusive") - .unwrap() - .output - .duplicate(), - is_paused: o - .fields - .iter() - .find(|o| o.name == "isPaused") - .unwrap() - .output - .duplicate(), - paths: o - .fields - .iter() - .find(|o| o.name == "paths") - .unwrap() - .output - .duplicate(), - ruleset_id: o - .fields - .iter() - .find(|o| o.name == "rulesetId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + host: hashmap.remove("host").unwrap(), + inclusive: hashmap.remove("inclusive").unwrap(), + is_paused: hashmap.remove("isPaused").unwrap(), + paths: hashmap.remove("paths").unwrap(), + ruleset_id: hashmap.remove("rulesetId").unwrap(), } } } @@ -12089,63 +7896,18 @@ impl web_analytics_site::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + web_analytics_site::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - auto_install: o - .fields - .iter() - .find(|o| o.name == "autoInstall") - .unwrap() - .output - .duplicate(), - host: o - .fields - .iter() - .find(|o| o.name == "host") - .unwrap() - .output - .duplicate(), - ruleset_id: o - .fields - .iter() - .find(|o| o.name == "rulesetId") - .unwrap() - .output - .duplicate(), - site_tag: o - .fields - .iter() - .find(|o| o.name == "siteTag") - .unwrap() - .output - .duplicate(), - site_token: o - .fields - .iter() - .find(|o| o.name == "siteToken") - .unwrap() - .output - .duplicate(), - snippet: o - .fields - .iter() - .find(|o| o.name == "snippet") - .unwrap() - .output - .duplicate(), - zone_tag: o - .fields - .iter() - .find(|o| o.name == "zoneTag") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + auto_install: hashmap.remove("autoInstall").unwrap(), + host: hashmap.remove("host").unwrap(), + ruleset_id: hashmap.remove("rulesetId").unwrap(), + site_tag: hashmap.remove("siteTag").unwrap(), + site_token: hashmap.remove("siteToken").unwrap(), + snippet: hashmap.remove("snippet").unwrap(), + zone_tag: hashmap.remove("zoneTag").unwrap(), } } } @@ -12184,28 +7946,13 @@ impl worker_cron_trigger::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + worker_cron_trigger::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - schedules: o - .fields - .iter() - .find(|o| o.name == "schedules") - .unwrap() - .output - .duplicate(), - script_name: o - .fields - .iter() - .find(|o| o.name == "scriptName") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + schedules: hashmap.remove("schedules").unwrap(), + script_name: hashmap.remove("scriptName").unwrap(), } } } @@ -12258,42 +8005,15 @@ impl worker_domain::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + worker_domain::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - environment: o - .fields - .iter() - .find(|o| o.name == "environment") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - service: o - .fields - .iter() - .find(|o| o.name == "service") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + environment: hashmap.remove("environment").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + service: hashmap.remove("service").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -12332,28 +8052,13 @@ impl worker_route::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + worker_route::Res { - pattern: o - .fields - .iter() - .find(|o| o.name == "pattern") - .unwrap() - .output - .duplicate(), - script_name: o - .fields - .iter() - .find(|o| o.name == "scriptName") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + pattern: hashmap.remove("pattern").unwrap(), + script_name: hashmap.remove("scriptName").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -12504,140 +8209,29 @@ impl worker_script::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + worker_script::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - analytics_engine_bindings: o - .fields - .iter() - .find(|o| o.name == "analyticsEngineBindings") - .unwrap() - .output - .duplicate(), - compatibility_date: o - .fields - .iter() - .find(|o| o.name == "compatibilityDate") - .unwrap() - .output - .duplicate(), - compatibility_flags: o - .fields - .iter() - .find(|o| o.name == "compatibilityFlags") - .unwrap() - .output - .duplicate(), - content: o - .fields - .iter() - .find(|o| o.name == "content") - .unwrap() - .output - .duplicate(), - d1_database_bindings: o - .fields - .iter() - .find(|o| o.name == "d1DatabaseBindings") - .unwrap() - .output - .duplicate(), - dispatch_namespace: o - .fields - .iter() - .find(|o| o.name == "dispatchNamespace") - .unwrap() - .output - .duplicate(), - kv_namespace_bindings: o - .fields - .iter() - .find(|o| o.name == "kvNamespaceBindings") - .unwrap() - .output - .duplicate(), - logpush: o - .fields - .iter() - .find(|o| o.name == "logpush") - .unwrap() - .output - .duplicate(), - module: o - .fields - .iter() - .find(|o| o.name == "module") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - placements: o - .fields - .iter() - .find(|o| o.name == "placements") - .unwrap() - .output - .duplicate(), - plain_text_bindings: o - .fields - .iter() - .find(|o| o.name == "plainTextBindings") - .unwrap() - .output - .duplicate(), - queue_bindings: o - .fields - .iter() - .find(|o| o.name == "queueBindings") - .unwrap() - .output - .duplicate(), - r2_bucket_bindings: o - .fields - .iter() - .find(|o| o.name == "r2BucketBindings") - .unwrap() - .output - .duplicate(), - secret_text_bindings: o - .fields - .iter() - .find(|o| o.name == "secretTextBindings") - .unwrap() - .output - .duplicate(), - service_bindings: o - .fields - .iter() - .find(|o| o.name == "serviceBindings") - .unwrap() - .output - .duplicate(), - tags: o - .fields - .iter() - .find(|o| o.name == "tags") - .unwrap() - .output - .duplicate(), - webassembly_bindings: o - .fields - .iter() - .find(|o| o.name == "webassemblyBindings") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + analytics_engine_bindings: hashmap.remove("analyticsEngineBindings").unwrap(), + compatibility_date: hashmap.remove("compatibilityDate").unwrap(), + compatibility_flags: hashmap.remove("compatibilityFlags").unwrap(), + content: hashmap.remove("content").unwrap(), + d1_database_bindings: hashmap.remove("d1DatabaseBindings").unwrap(), + dispatch_namespace: hashmap.remove("dispatchNamespace").unwrap(), + kv_namespace_bindings: hashmap.remove("kvNamespaceBindings").unwrap(), + logpush: hashmap.remove("logpush").unwrap(), + module: hashmap.remove("module").unwrap(), + name: hashmap.remove("name").unwrap(), + placements: hashmap.remove("placements").unwrap(), + plain_text_bindings: hashmap.remove("plainTextBindings").unwrap(), + queue_bindings: hashmap.remove("queueBindings").unwrap(), + r2_bucket_bindings: hashmap.remove("r2BucketBindings").unwrap(), + secret_text_bindings: hashmap.remove("secretTextBindings").unwrap(), + service_bindings: hashmap.remove("serviceBindings").unwrap(), + tags: hashmap.remove("tags").unwrap(), + webassembly_bindings: hashmap.remove("webassemblyBindings").unwrap(), } } } @@ -12683,35 +8277,14 @@ impl worker_secret::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + worker_secret::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - script_name: o - .fields - .iter() - .find(|o| o.name == "scriptName") - .unwrap() - .output - .duplicate(), - secret_text: o - .fields - .iter() - .find(|o| o.name == "secretText") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + name: hashmap.remove("name").unwrap(), + script_name: hashmap.remove("scriptName").unwrap(), + secret_text: hashmap.remove("secretText").unwrap(), } } } @@ -12747,21 +8320,12 @@ impl workers_for_platforms_namespace::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + workers_for_platforms_namespace::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -12805,35 +8369,14 @@ impl workers_kv::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + workers_kv::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - key: o - .fields - .iter() - .find(|o| o.name == "key") - .unwrap() - .output - .duplicate(), - namespace_id: o - .fields - .iter() - .find(|o| o.name == "namespaceId") - .unwrap() - .output - .duplicate(), - value: o - .fields - .iter() - .find(|o| o.name == "value") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + key: hashmap.remove("key").unwrap(), + namespace_id: hashmap.remove("namespaceId").unwrap(), + value: hashmap.remove("value").unwrap(), } } } @@ -12865,21 +8408,12 @@ impl workers_kv_namespace::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + workers_kv_namespace::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - title: o - .fields - .iter() - .find(|o| o.name == "title") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + title: hashmap.remove("title").unwrap(), } } } @@ -12954,84 +8488,21 @@ impl zone::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone::Res { - account_id: o - .fields - .iter() - .find(|o| o.name == "accountId") - .unwrap() - .output - .duplicate(), - jump_start: o - .fields - .iter() - .find(|o| o.name == "jumpStart") - .unwrap() - .output - .duplicate(), - meta: o - .fields - .iter() - .find(|o| o.name == "meta") - .unwrap() - .output - .duplicate(), - name_servers: o - .fields - .iter() - .find(|o| o.name == "nameServers") - .unwrap() - .output - .duplicate(), - paused: o - .fields - .iter() - .find(|o| o.name == "paused") - .unwrap() - .output - .duplicate(), - plan: o - .fields - .iter() - .find(|o| o.name == "plan") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - type_: o - .fields - .iter() - .find(|o| o.name == "type") - .unwrap() - .output - .duplicate(), - vanity_name_servers: o - .fields - .iter() - .find(|o| o.name == "vanityNameServers") - .unwrap() - .output - .duplicate(), - verification_key: o - .fields - .iter() - .find(|o| o.name == "verificationKey") - .unwrap() - .output - .duplicate(), - zone: o - .fields - .iter() - .find(|o| o.name == "zone") - .unwrap() - .output - .duplicate(), + account_id: hashmap.remove("accountId").unwrap(), + jump_start: hashmap.remove("jumpStart").unwrap(), + meta: hashmap.remove("meta").unwrap(), + name_servers: hashmap.remove("nameServers").unwrap(), + paused: hashmap.remove("paused").unwrap(), + plan: hashmap.remove("plan").unwrap(), + status: hashmap.remove("status").unwrap(), + type_: hashmap.remove("type").unwrap(), + vanity_name_servers: hashmap.remove("vanityNameServers").unwrap(), + verification_key: hashmap.remove("verificationKey").unwrap(), + zone: hashmap.remove("zone").unwrap(), } } } @@ -13063,21 +8534,12 @@ impl zone_cache_reserve::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone_cache_reserve::Res { - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + enabled: hashmap.remove("enabled").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -13179,91 +8641,22 @@ impl zone_cache_variants::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone_cache_variants::Res { - avifs: o - .fields - .iter() - .find(|o| o.name == "avifs") - .unwrap() - .output - .duplicate(), - bmps: o - .fields - .iter() - .find(|o| o.name == "bmps") - .unwrap() - .output - .duplicate(), - gifs: o - .fields - .iter() - .find(|o| o.name == "gifs") - .unwrap() - .output - .duplicate(), - jp2s: o - .fields - .iter() - .find(|o| o.name == "jp2s") - .unwrap() - .output - .duplicate(), - jpegs: o - .fields - .iter() - .find(|o| o.name == "jpegs") - .unwrap() - .output - .duplicate(), - jpg2s: o - .fields - .iter() - .find(|o| o.name == "jpg2s") - .unwrap() - .output - .duplicate(), - jpgs: o - .fields - .iter() - .find(|o| o.name == "jpgs") - .unwrap() - .output - .duplicate(), - pngs: o - .fields - .iter() - .find(|o| o.name == "pngs") - .unwrap() - .output - .duplicate(), - tiffs: o - .fields - .iter() - .find(|o| o.name == "tiffs") - .unwrap() - .output - .duplicate(), - tifs: o - .fields - .iter() - .find(|o| o.name == "tifs") - .unwrap() - .output - .duplicate(), - webps: o - .fields - .iter() - .find(|o| o.name == "webps") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + avifs: hashmap.remove("avifs").unwrap(), + bmps: hashmap.remove("bmps").unwrap(), + gifs: hashmap.remove("gifs").unwrap(), + jp2s: hashmap.remove("jp2s").unwrap(), + jpegs: hashmap.remove("jpegs").unwrap(), + jpg2s: hashmap.remove("jpg2s").unwrap(), + jpgs: hashmap.remove("jpgs").unwrap(), + pngs: hashmap.remove("pngs").unwrap(), + tiffs: hashmap.remove("tiffs").unwrap(), + tifs: hashmap.remove("tifs").unwrap(), + webps: hashmap.remove("webps").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -13323,91 +8716,22 @@ impl zone_dnssec::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone_dnssec::Res { - algorithm: o - .fields - .iter() - .find(|o| o.name == "algorithm") - .unwrap() - .output - .duplicate(), - digest: o - .fields - .iter() - .find(|o| o.name == "digest") - .unwrap() - .output - .duplicate(), - digest_algorithm: o - .fields - .iter() - .find(|o| o.name == "digestAlgorithm") - .unwrap() - .output - .duplicate(), - digest_type: o - .fields - .iter() - .find(|o| o.name == "digestType") - .unwrap() - .output - .duplicate(), - ds: o - .fields - .iter() - .find(|o| o.name == "ds") - .unwrap() - .output - .duplicate(), - flags: o - .fields - .iter() - .find(|o| o.name == "flags") - .unwrap() - .output - .duplicate(), - key_tag: o - .fields - .iter() - .find(|o| o.name == "keyTag") - .unwrap() - .output - .duplicate(), - key_type: o - .fields - .iter() - .find(|o| o.name == "keyType") - .unwrap() - .output - .duplicate(), - modified_on: o - .fields - .iter() - .find(|o| o.name == "modifiedOn") - .unwrap() - .output - .duplicate(), - public_key: o - .fields - .iter() - .find(|o| o.name == "publicKey") - .unwrap() - .output - .duplicate(), - status: o - .fields - .iter() - .find(|o| o.name == "status") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + algorithm: hashmap.remove("algorithm").unwrap(), + digest: hashmap.remove("digest").unwrap(), + digest_algorithm: hashmap.remove("digestAlgorithm").unwrap(), + digest_type: hashmap.remove("digestType").unwrap(), + ds: hashmap.remove("ds").unwrap(), + flags: hashmap.remove("flags").unwrap(), + key_tag: hashmap.remove("keyTag").unwrap(), + key_type: hashmap.remove("keyType").unwrap(), + modified_on: hashmap.remove("modifiedOn").unwrap(), + public_key: hashmap.remove("publicKey").unwrap(), + status: hashmap.remove("status").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -13453,35 +8777,14 @@ impl zone_hold::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone_hold::Res { - hold: o - .fields - .iter() - .find(|o| o.name == "hold") - .unwrap() - .output - .duplicate(), - hold_after: o - .fields - .iter() - .find(|o| o.name == "holdAfter") - .unwrap() - .output - .duplicate(), - include_subdomains: o - .fields - .iter() - .find(|o| o.name == "includeSubdomains") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + hold: hashmap.remove("hold").unwrap(), + hold_after: hashmap.remove("holdAfter").unwrap(), + include_subdomains: hashmap.remove("includeSubdomains").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -13541,49 +8844,16 @@ impl zone_lockdown::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone_lockdown::Res { - configurations: o - .fields - .iter() - .find(|o| o.name == "configurations") - .unwrap() - .output - .duplicate(), - description: o - .fields - .iter() - .find(|o| o.name == "description") - .unwrap() - .output - .duplicate(), - paused: o - .fields - .iter() - .find(|o| o.name == "paused") - .unwrap() - .output - .duplicate(), - priority: o - .fields - .iter() - .find(|o| o.name == "priority") - .unwrap() - .output - .duplicate(), - urls: o - .fields - .iter() - .find(|o| o.name == "urls") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), + configurations: hashmap.remove("configurations").unwrap(), + description: hashmap.remove("description").unwrap(), + paused: hashmap.remove("paused").unwrap(), + priority: hashmap.remove("priority").unwrap(), + urls: hashmap.remove("urls").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), } } } @@ -13630,56 +8900,17 @@ impl zone_settings_override::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + zone_settings_override::Res { - initial_settings: o - .fields - .iter() - .find(|o| o.name == "initialSettings") - .unwrap() - .output - .duplicate(), - initial_settings_read_at: o - .fields - .iter() - .find(|o| o.name == "initialSettingsReadAt") - .unwrap() - .output - .duplicate(), - readonly_settings: o - .fields - .iter() - .find(|o| o.name == "readonlySettings") - .unwrap() - .output - .duplicate(), - settings: o - .fields - .iter() - .find(|o| o.name == "settings") - .unwrap() - .output - .duplicate(), - zone_id: o - .fields - .iter() - .find(|o| o.name == "zoneId") - .unwrap() - .output - .duplicate(), - zone_status: o - .fields - .iter() - .find(|o| o.name == "zoneStatus") - .unwrap() - .output - .duplicate(), - zone_type: o - .fields - .iter() - .find(|o| o.name == "zoneType") - .unwrap() - .output - .duplicate(), + initial_settings: hashmap.remove("initialSettings").unwrap(), + initial_settings_read_at: hashmap.remove("initialSettingsReadAt").unwrap(), + readonly_settings: hashmap.remove("readonlySettings").unwrap(), + settings: hashmap.remove("settings").unwrap(), + zone_id: hashmap.remove("zoneId").unwrap(), + zone_status: hashmap.remove("zoneStatus").unwrap(), + zone_type: hashmap.remove("zoneType").unwrap(), } } } diff --git a/providers/pulumi_wasm_provider_cloudflare/wit/deps/pulumi-wasm.wit b/providers/pulumi_wasm_provider_cloudflare/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/providers/pulumi_wasm_provider_cloudflare/wit/deps/pulumi-wasm.wit +++ b/providers/pulumi_wasm_provider_cloudflare/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/Cargo.toml b/providers/pulumi_wasm_provider_cloudflare_rust/Cargo.toml index 14e709b57..1492528be 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/Cargo.toml +++ b/providers/pulumi_wasm_provider_cloudflare_rust/Cargo.toml @@ -7,7 +7,4 @@ edition = "2021" wit-bindgen.workspace = true pulumi_wasm_rust.workspace = true serde.workspace = true -automod.workspace = true - -[package.metadata.pulumi] -related_crate = "pulumi_wasm_cloudflare_provider" +pulumi_wasm_wit = { workspace = true, features = ["client"] } \ No newline at end of file diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/lib.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/lib.rs index 93210abac..48b53c1b8 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/lib.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/lib.rs @@ -1,5 +1,5 @@ -use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutput; use pulumi_wasm_rust::Output; +use pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface::Output as WitOutput; pub mod resource; pub mod types; @@ -8,22 +8,11 @@ mod bindings { // the name of the world in the `*.wit` input file world: "cloudflare-pulumi-client", with: { - "component:pulumi-wasm/output-interface@0.0.0-DEV": generate + "component:pulumi-wasm/output-interface@0.0.0-DEV": pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface } }); } -fn random_to_domain_mapper(random: WitOutput) -> Output { - unsafe { - let inner = random.take_handle(); - Output::::new_from_handle(inner) - } -} - -fn clone(output: Output) -> WitOutput { - unsafe { - let inner = output.get_inner(); - let cloned = inner.duplicate(); - WitOutput::from_handle(cloned.take_handle()) - } +fn into_domain(output: WitOutput) -> Output { + unsafe { Output::::new_from_handle(output) } } diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource.rs index fc9455acd..7d2911cf4 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/resource.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/resource.rs @@ -75,131 +75,69 @@ pub mod access_application { let result = crate::bindings::pulumi::cloudflare::access_application::invoke( name, &crate::bindings::pulumi::cloudflare::access_application::Args { - account_id: &crate::clone::>(args.account_id), - allow_authenticate_via_warp: &crate::clone::>( - args.allow_authenticate_via_warp, - ), - allowed_idps: &crate::clone::>>(args.allowed_idps), - app_launcher_logo_url: &crate::clone::>(args.app_launcher_logo_url), - app_launcher_visible: &crate::clone::>(args.app_launcher_visible), - auto_redirect_to_identity: &crate::clone::>( - args.auto_redirect_to_identity, - ), - bg_color: &crate::clone::>(args.bg_color), - cors_headers: &crate::clone::>>( - args.cors_headers, - ), - custom_deny_message: &crate::clone::>(args.custom_deny_message), - custom_deny_url: &crate::clone::>(args.custom_deny_url), - custom_non_identity_deny_url: &crate::clone::>( - args.custom_non_identity_deny_url, - ), - custom_pages: &crate::clone::>>(args.custom_pages), - domain: &crate::clone::>(args.domain), - enable_binding_cookie: &crate::clone::>(args.enable_binding_cookie), - footer_links: &crate::clone::>>( - args.footer_links, - ), - header_bg_color: &crate::clone::>(args.header_bg_color), - http_only_cookie_attribute: &crate::clone::>( - args.http_only_cookie_attribute, - ), - landing_page_design: &crate::clone::< - Option, - >(args.landing_page_design), - logo_url: &crate::clone::>(args.logo_url), - name: &crate::clone::>(args.name), - saas_app: &crate::clone::>( - args.saas_app, - ), - same_site_cookie_attribute: &crate::clone::>( - args.same_site_cookie_attribute, - ), - self_hosted_domains: &crate::clone::>>(args.self_hosted_domains), - service_auth401_redirect: &crate::clone::>( - args.service_auth401_redirect, - ), - session_duration: &crate::clone::>(args.session_duration), - skip_interstitial: &crate::clone::>(args.skip_interstitial), - tags: &crate::clone::>>(args.tags), - type_: &crate::clone::>(args.type_), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + allow_authenticate_via_warp: args.allow_authenticate_via_warp.get_inner(), + allowed_idps: args.allowed_idps.get_inner(), + app_launcher_logo_url: args.app_launcher_logo_url.get_inner(), + app_launcher_visible: args.app_launcher_visible.get_inner(), + auto_redirect_to_identity: args.auto_redirect_to_identity.get_inner(), + bg_color: args.bg_color.get_inner(), + cors_headers: args.cors_headers.get_inner(), + custom_deny_message: args.custom_deny_message.get_inner(), + custom_deny_url: args.custom_deny_url.get_inner(), + custom_non_identity_deny_url: args.custom_non_identity_deny_url.get_inner(), + custom_pages: args.custom_pages.get_inner(), + domain: args.domain.get_inner(), + enable_binding_cookie: args.enable_binding_cookie.get_inner(), + footer_links: args.footer_links.get_inner(), + header_bg_color: args.header_bg_color.get_inner(), + http_only_cookie_attribute: args.http_only_cookie_attribute.get_inner(), + landing_page_design: args.landing_page_design.get_inner(), + logo_url: args.logo_url.get_inner(), + name: args.name.get_inner(), + saas_app: args.saas_app.get_inner(), + same_site_cookie_attribute: args.same_site_cookie_attribute.get_inner(), + self_hosted_domains: args.self_hosted_domains.get_inner(), + service_auth401_redirect: args.service_auth401_redirect.get_inner(), + session_duration: args.session_duration.get_inner(), + skip_interstitial: args.skip_interstitial.get_inner(), + tags: args.tags.get_inner(), + type_: args.type_.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessApplicationResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - allow_authenticate_via_warp: crate::random_to_domain_mapper::>( - result.allow_authenticate_via_warp, - ), - allowed_idps: crate::random_to_domain_mapper::>>( - result.allowed_idps, - ), - app_launcher_logo_url: crate::random_to_domain_mapper::>( - result.app_launcher_logo_url, - ), - app_launcher_visible: crate::random_to_domain_mapper::>( - result.app_launcher_visible, - ), - aud: crate::random_to_domain_mapper::(result.aud), - auto_redirect_to_identity: crate::random_to_domain_mapper::>( - result.auto_redirect_to_identity, - ), - bg_color: crate::random_to_domain_mapper::>(result.bg_color), - cors_headers: crate::random_to_domain_mapper::< - Option>, - >(result.cors_headers), - custom_deny_message: crate::random_to_domain_mapper::>( - result.custom_deny_message, - ), - custom_deny_url: crate::random_to_domain_mapper::>( - result.custom_deny_url, - ), - custom_non_identity_deny_url: crate::random_to_domain_mapper::>( - result.custom_non_identity_deny_url, - ), - custom_pages: crate::random_to_domain_mapper::>>( - result.custom_pages, - ), - domain: crate::random_to_domain_mapper::(result.domain), - enable_binding_cookie: crate::random_to_domain_mapper::>( - result.enable_binding_cookie, - ), - footer_links: crate::random_to_domain_mapper::< - Option>, - >(result.footer_links), - header_bg_color: crate::random_to_domain_mapper::>( - result.header_bg_color, - ), - http_only_cookie_attribute: crate::random_to_domain_mapper::>( - result.http_only_cookie_attribute, - ), - landing_page_design: crate::random_to_domain_mapper::< - Option, - >(result.landing_page_design), - logo_url: crate::random_to_domain_mapper::>(result.logo_url), - name: crate::random_to_domain_mapper::(result.name), - saas_app: crate::random_to_domain_mapper::< - Option, - >(result.saas_app), - same_site_cookie_attribute: crate::random_to_domain_mapper::>( - result.same_site_cookie_attribute, - ), - self_hosted_domains: crate::random_to_domain_mapper::>>( - result.self_hosted_domains, - ), - service_auth401_redirect: crate::random_to_domain_mapper::>( - result.service_auth401_redirect, - ), - session_duration: crate::random_to_domain_mapper::>( - result.session_duration, - ), - skip_interstitial: crate::random_to_domain_mapper::>( - result.skip_interstitial, - ), - tags: crate::random_to_domain_mapper::>>(result.tags), - type_: crate::random_to_domain_mapper::>(result.type_), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + account_id: crate::into_domain(result.account_id), + allow_authenticate_via_warp: crate::into_domain(result.allow_authenticate_via_warp), + allowed_idps: crate::into_domain(result.allowed_idps), + app_launcher_logo_url: crate::into_domain(result.app_launcher_logo_url), + app_launcher_visible: crate::into_domain(result.app_launcher_visible), + aud: crate::into_domain(result.aud), + auto_redirect_to_identity: crate::into_domain(result.auto_redirect_to_identity), + bg_color: crate::into_domain(result.bg_color), + cors_headers: crate::into_domain(result.cors_headers), + custom_deny_message: crate::into_domain(result.custom_deny_message), + custom_deny_url: crate::into_domain(result.custom_deny_url), + custom_non_identity_deny_url: crate::into_domain(result.custom_non_identity_deny_url), + custom_pages: crate::into_domain(result.custom_pages), + domain: crate::into_domain(result.domain), + enable_binding_cookie: crate::into_domain(result.enable_binding_cookie), + footer_links: crate::into_domain(result.footer_links), + header_bg_color: crate::into_domain(result.header_bg_color), + http_only_cookie_attribute: crate::into_domain(result.http_only_cookie_attribute), + landing_page_design: crate::into_domain(result.landing_page_design), + logo_url: crate::into_domain(result.logo_url), + name: crate::into_domain(result.name), + saas_app: crate::into_domain(result.saas_app), + same_site_cookie_attribute: crate::into_domain(result.same_site_cookie_attribute), + self_hosted_domains: crate::into_domain(result.self_hosted_domains), + service_auth401_redirect: crate::into_domain(result.service_auth401_redirect), + session_duration: crate::into_domain(result.session_duration), + skip_interstitial: crate::into_domain(result.skip_interstitial), + tags: crate::into_domain(result.tags), + type_: crate::into_domain(result.type_), + zone_id: crate::into_domain(result.zone_id), } } } @@ -227,18 +165,18 @@ pub mod access_ca_certificate { let result = crate::bindings::pulumi::cloudflare::access_ca_certificate::invoke( name, &crate::bindings::pulumi::cloudflare::access_ca_certificate::Args { - account_id: &crate::clone::>(args.account_id), - application_id: &crate::clone::(args.application_id), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + application_id: args.application_id.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessCaCertificateResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - application_id: crate::random_to_domain_mapper::(result.application_id), - aud: crate::random_to_domain_mapper::(result.aud), - public_key: crate::random_to_domain_mapper::(result.public_key), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + account_id: crate::into_domain(result.account_id), + application_id: crate::into_domain(result.application_id), + aud: crate::into_domain(result.aud), + public_key: crate::into_domain(result.public_key), + zone_id: crate::into_domain(result.zone_id), } } } @@ -267,22 +205,22 @@ pub mod access_custom_page { let result = crate::bindings::pulumi::cloudflare::access_custom_page::invoke( name, &crate::bindings::pulumi::cloudflare::access_custom_page::Args { - account_id: &crate::clone::>(args.account_id), - app_count: &crate::clone::>(args.app_count), - custom_html: &crate::clone::>(args.custom_html), - name: &crate::clone::(args.name), - type_: &crate::clone::(args.type_), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + app_count: args.app_count.get_inner(), + custom_html: args.custom_html.get_inner(), + name: args.name.get_inner(), + type_: args.type_.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessCustomPageResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - app_count: crate::random_to_domain_mapper::>(result.app_count), - custom_html: crate::random_to_domain_mapper::>(result.custom_html), - name: crate::random_to_domain_mapper::(result.name), - type_: crate::random_to_domain_mapper::(result.type_), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + app_count: crate::into_domain(result.app_count), + custom_html: crate::into_domain(result.custom_html), + name: crate::into_domain(result.name), + type_: crate::into_domain(result.type_), + zone_id: crate::into_domain(result.zone_id), } } } @@ -311,32 +249,22 @@ pub mod access_group { let result = crate::bindings::pulumi::cloudflare::access_group::invoke( name, &crate::bindings::pulumi::cloudflare::access_group::Args { - account_id: &crate::clone::>(args.account_id), - excludes: &crate::clone::>>( - args.excludes, - ), - includes: &crate::clone::>(args.includes), - name: &crate::clone::(args.name), - requires: &crate::clone::>>( - args.requires, - ), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + excludes: args.excludes.get_inner(), + includes: args.includes.get_inner(), + name: args.name.get_inner(), + requires: args.requires.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessGroupResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - excludes: crate::random_to_domain_mapper::>>( - result.excludes, - ), - includes: crate::random_to_domain_mapper::>( - result.includes, - ), - name: crate::random_to_domain_mapper::(result.name), - requires: crate::random_to_domain_mapper::>>( - result.requires, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + account_id: crate::into_domain(result.account_id), + excludes: crate::into_domain(result.excludes), + includes: crate::into_domain(result.includes), + name: crate::into_domain(result.name), + requires: crate::into_domain(result.requires), + zone_id: crate::into_domain(result.zone_id), } } } @@ -371,30 +299,22 @@ pub mod access_identity_provider { let result = crate::bindings::pulumi::cloudflare::access_identity_provider::invoke( name, &crate::bindings::pulumi::cloudflare::access_identity_provider::Args { - account_id: &crate::clone::>(args.account_id), - configs: &crate::clone::>>( - args.configs, - ), - name: &crate::clone::(args.name), - scim_configs: &crate::clone::< - Option>, - >(args.scim_configs), - type_: &crate::clone::(args.type_), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + configs: args.configs.get_inner(), + name: args.name.get_inner(), + scim_configs: args.scim_configs.get_inner(), + type_: args.type_.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessIdentityProviderResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - configs: crate::random_to_domain_mapper::< - Vec, - >(result.configs), - name: crate::random_to_domain_mapper::(result.name), - scim_configs: crate::random_to_domain_mapper::< - Vec, - >(result.scim_configs), - type_: crate::random_to_domain_mapper::(result.type_), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + configs: crate::into_domain(result.configs), + name: crate::into_domain(result.name), + scim_configs: crate::into_domain(result.scim_configs), + type_: crate::into_domain(result.type_), + zone_id: crate::into_domain(result.zone_id), } } } @@ -418,18 +338,14 @@ pub mod access_keys_configuration { let result = crate::bindings::pulumi::cloudflare::access_keys_configuration::invoke( name, &crate::bindings::pulumi::cloudflare::access_keys_configuration::Args { - account_id: &crate::clone::(args.account_id), - key_rotation_interval_days: &crate::clone::>( - args.key_rotation_interval_days, - ), + account_id: args.account_id.get_inner(), + key_rotation_interval_days: args.key_rotation_interval_days.get_inner(), }, ); AccessKeysConfigurationResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - key_rotation_interval_days: crate::random_to_domain_mapper::( - result.key_rotation_interval_days, - ), + account_id: crate::into_domain(result.account_id), + key_rotation_interval_days: crate::into_domain(result.key_rotation_interval_days), } } } @@ -460,25 +376,21 @@ pub mod access_mutual_tls_certificate { let result = crate::bindings::pulumi::cloudflare::access_mutual_tls_certificate::invoke( name, &crate::bindings::pulumi::cloudflare::access_mutual_tls_certificate::Args { - account_id: &crate::clone::>(args.account_id), - associated_hostnames: &crate::clone::>>( - args.associated_hostnames, - ), - certificate: &crate::clone::>(args.certificate), - name: &crate::clone::(args.name), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + associated_hostnames: args.associated_hostnames.get_inner(), + certificate: args.certificate.get_inner(), + name: args.name.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessMutualTlsCertificateResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - associated_hostnames: crate::random_to_domain_mapper::>>( - result.associated_hostnames, - ), - certificate: crate::random_to_domain_mapper::>(result.certificate), - fingerprint: crate::random_to_domain_mapper::(result.fingerprint), - name: crate::random_to_domain_mapper::(result.name), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + account_id: crate::into_domain(result.account_id), + associated_hostnames: crate::into_domain(result.associated_hostnames), + certificate: crate::into_domain(result.certificate), + fingerprint: crate::into_domain(result.fingerprint), + name: crate::into_domain(result.name), + zone_id: crate::into_domain(result.zone_id), } } } @@ -509,20 +421,16 @@ pub mod access_mutual_tls_hostname_settings { crate::bindings::pulumi::cloudflare::access_mutual_tls_hostname_settings::invoke( name, &crate::bindings::pulumi::cloudflare::access_mutual_tls_hostname_settings::Args { - account_id: &crate::clone::>(args.account_id), - settings: &crate::clone::< - Option>, - >(args.settings), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + settings: args.settings.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessMutualTlsHostnameSettingsResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - settings: crate::random_to_domain_mapper::< - Option>, - >(result.settings), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + settings: crate::into_domain(result.settings), + zone_id: crate::into_domain(result.zone_id), } } } @@ -572,66 +480,40 @@ pub mod access_organization { let result = crate::bindings::pulumi::cloudflare::access_organization::invoke( name, &crate::bindings::pulumi::cloudflare::access_organization::Args { - account_id: &crate::clone::>(args.account_id), - allow_authenticate_via_warp: &crate::clone::>( - args.allow_authenticate_via_warp, - ), - auth_domain: &crate::clone::(args.auth_domain), - auto_redirect_to_identity: &crate::clone::>( - args.auto_redirect_to_identity, - ), - custom_pages: &crate::clone::< - Option>, - >(args.custom_pages), - is_ui_read_only: &crate::clone::>(args.is_ui_read_only), - login_designs: &crate::clone::< - Option>, - >(args.login_designs), - name: &crate::clone::>(args.name), - session_duration: &crate::clone::>(args.session_duration), - ui_read_only_toggle_reason: &crate::clone::>( - args.ui_read_only_toggle_reason, - ), - user_seat_expiration_inactive_time: &crate::clone::>( - args.user_seat_expiration_inactive_time, - ), - warp_auth_session_duration: &crate::clone::>( - args.warp_auth_session_duration, - ), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + allow_authenticate_via_warp: args.allow_authenticate_via_warp.get_inner(), + auth_domain: args.auth_domain.get_inner(), + auto_redirect_to_identity: args.auto_redirect_to_identity.get_inner(), + custom_pages: args.custom_pages.get_inner(), + is_ui_read_only: args.is_ui_read_only.get_inner(), + login_designs: args.login_designs.get_inner(), + name: args.name.get_inner(), + session_duration: args.session_duration.get_inner(), + ui_read_only_toggle_reason: args.ui_read_only_toggle_reason.get_inner(), + user_seat_expiration_inactive_time: args + .user_seat_expiration_inactive_time + .get_inner(), + warp_auth_session_duration: args.warp_auth_session_duration.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessOrganizationResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - allow_authenticate_via_warp: crate::random_to_domain_mapper::>( - result.allow_authenticate_via_warp, - ), - auth_domain: crate::random_to_domain_mapper::(result.auth_domain), - auto_redirect_to_identity: crate::random_to_domain_mapper::>( - result.auto_redirect_to_identity, - ), - custom_pages: crate::random_to_domain_mapper::< - Option>, - >(result.custom_pages), - is_ui_read_only: crate::random_to_domain_mapper::>(result.is_ui_read_only), - login_designs: crate::random_to_domain_mapper::< - Option>, - >(result.login_designs), - name: crate::random_to_domain_mapper::>(result.name), - session_duration: crate::random_to_domain_mapper::>( - result.session_duration, - ), - ui_read_only_toggle_reason: crate::random_to_domain_mapper::>( - result.ui_read_only_toggle_reason, - ), - user_seat_expiration_inactive_time: crate::random_to_domain_mapper::>( + account_id: crate::into_domain(result.account_id), + allow_authenticate_via_warp: crate::into_domain(result.allow_authenticate_via_warp), + auth_domain: crate::into_domain(result.auth_domain), + auto_redirect_to_identity: crate::into_domain(result.auto_redirect_to_identity), + custom_pages: crate::into_domain(result.custom_pages), + is_ui_read_only: crate::into_domain(result.is_ui_read_only), + login_designs: crate::into_domain(result.login_designs), + name: crate::into_domain(result.name), + session_duration: crate::into_domain(result.session_duration), + ui_read_only_toggle_reason: crate::into_domain(result.ui_read_only_toggle_reason), + user_seat_expiration_inactive_time: crate::into_domain( result.user_seat_expiration_inactive_time, ), - warp_auth_session_duration: crate::random_to_domain_mapper::>( - result.warp_auth_session_duration, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + warp_auth_session_duration: crate::into_domain(result.warp_auth_session_duration), + zone_id: crate::into_domain(result.zone_id), } } } @@ -680,68 +562,42 @@ pub mod access_policy { let result = crate::bindings::pulumi::cloudflare::access_policy::invoke( name, &crate::bindings::pulumi::cloudflare::access_policy::Args { - account_id: &crate::clone::>(args.account_id), - application_id: &crate::clone::(args.application_id), - approval_groups: &crate::clone::< - Option>, - >(args.approval_groups), - approval_required: &crate::clone::>(args.approval_required), - decision: &crate::clone::(args.decision), - excludes: &crate::clone::>>( - args.excludes, - ), - includes: &crate::clone::>(args.includes), - isolation_required: &crate::clone::>(args.isolation_required), - name: &crate::clone::(args.name), - precedence: &crate::clone::(args.precedence), - purpose_justification_prompt: &crate::clone::>( - args.purpose_justification_prompt, - ), - purpose_justification_required: &crate::clone::>( - args.purpose_justification_required, - ), - requires: &crate::clone::>>( - args.requires, - ), - session_duration: &crate::clone::>(args.session_duration), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + application_id: args.application_id.get_inner(), + approval_groups: args.approval_groups.get_inner(), + approval_required: args.approval_required.get_inner(), + decision: args.decision.get_inner(), + excludes: args.excludes.get_inner(), + includes: args.includes.get_inner(), + isolation_required: args.isolation_required.get_inner(), + name: args.name.get_inner(), + precedence: args.precedence.get_inner(), + purpose_justification_prompt: args.purpose_justification_prompt.get_inner(), + purpose_justification_required: args.purpose_justification_required.get_inner(), + requires: args.requires.get_inner(), + session_duration: args.session_duration.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessPolicyResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - application_id: crate::random_to_domain_mapper::(result.application_id), - approval_groups: crate::random_to_domain_mapper::< - Option>, - >(result.approval_groups), - approval_required: crate::random_to_domain_mapper::>( - result.approval_required, - ), - decision: crate::random_to_domain_mapper::(result.decision), - excludes: crate::random_to_domain_mapper::< - Option>, - >(result.excludes), - includes: crate::random_to_domain_mapper::>( - result.includes, - ), - isolation_required: crate::random_to_domain_mapper::>( - result.isolation_required, - ), - name: crate::random_to_domain_mapper::(result.name), - precedence: crate::random_to_domain_mapper::(result.precedence), - purpose_justification_prompt: crate::random_to_domain_mapper::>( - result.purpose_justification_prompt, - ), - purpose_justification_required: crate::random_to_domain_mapper::>( + account_id: crate::into_domain(result.account_id), + application_id: crate::into_domain(result.application_id), + approval_groups: crate::into_domain(result.approval_groups), + approval_required: crate::into_domain(result.approval_required), + decision: crate::into_domain(result.decision), + excludes: crate::into_domain(result.excludes), + includes: crate::into_domain(result.includes), + isolation_required: crate::into_domain(result.isolation_required), + name: crate::into_domain(result.name), + precedence: crate::into_domain(result.precedence), + purpose_justification_prompt: crate::into_domain(result.purpose_justification_prompt), + purpose_justification_required: crate::into_domain( result.purpose_justification_required, ), - requires: crate::random_to_domain_mapper::< - Option>, - >(result.requires), - session_duration: crate::random_to_domain_mapper::>( - result.session_duration, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + requires: crate::into_domain(result.requires), + session_duration: crate::into_domain(result.session_duration), + zone_id: crate::into_domain(result.zone_id), } } } @@ -768,24 +624,20 @@ pub mod access_rule { let result = crate::bindings::pulumi::cloudflare::access_rule::invoke( name, &crate::bindings::pulumi::cloudflare::access_rule::Args { - account_id: &crate::clone::>(args.account_id), - configuration: &crate::clone::( - args.configuration, - ), - mode: &crate::clone::(args.mode), - notes: &crate::clone::>(args.notes), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + configuration: args.configuration.get_inner(), + mode: args.mode.get_inner(), + notes: args.notes.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessRuleResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - configuration: crate::random_to_domain_mapper::( - result.configuration, - ), - mode: crate::random_to_domain_mapper::(result.mode), - notes: crate::random_to_domain_mapper::>(result.notes), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + account_id: crate::into_domain(result.account_id), + configuration: crate::into_domain(result.configuration), + mode: crate::into_domain(result.mode), + notes: crate::into_domain(result.notes), + zone_id: crate::into_domain(result.zone_id), } } } @@ -818,25 +670,23 @@ pub mod access_service_token { let result = crate::bindings::pulumi::cloudflare::access_service_token::invoke( name, &crate::bindings::pulumi::cloudflare::access_service_token::Args { - account_id: &crate::clone::>(args.account_id), - duration: &crate::clone::>(args.duration), - min_days_for_renewal: &crate::clone::>(args.min_days_for_renewal), - name: &crate::clone::(args.name), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + duration: args.duration.get_inner(), + min_days_for_renewal: args.min_days_for_renewal.get_inner(), + name: args.name.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessServiceTokenResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - client_id: crate::random_to_domain_mapper::(result.client_id), - client_secret: crate::random_to_domain_mapper::(result.client_secret), - duration: crate::random_to_domain_mapper::(result.duration), - expires_at: crate::random_to_domain_mapper::(result.expires_at), - min_days_for_renewal: crate::random_to_domain_mapper::>( - result.min_days_for_renewal, - ), - name: crate::random_to_domain_mapper::(result.name), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + client_id: crate::into_domain(result.client_id), + client_secret: crate::into_domain(result.client_secret), + duration: crate::into_domain(result.duration), + expires_at: crate::into_domain(result.expires_at), + min_days_for_renewal: crate::into_domain(result.min_days_for_renewal), + name: crate::into_domain(result.name), + zone_id: crate::into_domain(result.zone_id), } } } @@ -861,18 +711,18 @@ pub mod access_tag { let result = crate::bindings::pulumi::cloudflare::access_tag::invoke( name, &crate::bindings::pulumi::cloudflare::access_tag::Args { - account_id: &crate::clone::>(args.account_id), - app_count: &crate::clone::>(args.app_count), - name: &crate::clone::(args.name), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + app_count: args.app_count.get_inner(), + name: args.name.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AccessTagResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - app_count: crate::random_to_domain_mapper::(result.app_count), - name: crate::random_to_domain_mapper::(result.name), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + app_count: crate::into_domain(result.app_count), + name: crate::into_domain(result.name), + zone_id: crate::into_domain(result.zone_id), } } } @@ -895,18 +745,16 @@ pub mod account { let result = crate::bindings::pulumi::cloudflare::account::invoke( name, &crate::bindings::pulumi::cloudflare::account::Args { - enforce_twofactor: &crate::clone::>(args.enforce_twofactor), - name: &crate::clone::(args.name), - type_: &crate::clone::>(args.type_), + enforce_twofactor: args.enforce_twofactor.get_inner(), + name: args.name.get_inner(), + type_: args.type_.get_inner(), }, ); AccountResult { - enforce_twofactor: crate::random_to_domain_mapper::>( - result.enforce_twofactor, - ), - name: crate::random_to_domain_mapper::(result.name), - type_: crate::random_to_domain_mapper::>(result.type_), + enforce_twofactor: crate::into_domain(result.enforce_twofactor), + name: crate::into_domain(result.name), + type_: crate::into_domain(result.type_), } } } @@ -931,18 +779,18 @@ pub mod account_member { let result = crate::bindings::pulumi::cloudflare::account_member::invoke( name, &crate::bindings::pulumi::cloudflare::account_member::Args { - account_id: &crate::clone::(args.account_id), - email_address: &crate::clone::(args.email_address), - role_ids: &crate::clone::>(args.role_ids), - status: &crate::clone::>(args.status), + account_id: args.account_id.get_inner(), + email_address: args.email_address.get_inner(), + role_ids: args.role_ids.get_inner(), + status: args.status.get_inner(), }, ); AccountMemberResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - email_address: crate::random_to_domain_mapper::(result.email_address), - role_ids: crate::random_to_domain_mapper::>(result.role_ids), - status: crate::random_to_domain_mapper::(result.status), + account_id: crate::into_domain(result.account_id), + email_address: crate::into_domain(result.email_address), + role_ids: crate::into_domain(result.role_ids), + status: crate::into_domain(result.status), } } } @@ -973,30 +821,24 @@ pub mod address_map { let result = crate::bindings::pulumi::cloudflare::address_map::invoke( name, &crate::bindings::pulumi::cloudflare::address_map::Args { - account_id: &crate::clone::(args.account_id), - default_sni: &crate::clone::>(args.default_sni), - description: &crate::clone::>(args.description), - enabled: &crate::clone::(args.enabled), - ips: &crate::clone::>>(args.ips), - memberships: &crate::clone::>>( - args.memberships, - ), + account_id: args.account_id.get_inner(), + default_sni: args.default_sni.get_inner(), + description: args.description.get_inner(), + enabled: args.enabled.get_inner(), + ips: args.ips.get_inner(), + memberships: args.memberships.get_inner(), }, ); AddressMapResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - can_delete: crate::random_to_domain_mapper::(result.can_delete), - can_modify_ips: crate::random_to_domain_mapper::(result.can_modify_ips), - default_sni: crate::random_to_domain_mapper::>(result.default_sni), - description: crate::random_to_domain_mapper::>(result.description), - enabled: crate::random_to_domain_mapper::(result.enabled), - ips: crate::random_to_domain_mapper::>>( - result.ips, - ), - memberships: crate::random_to_domain_mapper::< - Option>, - >(result.memberships), + account_id: crate::into_domain(result.account_id), + can_delete: crate::into_domain(result.can_delete), + can_modify_ips: crate::into_domain(result.can_modify_ips), + default_sni: crate::into_domain(result.default_sni), + description: crate::into_domain(result.description), + enabled: crate::into_domain(result.enabled), + ips: crate::into_domain(result.ips), + memberships: crate::into_domain(result.memberships), } } } @@ -1019,18 +861,14 @@ pub mod api_shield { let result = crate::bindings::pulumi::cloudflare::api_shield::invoke( name, &crate::bindings::pulumi::cloudflare::api_shield::Args { - auth_id_characteristics: &crate::clone::< - Option>, - >(args.auth_id_characteristics), - zone_id: &crate::clone::(args.zone_id), + auth_id_characteristics: args.auth_id_characteristics.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ApiShieldResult { - auth_id_characteristics: crate::random_to_domain_mapper::< - Option>, - >(result.auth_id_characteristics), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + auth_id_characteristics: crate::into_domain(result.auth_id_characteristics), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1058,18 +896,18 @@ pub mod api_shield_operation { let result = crate::bindings::pulumi::cloudflare::api_shield_operation::invoke( name, &crate::bindings::pulumi::cloudflare::api_shield_operation::Args { - endpoint: &crate::clone::(args.endpoint), - host: &crate::clone::(args.host), - method: &crate::clone::(args.method), - zone_id: &crate::clone::(args.zone_id), + endpoint: args.endpoint.get_inner(), + host: args.host.get_inner(), + method: args.method.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ApiShieldOperationResult { - endpoint: crate::random_to_domain_mapper::(result.endpoint), - host: crate::random_to_domain_mapper::(result.host), - method: crate::random_to_domain_mapper::(result.method), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + endpoint: crate::into_domain(result.endpoint), + host: crate::into_domain(result.host), + method: crate::into_domain(result.method), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1093,17 +931,15 @@ pub mod api_shield_operation_schema_validation_settings { args: ApiShieldOperationSchemaValidationSettingsArgs, ) -> ApiShieldOperationSchemaValidationSettingsResult { let result = crate::bindings::pulumi::cloudflare::api_shield_operation_schema_validation_settings::invoke(name, &crate::bindings::pulumi::cloudflare::api_shield_operation_schema_validation_settings::Args { - mitigation_action: &crate::clone::>(args.mitigation_action), - operation_id: &crate::clone::(args.operation_id), - zone_id: &crate::clone::(args.zone_id), + mitigation_action: args.mitigation_action.get_inner(), + operation_id: args.operation_id.get_inner(), + zone_id: args.zone_id.get_inner(), }); ApiShieldOperationSchemaValidationSettingsResult { - mitigation_action: crate::random_to_domain_mapper::>( - result.mitigation_action, - ), - operation_id: crate::random_to_domain_mapper::(result.operation_id), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + mitigation_action: crate::into_domain(result.mitigation_action), + operation_id: crate::into_domain(result.operation_id), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1130,22 +966,20 @@ pub mod api_shield_schema { let result = crate::bindings::pulumi::cloudflare::api_shield_schema::invoke( name, &crate::bindings::pulumi::cloudflare::api_shield_schema::Args { - kind: &crate::clone::>(args.kind), - name: &crate::clone::(args.name), - source: &crate::clone::(args.source), - validation_enabled: &crate::clone::>(args.validation_enabled), - zone_id: &crate::clone::(args.zone_id), + kind: args.kind.get_inner(), + name: args.name.get_inner(), + source: args.source.get_inner(), + validation_enabled: args.validation_enabled.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ApiShieldSchemaResult { - kind: crate::random_to_domain_mapper::>(result.kind), - name: crate::random_to_domain_mapper::(result.name), - source: crate::random_to_domain_mapper::(result.source), - validation_enabled: crate::random_to_domain_mapper::>( - result.validation_enabled, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + kind: crate::into_domain(result.kind), + name: crate::into_domain(result.name), + source: crate::into_domain(result.source), + validation_enabled: crate::into_domain(result.validation_enabled), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1172,24 +1006,24 @@ pub mod api_shield_schema_validation_settings { crate::bindings::pulumi::cloudflare::api_shield_schema_validation_settings::invoke( name, &crate::bindings::pulumi::cloudflare::api_shield_schema_validation_settings::Args { - validation_default_mitigation_action: &crate::clone::( - args.validation_default_mitigation_action, - ), - validation_override_mitigation_action: &crate::clone::>( - args.validation_override_mitigation_action, - ), - zone_id: &crate::clone::(args.zone_id), + validation_default_mitigation_action: args + .validation_default_mitigation_action + .get_inner(), + validation_override_mitigation_action: args + .validation_override_mitigation_action + .get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ApiShieldSchemaValidationSettingsResult { - validation_default_mitigation_action: crate::random_to_domain_mapper::( + validation_default_mitigation_action: crate::into_domain( result.validation_default_mitigation_action, ), - validation_override_mitigation_action: crate::random_to_domain_mapper::>( + validation_override_mitigation_action: crate::into_domain( result.validation_override_mitigation_action, ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1220,28 +1054,24 @@ pub mod api_token { let result = crate::bindings::pulumi::cloudflare::api_token::invoke( name, &crate::bindings::pulumi::cloudflare::api_token::Args { - condition: &crate::clone::>(args.condition), - expires_on: &crate::clone::>(args.expires_on), - name: &crate::clone::(args.name), - not_before: &crate::clone::>(args.not_before), - policies: &crate::clone::>(args.policies), + condition: args.condition.get_inner(), + expires_on: args.expires_on.get_inner(), + name: args.name.get_inner(), + not_before: args.not_before.get_inner(), + policies: args.policies.get_inner(), }, ); ApiTokenResult { - condition: crate::random_to_domain_mapper::>( - result.condition, - ), - expires_on: crate::random_to_domain_mapper::>(result.expires_on), - issued_on: crate::random_to_domain_mapper::(result.issued_on), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - name: crate::random_to_domain_mapper::(result.name), - not_before: crate::random_to_domain_mapper::>(result.not_before), - policies: crate::random_to_domain_mapper::>( - result.policies, - ), - status: crate::random_to_domain_mapper::(result.status), - value: crate::random_to_domain_mapper::(result.value), + condition: crate::into_domain(result.condition), + expires_on: crate::into_domain(result.expires_on), + issued_on: crate::into_domain(result.issued_on), + modified_on: crate::into_domain(result.modified_on), + name: crate::into_domain(result.name), + not_before: crate::into_domain(result.not_before), + policies: crate::into_domain(result.policies), + status: crate::into_domain(result.status), + value: crate::into_domain(result.value), } } } @@ -1264,16 +1094,16 @@ pub mod argo { let result = crate::bindings::pulumi::cloudflare::argo::invoke( name, &crate::bindings::pulumi::cloudflare::argo::Args { - smart_routing: &crate::clone::>(args.smart_routing), - tiered_caching: &crate::clone::>(args.tiered_caching), - zone_id: &crate::clone::(args.zone_id), + smart_routing: args.smart_routing.get_inner(), + tiered_caching: args.tiered_caching.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ArgoResult { - smart_routing: crate::random_to_domain_mapper::>(result.smart_routing), - tiered_caching: crate::random_to_domain_mapper::>(result.tiered_caching), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + smart_routing: crate::into_domain(result.smart_routing), + tiered_caching: crate::into_domain(result.tiered_caching), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1301,22 +1131,22 @@ pub mod authenticated_origin_pulls { let result = crate::bindings::pulumi::cloudflare::authenticated_origin_pulls::invoke( name, &crate::bindings::pulumi::cloudflare::authenticated_origin_pulls::Args { - authenticated_origin_pulls_certificate: &crate::clone::>( - args.authenticated_origin_pulls_certificate, - ), - enabled: &crate::clone::(args.enabled), - hostname: &crate::clone::>(args.hostname), - zone_id: &crate::clone::(args.zone_id), + authenticated_origin_pulls_certificate: args + .authenticated_origin_pulls_certificate + .get_inner(), + enabled: args.enabled.get_inner(), + hostname: args.hostname.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); AuthenticatedOriginPullsResult { - authenticated_origin_pulls_certificate: crate::random_to_domain_mapper::>( + authenticated_origin_pulls_certificate: crate::into_domain( result.authenticated_origin_pulls_certificate, ), - enabled: crate::random_to_domain_mapper::(result.enabled), - hostname: crate::random_to_domain_mapper::>(result.hostname), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + enabled: crate::into_domain(result.enabled), + hostname: crate::into_domain(result.hostname), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1348,23 +1178,23 @@ pub mod authenticated_origin_pulls_certificate { args: AuthenticatedOriginPullsCertificateArgs, ) -> AuthenticatedOriginPullsCertificateResult { let result = crate::bindings::pulumi::cloudflare::authenticated_origin_pulls_certificate::invoke(name, &crate::bindings::pulumi::cloudflare::authenticated_origin_pulls_certificate::Args { - certificate: &crate::clone::(args.certificate), - private_key: &crate::clone::(args.private_key), - type_: &crate::clone::(args.type_), - zone_id: &crate::clone::(args.zone_id), + certificate: args.certificate.get_inner(), + private_key: args.private_key.get_inner(), + type_: args.type_.get_inner(), + zone_id: args.zone_id.get_inner(), }); AuthenticatedOriginPullsCertificateResult { - certificate: crate::random_to_domain_mapper::(result.certificate), - expires_on: crate::random_to_domain_mapper::(result.expires_on), - issuer: crate::random_to_domain_mapper::(result.issuer), - private_key: crate::random_to_domain_mapper::(result.private_key), - serial_number: crate::random_to_domain_mapper::(result.serial_number), - signature: crate::random_to_domain_mapper::(result.signature), - status: crate::random_to_domain_mapper::(result.status), - type_: crate::random_to_domain_mapper::(result.type_), - uploaded_on: crate::random_to_domain_mapper::(result.uploaded_on), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + certificate: crate::into_domain(result.certificate), + expires_on: crate::into_domain(result.expires_on), + issuer: crate::into_domain(result.issuer), + private_key: crate::into_domain(result.private_key), + serial_number: crate::into_domain(result.serial_number), + signature: crate::into_domain(result.signature), + status: crate::into_domain(result.status), + type_: crate::into_domain(result.type_), + uploaded_on: crate::into_domain(result.uploaded_on), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1402,49 +1232,33 @@ pub mod bot_management { let result = crate::bindings::pulumi::cloudflare::bot_management::invoke( name, &crate::bindings::pulumi::cloudflare::bot_management::Args { - auto_update_model: &crate::clone::>(args.auto_update_model), - enable_js: &crate::clone::>(args.enable_js), - fight_mode: &crate::clone::>(args.fight_mode), - optimize_wordpress: &crate::clone::>(args.optimize_wordpress), - sbfm_definitely_automated: &crate::clone::>( - args.sbfm_definitely_automated, - ), - sbfm_likely_automated: &crate::clone::>(args.sbfm_likely_automated), - sbfm_static_resource_protection: &crate::clone::>( - args.sbfm_static_resource_protection, - ), - sbfm_verified_bots: &crate::clone::>(args.sbfm_verified_bots), - suppress_session_score: &crate::clone::>(args.suppress_session_score), - zone_id: &crate::clone::(args.zone_id), + auto_update_model: args.auto_update_model.get_inner(), + enable_js: args.enable_js.get_inner(), + fight_mode: args.fight_mode.get_inner(), + optimize_wordpress: args.optimize_wordpress.get_inner(), + sbfm_definitely_automated: args.sbfm_definitely_automated.get_inner(), + sbfm_likely_automated: args.sbfm_likely_automated.get_inner(), + sbfm_static_resource_protection: args.sbfm_static_resource_protection.get_inner(), + sbfm_verified_bots: args.sbfm_verified_bots.get_inner(), + suppress_session_score: args.suppress_session_score.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); BotManagementResult { - auto_update_model: crate::random_to_domain_mapper::>( - result.auto_update_model, - ), - enable_js: crate::random_to_domain_mapper::>(result.enable_js), - fight_mode: crate::random_to_domain_mapper::>(result.fight_mode), - optimize_wordpress: crate::random_to_domain_mapper::>( - result.optimize_wordpress, - ), - sbfm_definitely_automated: crate::random_to_domain_mapper::>( - result.sbfm_definitely_automated, - ), - sbfm_likely_automated: crate::random_to_domain_mapper::>( - result.sbfm_likely_automated, - ), - sbfm_static_resource_protection: crate::random_to_domain_mapper::>( + auto_update_model: crate::into_domain(result.auto_update_model), + enable_js: crate::into_domain(result.enable_js), + fight_mode: crate::into_domain(result.fight_mode), + optimize_wordpress: crate::into_domain(result.optimize_wordpress), + sbfm_definitely_automated: crate::into_domain(result.sbfm_definitely_automated), + sbfm_likely_automated: crate::into_domain(result.sbfm_likely_automated), + sbfm_static_resource_protection: crate::into_domain( result.sbfm_static_resource_protection, ), - sbfm_verified_bots: crate::random_to_domain_mapper::>( - result.sbfm_verified_bots, - ), - suppress_session_score: crate::random_to_domain_mapper::>( - result.suppress_session_score, - ), - using_latest_model: crate::random_to_domain_mapper::(result.using_latest_model), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + sbfm_verified_bots: crate::into_domain(result.sbfm_verified_bots), + suppress_session_score: crate::into_domain(result.suppress_session_score), + using_latest_model: crate::into_domain(result.using_latest_model), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1469,18 +1283,18 @@ pub mod byo_ip_prefix { let result = crate::bindings::pulumi::cloudflare::byo_ip_prefix::invoke( name, &crate::bindings::pulumi::cloudflare::byo_ip_prefix::Args { - account_id: &crate::clone::(args.account_id), - advertisement: &crate::clone::>(args.advertisement), - description: &crate::clone::>(args.description), - prefix_id: &crate::clone::(args.prefix_id), + account_id: args.account_id.get_inner(), + advertisement: args.advertisement.get_inner(), + description: args.description.get_inner(), + prefix_id: args.prefix_id.get_inner(), }, ); ByoIpPrefixResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - advertisement: crate::random_to_domain_mapper::(result.advertisement), - description: crate::random_to_domain_mapper::(result.description), - prefix_id: crate::random_to_domain_mapper::(result.prefix_id), + account_id: crate::into_domain(result.account_id), + advertisement: crate::into_domain(result.advertisement), + description: crate::into_domain(result.description), + prefix_id: crate::into_domain(result.prefix_id), } } } @@ -1521,44 +1335,30 @@ pub mod certificate_pack { let result = crate::bindings::pulumi::cloudflare::certificate_pack::invoke( name, &crate::bindings::pulumi::cloudflare::certificate_pack::Args { - certificate_authority: &crate::clone::(args.certificate_authority), - cloudflare_branding: &crate::clone::>(args.cloudflare_branding), - hosts: &crate::clone::>(args.hosts), - type_: &crate::clone::(args.type_), - validation_errors: &crate::clone::< - Option>, - >(args.validation_errors), - validation_method: &crate::clone::(args.validation_method), - validation_records: &crate::clone::< - Option>, - >(args.validation_records), - validity_days: &crate::clone::(args.validity_days), - wait_for_active_status: &crate::clone::>(args.wait_for_active_status), - zone_id: &crate::clone::(args.zone_id), + certificate_authority: args.certificate_authority.get_inner(), + cloudflare_branding: args.cloudflare_branding.get_inner(), + hosts: args.hosts.get_inner(), + type_: args.type_.get_inner(), + validation_errors: args.validation_errors.get_inner(), + validation_method: args.validation_method.get_inner(), + validation_records: args.validation_records.get_inner(), + validity_days: args.validity_days.get_inner(), + wait_for_active_status: args.wait_for_active_status.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); CertificatePackResult { - certificate_authority: crate::random_to_domain_mapper::( - result.certificate_authority, - ), - cloudflare_branding: crate::random_to_domain_mapper::>( - result.cloudflare_branding, - ), - hosts: crate::random_to_domain_mapper::>(result.hosts), - type_: crate::random_to_domain_mapper::(result.type_), - validation_errors: crate::random_to_domain_mapper::< - Vec, - >(result.validation_errors), - validation_method: crate::random_to_domain_mapper::(result.validation_method), - validation_records: crate::random_to_domain_mapper::< - Vec, - >(result.validation_records), - validity_days: crate::random_to_domain_mapper::(result.validity_days), - wait_for_active_status: crate::random_to_domain_mapper::>( - result.wait_for_active_status, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + certificate_authority: crate::into_domain(result.certificate_authority), + cloudflare_branding: crate::into_domain(result.cloudflare_branding), + hosts: crate::into_domain(result.hosts), + type_: crate::into_domain(result.type_), + validation_errors: crate::into_domain(result.validation_errors), + validation_method: crate::into_domain(result.validation_method), + validation_records: crate::into_domain(result.validation_records), + validity_days: crate::into_domain(result.validity_days), + wait_for_active_status: crate::into_domain(result.wait_for_active_status), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1596,45 +1396,29 @@ pub mod custom_hostname { let result = crate::bindings::pulumi::cloudflare::custom_hostname::invoke( name, &crate::bindings::pulumi::cloudflare::custom_hostname::Args { - custom_metadata: &crate::clone::>>( - args.custom_metadata, - ), - custom_origin_server: &crate::clone::>(args.custom_origin_server), - custom_origin_sni: &crate::clone::>(args.custom_origin_sni), - hostname: &crate::clone::(args.hostname), - ssls: &crate::clone::>>(args.ssls), - wait_for_ssl_pending_validation: &crate::clone::>( - args.wait_for_ssl_pending_validation, - ), - zone_id: &crate::clone::(args.zone_id), + custom_metadata: args.custom_metadata.get_inner(), + custom_origin_server: args.custom_origin_server.get_inner(), + custom_origin_sni: args.custom_origin_sni.get_inner(), + hostname: args.hostname.get_inner(), + ssls: args.ssls.get_inner(), + wait_for_ssl_pending_validation: args.wait_for_ssl_pending_validation.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); CustomHostnameResult { - custom_metadata: crate::random_to_domain_mapper::< - Option>, - >(result.custom_metadata), - custom_origin_server: crate::random_to_domain_mapper::>( - result.custom_origin_server, - ), - custom_origin_sni: crate::random_to_domain_mapper::>( - result.custom_origin_sni, - ), - hostname: crate::random_to_domain_mapper::(result.hostname), - ownership_verification: crate::random_to_domain_mapper::< - std::collections::HashMap, - >(result.ownership_verification), - ownership_verification_http: crate::random_to_domain_mapper::< - std::collections::HashMap, - >(result.ownership_verification_http), - ssls: crate::random_to_domain_mapper::>>( - result.ssls, - ), - status: crate::random_to_domain_mapper::(result.status), - wait_for_ssl_pending_validation: crate::random_to_domain_mapper::>( + custom_metadata: crate::into_domain(result.custom_metadata), + custom_origin_server: crate::into_domain(result.custom_origin_server), + custom_origin_sni: crate::into_domain(result.custom_origin_sni), + hostname: crate::into_domain(result.hostname), + ownership_verification: crate::into_domain(result.ownership_verification), + ownership_verification_http: crate::into_domain(result.ownership_verification_http), + ssls: crate::into_domain(result.ssls), + status: crate::into_domain(result.status), + wait_for_ssl_pending_validation: crate::into_domain( result.wait_for_ssl_pending_validation, ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1659,15 +1443,15 @@ pub mod custom_hostname_fallback_origin { let result = crate::bindings::pulumi::cloudflare::custom_hostname_fallback_origin::invoke( name, &crate::bindings::pulumi::cloudflare::custom_hostname_fallback_origin::Args { - origin: &crate::clone::(args.origin), - zone_id: &crate::clone::(args.zone_id), + origin: args.origin.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); CustomHostnameFallbackOriginResult { - origin: crate::random_to_domain_mapper::(result.origin), - status: crate::random_to_domain_mapper::(result.status), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + origin: crate::into_domain(result.origin), + status: crate::into_domain(result.status), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1694,20 +1478,20 @@ pub mod custom_pages { let result = crate::bindings::pulumi::cloudflare::custom_pages::invoke( name, &crate::bindings::pulumi::cloudflare::custom_pages::Args { - account_id: &crate::clone::>(args.account_id), - state: &crate::clone::>(args.state), - type_: &crate::clone::(args.type_), - url: &crate::clone::(args.url), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + state: args.state.get_inner(), + type_: args.type_.get_inner(), + url: args.url.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); CustomPagesResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - state: crate::random_to_domain_mapper::>(result.state), - type_: crate::random_to_domain_mapper::(result.type_), - url: crate::random_to_domain_mapper::(result.url), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + state: crate::into_domain(result.state), + type_: crate::into_domain(result.type_), + url: crate::into_domain(result.url), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1742,32 +1526,24 @@ pub mod custom_ssl { let result = crate::bindings::pulumi::cloudflare::custom_ssl::invoke( name, &crate::bindings::pulumi::cloudflare::custom_ssl::Args { - custom_ssl_options: &crate::clone::>( - args.custom_ssl_options, - ), - custom_ssl_priorities: &crate::clone::< - Option>, - >(args.custom_ssl_priorities), - zone_id: &crate::clone::(args.zone_id), + custom_ssl_options: args.custom_ssl_options.get_inner(), + custom_ssl_priorities: args.custom_ssl_priorities.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); CustomSslResult { - custom_ssl_options: crate::random_to_domain_mapper::< - Option, - >(result.custom_ssl_options), - custom_ssl_priorities: crate::random_to_domain_mapper::< - Option>, - >(result.custom_ssl_priorities), - expires_on: crate::random_to_domain_mapper::(result.expires_on), - hosts: crate::random_to_domain_mapper::>(result.hosts), - issuer: crate::random_to_domain_mapper::(result.issuer), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - priority: crate::random_to_domain_mapper::(result.priority), - signature: crate::random_to_domain_mapper::(result.signature), - status: crate::random_to_domain_mapper::(result.status), - uploaded_on: crate::random_to_domain_mapper::(result.uploaded_on), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + custom_ssl_options: crate::into_domain(result.custom_ssl_options), + custom_ssl_priorities: crate::into_domain(result.custom_ssl_priorities), + expires_on: crate::into_domain(result.expires_on), + hosts: crate::into_domain(result.hosts), + issuer: crate::into_domain(result.issuer), + modified_on: crate::into_domain(result.modified_on), + priority: crate::into_domain(result.priority), + signature: crate::into_domain(result.signature), + status: crate::into_domain(result.status), + uploaded_on: crate::into_domain(result.uploaded_on), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1789,15 +1565,15 @@ pub mod d1_database { let result = crate::bindings::pulumi::cloudflare::d1_database::invoke( name, &crate::bindings::pulumi::cloudflare::d1_database::Args { - account_id: &crate::clone::(args.account_id), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + name: args.name.get_inner(), }, ); D1DatabaseResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - name: crate::random_to_domain_mapper::(result.name), - version: crate::random_to_domain_mapper::(result.version), + account_id: crate::into_domain(result.account_id), + name: crate::into_domain(result.name), + version: crate::into_domain(result.version), } } } @@ -1828,24 +1604,24 @@ pub mod device_dex_test { let result = crate::bindings::pulumi::cloudflare::device_dex_test::invoke( name, &crate::bindings::pulumi::cloudflare::device_dex_test::Args { - account_id: &crate::clone::(args.account_id), - data: &crate::clone::(args.data), - description: &crate::clone::(args.description), - enabled: &crate::clone::(args.enabled), - interval: &crate::clone::(args.interval), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + data: args.data.get_inner(), + description: args.description.get_inner(), + enabled: args.enabled.get_inner(), + interval: args.interval.get_inner(), + name: args.name.get_inner(), }, ); DeviceDexTestResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - created: crate::random_to_domain_mapper::(result.created), - data: crate::random_to_domain_mapper::(result.data), - description: crate::random_to_domain_mapper::(result.description), - enabled: crate::random_to_domain_mapper::(result.enabled), - interval: crate::random_to_domain_mapper::(result.interval), - name: crate::random_to_domain_mapper::(result.name), - updated: crate::random_to_domain_mapper::(result.updated), + account_id: crate::into_domain(result.account_id), + created: crate::into_domain(result.created), + data: crate::into_domain(result.data), + description: crate::into_domain(result.description), + enabled: crate::into_domain(result.enabled), + interval: crate::into_domain(result.interval), + name: crate::into_domain(result.name), + updated: crate::into_domain(result.updated), } } } @@ -1873,20 +1649,18 @@ pub mod device_managed_networks { let result = crate::bindings::pulumi::cloudflare::device_managed_networks::invoke( name, &crate::bindings::pulumi::cloudflare::device_managed_networks::Args { - account_id: &crate::clone::(args.account_id), - config: &crate::clone::(args.config), - name: &crate::clone::(args.name), - type_: &crate::clone::(args.type_), + account_id: args.account_id.get_inner(), + config: args.config.get_inner(), + name: args.name.get_inner(), + type_: args.type_.get_inner(), }, ); DeviceManagedNetworksResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - config: crate::random_to_domain_mapper::( - result.config, - ), - name: crate::random_to_domain_mapper::(result.name), - type_: crate::random_to_domain_mapper::(result.type_), + account_id: crate::into_domain(result.account_id), + config: crate::into_domain(result.config), + name: crate::into_domain(result.name), + type_: crate::into_domain(result.type_), } } } @@ -1910,14 +1684,14 @@ pub mod device_policy_certificates { let result = crate::bindings::pulumi::cloudflare::device_policy_certificates::invoke( name, &crate::bindings::pulumi::cloudflare::device_policy_certificates::Args { - enabled: &crate::clone::(args.enabled), - zone_id: &crate::clone::(args.zone_id), + enabled: args.enabled.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); DevicePolicyCertificatesResult { - enabled: crate::random_to_domain_mapper::(result.enabled), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + enabled: crate::into_domain(result.enabled), + zone_id: crate::into_domain(result.zone_id), } } } @@ -1951,26 +1725,22 @@ pub mod device_posture_integration { let result = crate::bindings::pulumi::cloudflare::device_posture_integration::invoke( name, &crate::bindings::pulumi::cloudflare::device_posture_integration::Args { - account_id: &crate::clone::(args.account_id), - configs: &crate::clone::>>( - args.configs, - ), - identifier: &crate::clone::>(args.identifier), - interval: &crate::clone::>(args.interval), - name: &crate::clone::(args.name), - type_: &crate::clone::(args.type_), + account_id: args.account_id.get_inner(), + configs: args.configs.get_inner(), + identifier: args.identifier.get_inner(), + interval: args.interval.get_inner(), + name: args.name.get_inner(), + type_: args.type_.get_inner(), }, ); DevicePostureIntegrationResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - configs: crate::random_to_domain_mapper::< - Option>, - >(result.configs), - identifier: crate::random_to_domain_mapper::>(result.identifier), - interval: crate::random_to_domain_mapper::>(result.interval), - name: crate::random_to_domain_mapper::(result.name), - type_: crate::random_to_domain_mapper::(result.type_), + account_id: crate::into_domain(result.account_id), + configs: crate::into_domain(result.configs), + identifier: crate::into_domain(result.identifier), + interval: crate::into_domain(result.interval), + name: crate::into_domain(result.name), + type_: crate::into_domain(result.type_), } } } @@ -2003,34 +1773,26 @@ pub mod device_posture_rule { let result = crate::bindings::pulumi::cloudflare::device_posture_rule::invoke( name, &crate::bindings::pulumi::cloudflare::device_posture_rule::Args { - account_id: &crate::clone::(args.account_id), - description: &crate::clone::>(args.description), - expiration: &crate::clone::>(args.expiration), - inputs: &crate::clone::>>( - args.inputs, - ), - matches: &crate::clone::>>( - args.matches, - ), - name: &crate::clone::>(args.name), - schedule: &crate::clone::>(args.schedule), - type_: &crate::clone::(args.type_), + account_id: args.account_id.get_inner(), + description: args.description.get_inner(), + expiration: args.expiration.get_inner(), + inputs: args.inputs.get_inner(), + matches: args.matches.get_inner(), + name: args.name.get_inner(), + schedule: args.schedule.get_inner(), + type_: args.type_.get_inner(), }, ); DevicePostureRuleResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - description: crate::random_to_domain_mapper::>(result.description), - expiration: crate::random_to_domain_mapper::>(result.expiration), - inputs: crate::random_to_domain_mapper::>( - result.inputs, - ), - matches: crate::random_to_domain_mapper::< - Option>, - >(result.matches), - name: crate::random_to_domain_mapper::>(result.name), - schedule: crate::random_to_domain_mapper::>(result.schedule), - type_: crate::random_to_domain_mapper::(result.type_), + account_id: crate::into_domain(result.account_id), + description: crate::into_domain(result.description), + expiration: crate::into_domain(result.expiration), + inputs: crate::into_domain(result.inputs), + matches: crate::into_domain(result.matches), + name: crate::into_domain(result.name), + schedule: crate::into_domain(result.schedule), + type_: crate::into_domain(result.type_), } } } @@ -2086,58 +1848,46 @@ pub mod device_settings_policy { let result = crate::bindings::pulumi::cloudflare::device_settings_policy::invoke( name, &crate::bindings::pulumi::cloudflare::device_settings_policy::Args { - account_id: &crate::clone::(args.account_id), - allow_mode_switch: &crate::clone::>(args.allow_mode_switch), - allow_updates: &crate::clone::>(args.allow_updates), - allowed_to_leave: &crate::clone::>(args.allowed_to_leave), - auto_connect: &crate::clone::>(args.auto_connect), - captive_portal: &crate::clone::>(args.captive_portal), - default: &crate::clone::>(args.default), - description: &crate::clone::(args.description), - disable_auto_fallback: &crate::clone::>(args.disable_auto_fallback), - enabled: &crate::clone::>(args.enabled), - exclude_office_ips: &crate::clone::>(args.exclude_office_ips), - match_: &crate::clone::>(args.match_), - name: &crate::clone::(args.name), - precedence: &crate::clone::>(args.precedence), - service_mode_v2_mode: &crate::clone::>(args.service_mode_v2_mode), - service_mode_v2_port: &crate::clone::>(args.service_mode_v2_port), - support_url: &crate::clone::>(args.support_url), - switch_locked: &crate::clone::>(args.switch_locked), + account_id: args.account_id.get_inner(), + allow_mode_switch: args.allow_mode_switch.get_inner(), + allow_updates: args.allow_updates.get_inner(), + allowed_to_leave: args.allowed_to_leave.get_inner(), + auto_connect: args.auto_connect.get_inner(), + captive_portal: args.captive_portal.get_inner(), + default: args.default.get_inner(), + description: args.description.get_inner(), + disable_auto_fallback: args.disable_auto_fallback.get_inner(), + enabled: args.enabled.get_inner(), + exclude_office_ips: args.exclude_office_ips.get_inner(), + match_: args.match_.get_inner(), + name: args.name.get_inner(), + precedence: args.precedence.get_inner(), + service_mode_v2_mode: args.service_mode_v2_mode.get_inner(), + service_mode_v2_port: args.service_mode_v2_port.get_inner(), + support_url: args.support_url.get_inner(), + switch_locked: args.switch_locked.get_inner(), }, ); DeviceSettingsPolicyResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - allow_mode_switch: crate::random_to_domain_mapper::>( - result.allow_mode_switch, - ), - allow_updates: crate::random_to_domain_mapper::>(result.allow_updates), - allowed_to_leave: crate::random_to_domain_mapper::>( - result.allowed_to_leave, - ), - auto_connect: crate::random_to_domain_mapper::>(result.auto_connect), - captive_portal: crate::random_to_domain_mapper::>(result.captive_portal), - default: crate::random_to_domain_mapper::>(result.default), - description: crate::random_to_domain_mapper::(result.description), - disable_auto_fallback: crate::random_to_domain_mapper::>( - result.disable_auto_fallback, - ), - enabled: crate::random_to_domain_mapper::>(result.enabled), - exclude_office_ips: crate::random_to_domain_mapper::>( - result.exclude_office_ips, - ), - match_: crate::random_to_domain_mapper::>(result.match_), - name: crate::random_to_domain_mapper::(result.name), - precedence: crate::random_to_domain_mapper::>(result.precedence), - service_mode_v2_mode: crate::random_to_domain_mapper::>( - result.service_mode_v2_mode, - ), - service_mode_v2_port: crate::random_to_domain_mapper::>( - result.service_mode_v2_port, - ), - support_url: crate::random_to_domain_mapper::>(result.support_url), - switch_locked: crate::random_to_domain_mapper::>(result.switch_locked), + account_id: crate::into_domain(result.account_id), + allow_mode_switch: crate::into_domain(result.allow_mode_switch), + allow_updates: crate::into_domain(result.allow_updates), + allowed_to_leave: crate::into_domain(result.allowed_to_leave), + auto_connect: crate::into_domain(result.auto_connect), + captive_portal: crate::into_domain(result.captive_portal), + default: crate::into_domain(result.default), + description: crate::into_domain(result.description), + disable_auto_fallback: crate::into_domain(result.disable_auto_fallback), + enabled: crate::into_domain(result.enabled), + exclude_office_ips: crate::into_domain(result.exclude_office_ips), + match_: crate::into_domain(result.match_), + name: crate::into_domain(result.name), + precedence: crate::into_domain(result.precedence), + service_mode_v2_mode: crate::into_domain(result.service_mode_v2_mode), + service_mode_v2_port: crate::into_domain(result.service_mode_v2_port), + support_url: crate::into_domain(result.support_url), + switch_locked: crate::into_domain(result.switch_locked), } } } @@ -2169,30 +1919,24 @@ pub mod dlp_profile { let result = crate::bindings::pulumi::cloudflare::dlp_profile::invoke( name, &crate::bindings::pulumi::cloudflare::dlp_profile::Args { - account_id: &crate::clone::(args.account_id), - allowed_match_count: &crate::clone::(args.allowed_match_count), - context_awareness: &crate::clone::>( - args.context_awareness, - ), - description: &crate::clone::>(args.description), - entries: &crate::clone::>(args.entries), - name: &crate::clone::(args.name), - type_: &crate::clone::(args.type_), + account_id: args.account_id.get_inner(), + allowed_match_count: args.allowed_match_count.get_inner(), + context_awareness: args.context_awareness.get_inner(), + description: args.description.get_inner(), + entries: args.entries.get_inner(), + name: args.name.get_inner(), + type_: args.type_.get_inner(), }, ); DlpProfileResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - allowed_match_count: crate::random_to_domain_mapper::(result.allowed_match_count), - context_awareness: crate::random_to_domain_mapper::< - crate::types::DlpProfileContextAwareness, - >(result.context_awareness), - description: crate::random_to_domain_mapper::>(result.description), - entries: crate::random_to_domain_mapper::>( - result.entries, - ), - name: crate::random_to_domain_mapper::(result.name), - type_: crate::random_to_domain_mapper::(result.type_), + account_id: crate::into_domain(result.account_id), + allowed_match_count: crate::into_domain(result.allowed_match_count), + context_awareness: crate::into_domain(result.context_awareness), + description: crate::into_domain(result.description), + entries: crate::into_domain(result.entries), + name: crate::into_domain(result.name), + type_: crate::into_domain(result.type_), } } } @@ -2220,18 +1964,18 @@ pub mod email_routing_address { let result = crate::bindings::pulumi::cloudflare::email_routing_address::invoke( name, &crate::bindings::pulumi::cloudflare::email_routing_address::Args { - account_id: &crate::clone::(args.account_id), - email: &crate::clone::(args.email), + account_id: args.account_id.get_inner(), + email: args.email.get_inner(), }, ); EmailRoutingAddressResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - created: crate::random_to_domain_mapper::(result.created), - email: crate::random_to_domain_mapper::(result.email), - modified: crate::random_to_domain_mapper::(result.modified), - tag: crate::random_to_domain_mapper::(result.tag), - verified: crate::random_to_domain_mapper::(result.verified), + account_id: crate::into_domain(result.account_id), + created: crate::into_domain(result.created), + email: crate::into_domain(result.email), + modified: crate::into_domain(result.modified), + tag: crate::into_domain(result.tag), + verified: crate::into_domain(result.verified), } } } @@ -2262,29 +2006,21 @@ pub mod email_routing_catch_all { let result = crate::bindings::pulumi::cloudflare::email_routing_catch_all::invoke( name, &crate::bindings::pulumi::cloudflare::email_routing_catch_all::Args { - actions: &crate::clone::>( - args.actions, - ), - enabled: &crate::clone::>(args.enabled), - matchers: &crate::clone::>( - args.matchers, - ), - name: &crate::clone::(args.name), - zone_id: &crate::clone::(args.zone_id), + actions: args.actions.get_inner(), + enabled: args.enabled.get_inner(), + matchers: args.matchers.get_inner(), + name: args.name.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); EmailRoutingCatchAllResult { - actions: crate::random_to_domain_mapper::>( - result.actions, - ), - enabled: crate::random_to_domain_mapper::>(result.enabled), - matchers: crate::random_to_domain_mapper::< - Vec, - >(result.matchers), - name: crate::random_to_domain_mapper::(result.name), - tag: crate::random_to_domain_mapper::(result.tag), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + actions: crate::into_domain(result.actions), + enabled: crate::into_domain(result.enabled), + matchers: crate::into_domain(result.matchers), + name: crate::into_domain(result.name), + tag: crate::into_domain(result.tag), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2314,31 +2050,23 @@ pub mod email_routing_rule { let result = crate::bindings::pulumi::cloudflare::email_routing_rule::invoke( name, &crate::bindings::pulumi::cloudflare::email_routing_rule::Args { - actions: &crate::clone::>>( - args.actions, - ), - enabled: &crate::clone::>(args.enabled), - matchers: &crate::clone::>>( - args.matchers, - ), - name: &crate::clone::(args.name), - priority: &crate::clone::>(args.priority), - zone_id: &crate::clone::(args.zone_id), + actions: args.actions.get_inner(), + enabled: args.enabled.get_inner(), + matchers: args.matchers.get_inner(), + name: args.name.get_inner(), + priority: args.priority.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); EmailRoutingRuleResult { - actions: crate::random_to_domain_mapper::< - Option>, - >(result.actions), - enabled: crate::random_to_domain_mapper::>(result.enabled), - matchers: crate::random_to_domain_mapper::< - Option>, - >(result.matchers), - name: crate::random_to_domain_mapper::(result.name), - priority: crate::random_to_domain_mapper::(result.priority), - tag: crate::random_to_domain_mapper::(result.tag), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + actions: crate::into_domain(result.actions), + enabled: crate::into_domain(result.enabled), + matchers: crate::into_domain(result.matchers), + name: crate::into_domain(result.name), + priority: crate::into_domain(result.priority), + tag: crate::into_domain(result.tag), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2369,21 +2097,21 @@ pub mod email_routing_settings { let result = crate::bindings::pulumi::cloudflare::email_routing_settings::invoke( name, &crate::bindings::pulumi::cloudflare::email_routing_settings::Args { - enabled: &crate::clone::(args.enabled), - skip_wizard: &crate::clone::>(args.skip_wizard), - zone_id: &crate::clone::(args.zone_id), + enabled: args.enabled.get_inner(), + skip_wizard: args.skip_wizard.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); EmailRoutingSettingsResult { - created: crate::random_to_domain_mapper::(result.created), - enabled: crate::random_to_domain_mapper::(result.enabled), - modified: crate::random_to_domain_mapper::(result.modified), - name: crate::random_to_domain_mapper::(result.name), - skip_wizard: crate::random_to_domain_mapper::(result.skip_wizard), - status: crate::random_to_domain_mapper::(result.status), - tag: crate::random_to_domain_mapper::(result.tag), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + created: crate::into_domain(result.created), + enabled: crate::into_domain(result.enabled), + modified: crate::into_domain(result.modified), + name: crate::into_domain(result.name), + skip_wizard: crate::into_domain(result.skip_wizard), + status: crate::into_domain(result.status), + tag: crate::into_domain(result.tag), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2406,18 +2134,16 @@ pub mod fallback_domain { let result = crate::bindings::pulumi::cloudflare::fallback_domain::invoke( name, &crate::bindings::pulumi::cloudflare::fallback_domain::Args { - account_id: &crate::clone::(args.account_id), - domains: &crate::clone::>(args.domains), - policy_id: &crate::clone::>(args.policy_id), + account_id: args.account_id.get_inner(), + domains: args.domains.get_inner(), + policy_id: args.policy_id.get_inner(), }, ); FallbackDomainResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - domains: crate::random_to_domain_mapper::>( - result.domains, - ), - policy_id: crate::random_to_domain_mapper::>(result.policy_id), + account_id: crate::into_domain(result.account_id), + domains: crate::into_domain(result.domains), + policy_id: crate::into_domain(result.policy_id), } } } @@ -2444,20 +2170,20 @@ pub mod filter { let result = crate::bindings::pulumi::cloudflare::filter::invoke( name, &crate::bindings::pulumi::cloudflare::filter::Args { - description: &crate::clone::>(args.description), - expression: &crate::clone::(args.expression), - paused: &crate::clone::>(args.paused), - ref_: &crate::clone::>(args.ref_), - zone_id: &crate::clone::(args.zone_id), + description: args.description.get_inner(), + expression: args.expression.get_inner(), + paused: args.paused.get_inner(), + ref_: args.ref_.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); FilterResult { - description: crate::random_to_domain_mapper::>(result.description), - expression: crate::random_to_domain_mapper::(result.expression), - paused: crate::random_to_domain_mapper::>(result.paused), - ref_: crate::random_to_domain_mapper::>(result.ref_), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + description: crate::into_domain(result.description), + expression: crate::into_domain(result.expression), + paused: crate::into_domain(result.paused), + ref_: crate::into_domain(result.ref_), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2488,24 +2214,24 @@ pub mod firewall_rule { let result = crate::bindings::pulumi::cloudflare::firewall_rule::invoke( name, &crate::bindings::pulumi::cloudflare::firewall_rule::Args { - action: &crate::clone::(args.action), - description: &crate::clone::>(args.description), - filter_id: &crate::clone::(args.filter_id), - paused: &crate::clone::>(args.paused), - priority: &crate::clone::>(args.priority), - products: &crate::clone::>>(args.products), - zone_id: &crate::clone::(args.zone_id), + action: args.action.get_inner(), + description: args.description.get_inner(), + filter_id: args.filter_id.get_inner(), + paused: args.paused.get_inner(), + priority: args.priority.get_inner(), + products: args.products.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); FirewallRuleResult { - action: crate::random_to_domain_mapper::(result.action), - description: crate::random_to_domain_mapper::>(result.description), - filter_id: crate::random_to_domain_mapper::(result.filter_id), - paused: crate::random_to_domain_mapper::>(result.paused), - priority: crate::random_to_domain_mapper::>(result.priority), - products: crate::random_to_domain_mapper::>>(result.products), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + action: crate::into_domain(result.action), + description: crate::into_domain(result.description), + filter_id: crate::into_domain(result.filter_id), + paused: crate::into_domain(result.paused), + priority: crate::into_domain(result.priority), + products: crate::into_domain(result.products), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2544,40 +2270,32 @@ pub mod gre_tunnel { let result = crate::bindings::pulumi::cloudflare::gre_tunnel::invoke( name, &crate::bindings::pulumi::cloudflare::gre_tunnel::Args { - account_id: &crate::clone::>(args.account_id), - cloudflare_gre_endpoint: &crate::clone::(args.cloudflare_gre_endpoint), - customer_gre_endpoint: &crate::clone::(args.customer_gre_endpoint), - description: &crate::clone::>(args.description), - health_check_enabled: &crate::clone::>(args.health_check_enabled), - health_check_target: &crate::clone::>(args.health_check_target), - health_check_type: &crate::clone::>(args.health_check_type), - interface_address: &crate::clone::(args.interface_address), - mtu: &crate::clone::>(args.mtu), - name: &crate::clone::(args.name), - ttl: &crate::clone::>(args.ttl), + account_id: args.account_id.get_inner(), + cloudflare_gre_endpoint: args.cloudflare_gre_endpoint.get_inner(), + customer_gre_endpoint: args.customer_gre_endpoint.get_inner(), + description: args.description.get_inner(), + health_check_enabled: args.health_check_enabled.get_inner(), + health_check_target: args.health_check_target.get_inner(), + health_check_type: args.health_check_type.get_inner(), + interface_address: args.interface_address.get_inner(), + mtu: args.mtu.get_inner(), + name: args.name.get_inner(), + ttl: args.ttl.get_inner(), }, ); GreTunnelResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - cloudflare_gre_endpoint: crate::random_to_domain_mapper::( - result.cloudflare_gre_endpoint, - ), - customer_gre_endpoint: crate::random_to_domain_mapper::( - result.customer_gre_endpoint, - ), - description: crate::random_to_domain_mapper::>(result.description), - health_check_enabled: crate::random_to_domain_mapper::( - result.health_check_enabled, - ), - health_check_target: crate::random_to_domain_mapper::( - result.health_check_target, - ), - health_check_type: crate::random_to_domain_mapper::(result.health_check_type), - interface_address: crate::random_to_domain_mapper::(result.interface_address), - mtu: crate::random_to_domain_mapper::(result.mtu), - name: crate::random_to_domain_mapper::(result.name), - ttl: crate::random_to_domain_mapper::(result.ttl), + account_id: crate::into_domain(result.account_id), + cloudflare_gre_endpoint: crate::into_domain(result.cloudflare_gre_endpoint), + customer_gre_endpoint: crate::into_domain(result.customer_gre_endpoint), + description: crate::into_domain(result.description), + health_check_enabled: crate::into_domain(result.health_check_enabled), + health_check_target: crate::into_domain(result.health_check_target), + health_check_type: crate::into_domain(result.health_check_type), + interface_address: crate::into_domain(result.interface_address), + mtu: crate::into_domain(result.mtu), + name: crate::into_domain(result.name), + ttl: crate::into_domain(result.ttl), } } } @@ -2636,64 +2354,52 @@ pub mod healthcheck { let result = crate::bindings::pulumi::cloudflare::healthcheck::invoke( name, &crate::bindings::pulumi::cloudflare::healthcheck::Args { - address: &crate::clone::(args.address), - allow_insecure: &crate::clone::>(args.allow_insecure), - check_regions: &crate::clone::>>(args.check_regions), - consecutive_fails: &crate::clone::>(args.consecutive_fails), - consecutive_successes: &crate::clone::>(args.consecutive_successes), - description: &crate::clone::>(args.description), - expected_body: &crate::clone::>(args.expected_body), - expected_codes: &crate::clone::>>(args.expected_codes), - follow_redirects: &crate::clone::>(args.follow_redirects), - headers: &crate::clone::>>( - args.headers, - ), - interval: &crate::clone::>(args.interval), - method: &crate::clone::>(args.method), - name: &crate::clone::(args.name), - path: &crate::clone::>(args.path), - port: &crate::clone::>(args.port), - retries: &crate::clone::>(args.retries), - suspended: &crate::clone::>(args.suspended), - timeout: &crate::clone::>(args.timeout), - type_: &crate::clone::(args.type_), - zone_id: &crate::clone::(args.zone_id), + address: args.address.get_inner(), + allow_insecure: args.allow_insecure.get_inner(), + check_regions: args.check_regions.get_inner(), + consecutive_fails: args.consecutive_fails.get_inner(), + consecutive_successes: args.consecutive_successes.get_inner(), + description: args.description.get_inner(), + expected_body: args.expected_body.get_inner(), + expected_codes: args.expected_codes.get_inner(), + follow_redirects: args.follow_redirects.get_inner(), + headers: args.headers.get_inner(), + interval: args.interval.get_inner(), + method: args.method.get_inner(), + name: args.name.get_inner(), + path: args.path.get_inner(), + port: args.port.get_inner(), + retries: args.retries.get_inner(), + suspended: args.suspended.get_inner(), + timeout: args.timeout.get_inner(), + type_: args.type_.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); HealthcheckResult { - address: crate::random_to_domain_mapper::(result.address), - allow_insecure: crate::random_to_domain_mapper::>(result.allow_insecure), - check_regions: crate::random_to_domain_mapper::>(result.check_regions), - consecutive_fails: crate::random_to_domain_mapper::>( - result.consecutive_fails, - ), - consecutive_successes: crate::random_to_domain_mapper::>( - result.consecutive_successes, - ), - created_on: crate::random_to_domain_mapper::(result.created_on), - description: crate::random_to_domain_mapper::>(result.description), - expected_body: crate::random_to_domain_mapper::>(result.expected_body), - expected_codes: crate::random_to_domain_mapper::>>( - result.expected_codes, - ), - follow_redirects: crate::random_to_domain_mapper::>( - result.follow_redirects, - ), - headers: crate::random_to_domain_mapper::>>( - result.headers, - ), - interval: crate::random_to_domain_mapper::>(result.interval), - method: crate::random_to_domain_mapper::(result.method), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - name: crate::random_to_domain_mapper::(result.name), - path: crate::random_to_domain_mapper::>(result.path), - port: crate::random_to_domain_mapper::>(result.port), - retries: crate::random_to_domain_mapper::>(result.retries), - suspended: crate::random_to_domain_mapper::>(result.suspended), - timeout: crate::random_to_domain_mapper::>(result.timeout), - type_: crate::random_to_domain_mapper::(result.type_), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + address: crate::into_domain(result.address), + allow_insecure: crate::into_domain(result.allow_insecure), + check_regions: crate::into_domain(result.check_regions), + consecutive_fails: crate::into_domain(result.consecutive_fails), + consecutive_successes: crate::into_domain(result.consecutive_successes), + created_on: crate::into_domain(result.created_on), + description: crate::into_domain(result.description), + expected_body: crate::into_domain(result.expected_body), + expected_codes: crate::into_domain(result.expected_codes), + follow_redirects: crate::into_domain(result.follow_redirects), + headers: crate::into_domain(result.headers), + interval: crate::into_domain(result.interval), + method: crate::into_domain(result.method), + modified_on: crate::into_domain(result.modified_on), + name: crate::into_domain(result.name), + path: crate::into_domain(result.path), + port: crate::into_domain(result.port), + retries: crate::into_domain(result.retries), + suspended: crate::into_domain(result.suspended), + timeout: crate::into_domain(result.timeout), + type_: crate::into_domain(result.type_), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2723,20 +2429,20 @@ pub mod hostname_tls_setting { let result = crate::bindings::pulumi::cloudflare::hostname_tls_setting::invoke( name, &crate::bindings::pulumi::cloudflare::hostname_tls_setting::Args { - hostname: &crate::clone::(args.hostname), - setting: &crate::clone::(args.setting), - value: &crate::clone::(args.value), - zone_id: &crate::clone::(args.zone_id), + hostname: args.hostname.get_inner(), + setting: args.setting.get_inner(), + value: args.value.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); HostnameTlsSettingResult { - created_at: crate::random_to_domain_mapper::(result.created_at), - hostname: crate::random_to_domain_mapper::(result.hostname), - setting: crate::random_to_domain_mapper::(result.setting), - updated_at: crate::random_to_domain_mapper::(result.updated_at), - value: crate::random_to_domain_mapper::(result.value), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + created_at: crate::into_domain(result.created_at), + hostname: crate::into_domain(result.hostname), + setting: crate::into_domain(result.setting), + updated_at: crate::into_domain(result.updated_at), + value: crate::into_domain(result.value), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2766,20 +2472,20 @@ pub mod hostname_tls_setting_ciphers { let result = crate::bindings::pulumi::cloudflare::hostname_tls_setting_ciphers::invoke( name, &crate::bindings::pulumi::cloudflare::hostname_tls_setting_ciphers::Args { - hostname: &crate::clone::(args.hostname), - ports: &crate::clone::>>(args.ports), - values: &crate::clone::>(args.values), - zone_id: &crate::clone::(args.zone_id), + hostname: args.hostname.get_inner(), + ports: args.ports.get_inner(), + values: args.values.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); HostnameTlsSettingCiphersResult { - created_at: crate::random_to_domain_mapper::(result.created_at), - hostname: crate::random_to_domain_mapper::(result.hostname), - ports: crate::random_to_domain_mapper::>>(result.ports), - updated_at: crate::random_to_domain_mapper::(result.updated_at), - values: crate::random_to_domain_mapper::>(result.values), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + created_at: crate::into_domain(result.created_at), + hostname: crate::into_domain(result.hostname), + ports: crate::into_domain(result.ports), + updated_at: crate::into_domain(result.updated_at), + values: crate::into_domain(result.values), + zone_id: crate::into_domain(result.zone_id), } } } @@ -2804,24 +2510,18 @@ pub mod hyperdrive_config { let result = crate::bindings::pulumi::cloudflare::hyperdrive_config::invoke( name, &crate::bindings::pulumi::cloudflare::hyperdrive_config::Args { - account_id: &crate::clone::(args.account_id), - caching: &crate::clone::>( - args.caching, - ), - name: &crate::clone::(args.name), - origin: &crate::clone::(args.origin), + account_id: args.account_id.get_inner(), + caching: args.caching.get_inner(), + name: args.name.get_inner(), + origin: args.origin.get_inner(), }, ); HyperdriveConfigResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - caching: crate::random_to_domain_mapper::( - result.caching, - ), - name: crate::random_to_domain_mapper::(result.name), - origin: crate::random_to_domain_mapper::( - result.origin, - ), + account_id: crate::into_domain(result.account_id), + caching: crate::into_domain(result.caching), + name: crate::into_domain(result.name), + origin: crate::into_domain(result.origin), } } } @@ -2872,56 +2572,44 @@ pub mod ipsec_tunnel { let result = crate::bindings::pulumi::cloudflare::ipsec_tunnel::invoke( name, &crate::bindings::pulumi::cloudflare::ipsec_tunnel::Args { - account_id: &crate::clone::>(args.account_id), - allow_null_cipher: &crate::clone::>(args.allow_null_cipher), - cloudflare_endpoint: &crate::clone::(args.cloudflare_endpoint), - customer_endpoint: &crate::clone::(args.customer_endpoint), - description: &crate::clone::>(args.description), - fqdn_id: &crate::clone::>(args.fqdn_id), - health_check_direction: &crate::clone::>( - args.health_check_direction, - ), - health_check_enabled: &crate::clone::>(args.health_check_enabled), - health_check_rate: &crate::clone::>(args.health_check_rate), - health_check_target: &crate::clone::>(args.health_check_target), - health_check_type: &crate::clone::>(args.health_check_type), - hex_id: &crate::clone::>(args.hex_id), - interface_address: &crate::clone::(args.interface_address), - name: &crate::clone::(args.name), - psk: &crate::clone::>(args.psk), - remote_id: &crate::clone::>(args.remote_id), - user_id: &crate::clone::>(args.user_id), + account_id: args.account_id.get_inner(), + allow_null_cipher: args.allow_null_cipher.get_inner(), + cloudflare_endpoint: args.cloudflare_endpoint.get_inner(), + customer_endpoint: args.customer_endpoint.get_inner(), + description: args.description.get_inner(), + fqdn_id: args.fqdn_id.get_inner(), + health_check_direction: args.health_check_direction.get_inner(), + health_check_enabled: args.health_check_enabled.get_inner(), + health_check_rate: args.health_check_rate.get_inner(), + health_check_target: args.health_check_target.get_inner(), + health_check_type: args.health_check_type.get_inner(), + hex_id: args.hex_id.get_inner(), + interface_address: args.interface_address.get_inner(), + name: args.name.get_inner(), + psk: args.psk.get_inner(), + remote_id: args.remote_id.get_inner(), + user_id: args.user_id.get_inner(), }, ); IpsecTunnelResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - allow_null_cipher: crate::random_to_domain_mapper::>( - result.allow_null_cipher, - ), - cloudflare_endpoint: crate::random_to_domain_mapper::( - result.cloudflare_endpoint, - ), - customer_endpoint: crate::random_to_domain_mapper::(result.customer_endpoint), - description: crate::random_to_domain_mapper::>(result.description), - fqdn_id: crate::random_to_domain_mapper::(result.fqdn_id), - health_check_direction: crate::random_to_domain_mapper::( - result.health_check_direction, - ), - health_check_enabled: crate::random_to_domain_mapper::( - result.health_check_enabled, - ), - health_check_rate: crate::random_to_domain_mapper::(result.health_check_rate), - health_check_target: crate::random_to_domain_mapper::( - result.health_check_target, - ), - health_check_type: crate::random_to_domain_mapper::(result.health_check_type), - hex_id: crate::random_to_domain_mapper::(result.hex_id), - interface_address: crate::random_to_domain_mapper::(result.interface_address), - name: crate::random_to_domain_mapper::(result.name), - psk: crate::random_to_domain_mapper::(result.psk), - remote_id: crate::random_to_domain_mapper::(result.remote_id), - user_id: crate::random_to_domain_mapper::(result.user_id), + account_id: crate::into_domain(result.account_id), + allow_null_cipher: crate::into_domain(result.allow_null_cipher), + cloudflare_endpoint: crate::into_domain(result.cloudflare_endpoint), + customer_endpoint: crate::into_domain(result.customer_endpoint), + description: crate::into_domain(result.description), + fqdn_id: crate::into_domain(result.fqdn_id), + health_check_direction: crate::into_domain(result.health_check_direction), + health_check_enabled: crate::into_domain(result.health_check_enabled), + health_check_rate: crate::into_domain(result.health_check_rate), + health_check_target: crate::into_domain(result.health_check_target), + health_check_type: crate::into_domain(result.health_check_type), + hex_id: crate::into_domain(result.hex_id), + interface_address: crate::into_domain(result.interface_address), + name: crate::into_domain(result.name), + psk: crate::into_domain(result.psk), + remote_id: crate::into_domain(result.remote_id), + user_id: crate::into_domain(result.user_id), } } } @@ -2956,25 +2644,25 @@ pub mod keyless_certificate { let result = crate::bindings::pulumi::cloudflare::keyless_certificate::invoke( name, &crate::bindings::pulumi::cloudflare::keyless_certificate::Args { - bundle_method: &crate::clone::>(args.bundle_method), - certificate: &crate::clone::(args.certificate), - enabled: &crate::clone::>(args.enabled), - host: &crate::clone::(args.host), - name: &crate::clone::>(args.name), - port: &crate::clone::>(args.port), - zone_id: &crate::clone::(args.zone_id), + bundle_method: args.bundle_method.get_inner(), + certificate: args.certificate.get_inner(), + enabled: args.enabled.get_inner(), + host: args.host.get_inner(), + name: args.name.get_inner(), + port: args.port.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); KeylessCertificateResult { - bundle_method: crate::random_to_domain_mapper::>(result.bundle_method), - certificate: crate::random_to_domain_mapper::(result.certificate), - enabled: crate::random_to_domain_mapper::>(result.enabled), - host: crate::random_to_domain_mapper::(result.host), - name: crate::random_to_domain_mapper::>(result.name), - port: crate::random_to_domain_mapper::>(result.port), - status: crate::random_to_domain_mapper::(result.status), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + bundle_method: crate::into_domain(result.bundle_method), + certificate: crate::into_domain(result.certificate), + enabled: crate::into_domain(result.enabled), + host: crate::into_domain(result.host), + name: crate::into_domain(result.name), + port: crate::into_domain(result.port), + status: crate::into_domain(result.status), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3001,22 +2689,20 @@ pub mod list { let result = crate::bindings::pulumi::cloudflare::list::invoke( name, &crate::bindings::pulumi::cloudflare::list::Args { - account_id: &crate::clone::(args.account_id), - description: &crate::clone::>(args.description), - items: &crate::clone::>>(args.items), - kind: &crate::clone::(args.kind), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + description: args.description.get_inner(), + items: args.items.get_inner(), + kind: args.kind.get_inner(), + name: args.name.get_inner(), }, ); ListResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - description: crate::random_to_domain_mapper::>(result.description), - items: crate::random_to_domain_mapper::>>( - result.items, - ), - kind: crate::random_to_domain_mapper::(result.kind), - name: crate::random_to_domain_mapper::(result.name), + account_id: crate::into_domain(result.account_id), + description: crate::into_domain(result.description), + items: crate::into_domain(result.items), + kind: crate::into_domain(result.kind), + name: crate::into_domain(result.name), } } } @@ -3047,28 +2733,24 @@ pub mod list_item { let result = crate::bindings::pulumi::cloudflare::list_item::invoke( name, &crate::bindings::pulumi::cloudflare::list_item::Args { - account_id: &crate::clone::(args.account_id), - asn: &crate::clone::>(args.asn), - comment: &crate::clone::>(args.comment), - hostname: &crate::clone::>(args.hostname), - ip: &crate::clone::>(args.ip), - list_id: &crate::clone::(args.list_id), - redirect: &crate::clone::>(args.redirect), + account_id: args.account_id.get_inner(), + asn: args.asn.get_inner(), + comment: args.comment.get_inner(), + hostname: args.hostname.get_inner(), + ip: args.ip.get_inner(), + list_id: args.list_id.get_inner(), + redirect: args.redirect.get_inner(), }, ); ListItemResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - asn: crate::random_to_domain_mapper::>(result.asn), - comment: crate::random_to_domain_mapper::>(result.comment), - hostname: crate::random_to_domain_mapper::>( - result.hostname, - ), - ip: crate::random_to_domain_mapper::>(result.ip), - list_id: crate::random_to_domain_mapper::(result.list_id), - redirect: crate::random_to_domain_mapper::>( - result.redirect, - ), + account_id: crate::into_domain(result.account_id), + asn: crate::into_domain(result.asn), + comment: crate::into_domain(result.comment), + hostname: crate::into_domain(result.hostname), + ip: crate::into_domain(result.ip), + list_id: crate::into_domain(result.list_id), + redirect: crate::into_domain(result.redirect), } } } @@ -3139,86 +2821,50 @@ pub mod load_balancer { let result = crate::bindings::pulumi::cloudflare::load_balancer::invoke( name, &crate::bindings::pulumi::cloudflare::load_balancer::Args { - adaptive_routings: &crate::clone::< - Option>, - >(args.adaptive_routings), - country_pools: &crate::clone::>>( - args.country_pools, - ), - default_pool_ids: &crate::clone::>(args.default_pool_ids), - description: &crate::clone::>(args.description), - enabled: &crate::clone::>(args.enabled), - fallback_pool_id: &crate::clone::(args.fallback_pool_id), - location_strategies: &crate::clone::< - Option>, - >(args.location_strategies), - name: &crate::clone::(args.name), - pop_pools: &crate::clone::>>( - args.pop_pools, - ), - proxied: &crate::clone::>(args.proxied), - random_steerings: &crate::clone::< - Option>, - >(args.random_steerings), - region_pools: &crate::clone::>>( - args.region_pools, - ), - rules: &crate::clone::>>(args.rules), - session_affinity: &crate::clone::>(args.session_affinity), - session_affinity_attributes: &crate::clone::< - Option>, - >(args.session_affinity_attributes), - session_affinity_ttl: &crate::clone::>(args.session_affinity_ttl), - steering_policy: &crate::clone::>(args.steering_policy), - ttl: &crate::clone::>(args.ttl), - zone_id: &crate::clone::(args.zone_id), + adaptive_routings: args.adaptive_routings.get_inner(), + country_pools: args.country_pools.get_inner(), + default_pool_ids: args.default_pool_ids.get_inner(), + description: args.description.get_inner(), + enabled: args.enabled.get_inner(), + fallback_pool_id: args.fallback_pool_id.get_inner(), + location_strategies: args.location_strategies.get_inner(), + name: args.name.get_inner(), + pop_pools: args.pop_pools.get_inner(), + proxied: args.proxied.get_inner(), + random_steerings: args.random_steerings.get_inner(), + region_pools: args.region_pools.get_inner(), + rules: args.rules.get_inner(), + session_affinity: args.session_affinity.get_inner(), + session_affinity_attributes: args.session_affinity_attributes.get_inner(), + session_affinity_ttl: args.session_affinity_ttl.get_inner(), + steering_policy: args.steering_policy.get_inner(), + ttl: args.ttl.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); LoadBalancerResult { - adaptive_routings: crate::random_to_domain_mapper::< - Option>, - >(result.adaptive_routings), - country_pools: crate::random_to_domain_mapper::< - Option>, - >(result.country_pools), - created_on: crate::random_to_domain_mapper::(result.created_on), - default_pool_ids: crate::random_to_domain_mapper::>( - result.default_pool_ids, - ), - description: crate::random_to_domain_mapper::>(result.description), - enabled: crate::random_to_domain_mapper::>(result.enabled), - fallback_pool_id: crate::random_to_domain_mapper::(result.fallback_pool_id), - location_strategies: crate::random_to_domain_mapper::< - Option>, - >(result.location_strategies), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - name: crate::random_to_domain_mapper::(result.name), - pop_pools: crate::random_to_domain_mapper::< - Option>, - >(result.pop_pools), - proxied: crate::random_to_domain_mapper::>(result.proxied), - random_steerings: crate::random_to_domain_mapper::< - Option>, - >(result.random_steerings), - region_pools: crate::random_to_domain_mapper::< - Option>, - >(result.region_pools), - rules: crate::random_to_domain_mapper::>>( - result.rules, - ), - session_affinity: crate::random_to_domain_mapper::>( - result.session_affinity, - ), - session_affinity_attributes: crate::random_to_domain_mapper::< - Option>, - >(result.session_affinity_attributes), - session_affinity_ttl: crate::random_to_domain_mapper::>( - result.session_affinity_ttl, - ), - steering_policy: crate::random_to_domain_mapper::(result.steering_policy), - ttl: crate::random_to_domain_mapper::(result.ttl), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + adaptive_routings: crate::into_domain(result.adaptive_routings), + country_pools: crate::into_domain(result.country_pools), + created_on: crate::into_domain(result.created_on), + default_pool_ids: crate::into_domain(result.default_pool_ids), + description: crate::into_domain(result.description), + enabled: crate::into_domain(result.enabled), + fallback_pool_id: crate::into_domain(result.fallback_pool_id), + location_strategies: crate::into_domain(result.location_strategies), + modified_on: crate::into_domain(result.modified_on), + name: crate::into_domain(result.name), + pop_pools: crate::into_domain(result.pop_pools), + proxied: crate::into_domain(result.proxied), + random_steerings: crate::into_domain(result.random_steerings), + region_pools: crate::into_domain(result.region_pools), + rules: crate::into_domain(result.rules), + session_affinity: crate::into_domain(result.session_affinity), + session_affinity_attributes: crate::into_domain(result.session_affinity_attributes), + session_affinity_ttl: crate::into_domain(result.session_affinity_ttl), + steering_policy: crate::into_domain(result.steering_policy), + ttl: crate::into_domain(result.ttl), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3274,54 +2920,46 @@ pub mod load_balancer_monitor { let result = crate::bindings::pulumi::cloudflare::load_balancer_monitor::invoke( name, &crate::bindings::pulumi::cloudflare::load_balancer_monitor::Args { - account_id: &crate::clone::(args.account_id), - allow_insecure: &crate::clone::>(args.allow_insecure), - consecutive_down: &crate::clone::>(args.consecutive_down), - consecutive_up: &crate::clone::>(args.consecutive_up), - description: &crate::clone::>(args.description), - expected_body: &crate::clone::>(args.expected_body), - expected_codes: &crate::clone::>(args.expected_codes), - follow_redirects: &crate::clone::>(args.follow_redirects), - headers: &crate::clone::>>( - args.headers, - ), - interval: &crate::clone::>(args.interval), - method: &crate::clone::>(args.method), - path: &crate::clone::>(args.path), - port: &crate::clone::>(args.port), - probe_zone: &crate::clone::>(args.probe_zone), - retries: &crate::clone::>(args.retries), - timeout: &crate::clone::>(args.timeout), - type_: &crate::clone::>(args.type_), + account_id: args.account_id.get_inner(), + allow_insecure: args.allow_insecure.get_inner(), + consecutive_down: args.consecutive_down.get_inner(), + consecutive_up: args.consecutive_up.get_inner(), + description: args.description.get_inner(), + expected_body: args.expected_body.get_inner(), + expected_codes: args.expected_codes.get_inner(), + follow_redirects: args.follow_redirects.get_inner(), + headers: args.headers.get_inner(), + interval: args.interval.get_inner(), + method: args.method.get_inner(), + path: args.path.get_inner(), + port: args.port.get_inner(), + probe_zone: args.probe_zone.get_inner(), + retries: args.retries.get_inner(), + timeout: args.timeout.get_inner(), + type_: args.type_.get_inner(), }, ); LoadBalancerMonitorResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - allow_insecure: crate::random_to_domain_mapper::>(result.allow_insecure), - consecutive_down: crate::random_to_domain_mapper::>( - result.consecutive_down, - ), - consecutive_up: crate::random_to_domain_mapper::>(result.consecutive_up), - created_on: crate::random_to_domain_mapper::(result.created_on), - description: crate::random_to_domain_mapper::>(result.description), - expected_body: crate::random_to_domain_mapper::>(result.expected_body), - expected_codes: crate::random_to_domain_mapper::>(result.expected_codes), - follow_redirects: crate::random_to_domain_mapper::>( - result.follow_redirects, - ), - headers: crate::random_to_domain_mapper::< - Option>, - >(result.headers), - interval: crate::random_to_domain_mapper::>(result.interval), - method: crate::random_to_domain_mapper::(result.method), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - path: crate::random_to_domain_mapper::(result.path), - port: crate::random_to_domain_mapper::>(result.port), - probe_zone: crate::random_to_domain_mapper::>(result.probe_zone), - retries: crate::random_to_domain_mapper::>(result.retries), - timeout: crate::random_to_domain_mapper::>(result.timeout), - type_: crate::random_to_domain_mapper::>(result.type_), + account_id: crate::into_domain(result.account_id), + allow_insecure: crate::into_domain(result.allow_insecure), + consecutive_down: crate::into_domain(result.consecutive_down), + consecutive_up: crate::into_domain(result.consecutive_up), + created_on: crate::into_domain(result.created_on), + description: crate::into_domain(result.description), + expected_body: crate::into_domain(result.expected_body), + expected_codes: crate::into_domain(result.expected_codes), + follow_redirects: crate::into_domain(result.follow_redirects), + headers: crate::into_domain(result.headers), + interval: crate::into_domain(result.interval), + method: crate::into_domain(result.method), + modified_on: crate::into_domain(result.modified_on), + path: crate::into_domain(result.path), + port: crate::into_domain(result.port), + probe_zone: crate::into_domain(result.probe_zone), + retries: crate::into_domain(result.retries), + timeout: crate::into_domain(result.timeout), + type_: crate::into_domain(result.type_), } } } @@ -3370,50 +3008,38 @@ pub mod load_balancer_pool { let result = crate::bindings::pulumi::cloudflare::load_balancer_pool::invoke( name, &crate::bindings::pulumi::cloudflare::load_balancer_pool::Args { - account_id: &crate::clone::(args.account_id), - check_regions: &crate::clone::>>(args.check_regions), - description: &crate::clone::>(args.description), - enabled: &crate::clone::>(args.enabled), - latitude: &crate::clone::>(args.latitude), - load_sheddings: &crate::clone::< - Option>, - >(args.load_sheddings), - longitude: &crate::clone::>(args.longitude), - minimum_origins: &crate::clone::>(args.minimum_origins), - monitor: &crate::clone::>(args.monitor), - name: &crate::clone::(args.name), - notification_email: &crate::clone::>(args.notification_email), - origin_steerings: &crate::clone::< - Option>, - >(args.origin_steerings), - origins: &crate::clone::>(args.origins), + account_id: args.account_id.get_inner(), + check_regions: args.check_regions.get_inner(), + description: args.description.get_inner(), + enabled: args.enabled.get_inner(), + latitude: args.latitude.get_inner(), + load_sheddings: args.load_sheddings.get_inner(), + longitude: args.longitude.get_inner(), + minimum_origins: args.minimum_origins.get_inner(), + monitor: args.monitor.get_inner(), + name: args.name.get_inner(), + notification_email: args.notification_email.get_inner(), + origin_steerings: args.origin_steerings.get_inner(), + origins: args.origins.get_inner(), }, ); LoadBalancerPoolResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - check_regions: crate::random_to_domain_mapper::>(result.check_regions), - created_on: crate::random_to_domain_mapper::(result.created_on), - description: crate::random_to_domain_mapper::>(result.description), - enabled: crate::random_to_domain_mapper::>(result.enabled), - latitude: crate::random_to_domain_mapper::>(result.latitude), - load_sheddings: crate::random_to_domain_mapper::< - Option>, - >(result.load_sheddings), - longitude: crate::random_to_domain_mapper::>(result.longitude), - minimum_origins: crate::random_to_domain_mapper::>(result.minimum_origins), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - monitor: crate::random_to_domain_mapper::>(result.monitor), - name: crate::random_to_domain_mapper::(result.name), - notification_email: crate::random_to_domain_mapper::>( - result.notification_email, - ), - origin_steerings: crate::random_to_domain_mapper::< - Option>, - >(result.origin_steerings), - origins: crate::random_to_domain_mapper::>( - result.origins, - ), + account_id: crate::into_domain(result.account_id), + check_regions: crate::into_domain(result.check_regions), + created_on: crate::into_domain(result.created_on), + description: crate::into_domain(result.description), + enabled: crate::into_domain(result.enabled), + latitude: crate::into_domain(result.latitude), + load_sheddings: crate::into_domain(result.load_sheddings), + longitude: crate::into_domain(result.longitude), + minimum_origins: crate::into_domain(result.minimum_origins), + modified_on: crate::into_domain(result.modified_on), + monitor: crate::into_domain(result.monitor), + name: crate::into_domain(result.name), + notification_email: crate::into_domain(result.notification_email), + origin_steerings: crate::into_domain(result.origin_steerings), + origins: crate::into_domain(result.origins), } } } @@ -3434,14 +3060,14 @@ pub mod logpull_retention { let result = crate::bindings::pulumi::cloudflare::logpull_retention::invoke( name, &crate::bindings::pulumi::cloudflare::logpull_retention::Args { - enabled: &crate::clone::(args.enabled), - zone_id: &crate::clone::(args.zone_id), + enabled: args.enabled.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); LogpullRetentionResult { - enabled: crate::random_to_domain_mapper::(result.enabled), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + enabled: crate::into_domain(result.enabled), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3488,56 +3114,40 @@ pub mod logpush_job { let result = crate::bindings::pulumi::cloudflare::logpush_job::invoke( name, &crate::bindings::pulumi::cloudflare::logpush_job::Args { - account_id: &crate::clone::>(args.account_id), - dataset: &crate::clone::(args.dataset), - destination_conf: &crate::clone::(args.destination_conf), - enabled: &crate::clone::>(args.enabled), - filter: &crate::clone::>(args.filter), - frequency: &crate::clone::>(args.frequency), - kind: &crate::clone::>(args.kind), - logpull_options: &crate::clone::>(args.logpull_options), - max_upload_bytes: &crate::clone::>(args.max_upload_bytes), - max_upload_interval_seconds: &crate::clone::>( - args.max_upload_interval_seconds, - ), - max_upload_records: &crate::clone::>(args.max_upload_records), - name: &crate::clone::>(args.name), - output_options: &crate::clone::>( - args.output_options, - ), - ownership_challenge: &crate::clone::>(args.ownership_challenge), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + dataset: args.dataset.get_inner(), + destination_conf: args.destination_conf.get_inner(), + enabled: args.enabled.get_inner(), + filter: args.filter.get_inner(), + frequency: args.frequency.get_inner(), + kind: args.kind.get_inner(), + logpull_options: args.logpull_options.get_inner(), + max_upload_bytes: args.max_upload_bytes.get_inner(), + max_upload_interval_seconds: args.max_upload_interval_seconds.get_inner(), + max_upload_records: args.max_upload_records.get_inner(), + name: args.name.get_inner(), + output_options: args.output_options.get_inner(), + ownership_challenge: args.ownership_challenge.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); LogpushJobResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - dataset: crate::random_to_domain_mapper::(result.dataset), - destination_conf: crate::random_to_domain_mapper::(result.destination_conf), - enabled: crate::random_to_domain_mapper::>(result.enabled), - filter: crate::random_to_domain_mapper::>(result.filter), - frequency: crate::random_to_domain_mapper::>(result.frequency), - kind: crate::random_to_domain_mapper::>(result.kind), - logpull_options: crate::random_to_domain_mapper::>( - result.logpull_options, - ), - max_upload_bytes: crate::random_to_domain_mapper::>( - result.max_upload_bytes, - ), - max_upload_interval_seconds: crate::random_to_domain_mapper::>( - result.max_upload_interval_seconds, - ), - max_upload_records: crate::random_to_domain_mapper::>( - result.max_upload_records, - ), - name: crate::random_to_domain_mapper::>(result.name), - output_options: crate::random_to_domain_mapper::< - Option, - >(result.output_options), - ownership_challenge: crate::random_to_domain_mapper::>( - result.ownership_challenge, - ), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + dataset: crate::into_domain(result.dataset), + destination_conf: crate::into_domain(result.destination_conf), + enabled: crate::into_domain(result.enabled), + filter: crate::into_domain(result.filter), + frequency: crate::into_domain(result.frequency), + kind: crate::into_domain(result.kind), + logpull_options: crate::into_domain(result.logpull_options), + max_upload_bytes: crate::into_domain(result.max_upload_bytes), + max_upload_interval_seconds: crate::into_domain(result.max_upload_interval_seconds), + max_upload_records: crate::into_domain(result.max_upload_records), + name: crate::into_domain(result.name), + output_options: crate::into_domain(result.output_options), + ownership_challenge: crate::into_domain(result.ownership_challenge), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3564,19 +3174,17 @@ pub mod logpush_ownership_challenge { let result = crate::bindings::pulumi::cloudflare::logpush_ownership_challenge::invoke( name, &crate::bindings::pulumi::cloudflare::logpush_ownership_challenge::Args { - account_id: &crate::clone::>(args.account_id), - destination_conf: &crate::clone::(args.destination_conf), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + destination_conf: args.destination_conf.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); LogpushOwnershipChallengeResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - destination_conf: crate::random_to_domain_mapper::(result.destination_conf), - ownership_challenge_filename: crate::random_to_domain_mapper::( - result.ownership_challenge_filename, - ), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + destination_conf: crate::into_domain(result.destination_conf), + ownership_challenge_filename: crate::into_domain(result.ownership_challenge_filename), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3604,22 +3212,18 @@ pub mod magic_firewall_ruleset { let result = crate::bindings::pulumi::cloudflare::magic_firewall_ruleset::invoke( name, &crate::bindings::pulumi::cloudflare::magic_firewall_ruleset::Args { - account_id: &crate::clone::(args.account_id), - description: &crate::clone::>(args.description), - name: &crate::clone::(args.name), - rules: &crate::clone::>>>( - args.rules, - ), + account_id: args.account_id.get_inner(), + description: args.description.get_inner(), + name: args.name.get_inner(), + rules: args.rules.get_inner(), }, ); MagicFirewallRulesetResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - description: crate::random_to_domain_mapper::>(result.description), - name: crate::random_to_domain_mapper::(result.name), - rules: crate::random_to_domain_mapper::< - Option>>, - >(result.rules), + account_id: crate::into_domain(result.account_id), + description: crate::into_domain(result.description), + name: crate::into_domain(result.name), + rules: crate::into_domain(result.rules), } } } @@ -3648,24 +3252,16 @@ pub mod managed_headers { let result = crate::bindings::pulumi::cloudflare::managed_headers::invoke( name, &crate::bindings::pulumi::cloudflare::managed_headers::Args { - managed_request_headers: &crate::clone::< - Option>, - >(args.managed_request_headers), - managed_response_headers: &crate::clone::< - Option>, - >(args.managed_response_headers), - zone_id: &crate::clone::(args.zone_id), + managed_request_headers: args.managed_request_headers.get_inner(), + managed_response_headers: args.managed_response_headers.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ManagedHeadersResult { - managed_request_headers: crate::random_to_domain_mapper::< - Option>, - >(result.managed_request_headers), - managed_response_headers: crate::random_to_domain_mapper::< - Option>, - >(result.managed_response_headers), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + managed_request_headers: crate::into_domain(result.managed_request_headers), + managed_response_headers: crate::into_domain(result.managed_response_headers), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3697,25 +3293,25 @@ pub mod mtls_certificate { let result = crate::bindings::pulumi::cloudflare::mtls_certificate::invoke( name, &crate::bindings::pulumi::cloudflare::mtls_certificate::Args { - account_id: &crate::clone::(args.account_id), - ca: &crate::clone::(args.ca), - certificates: &crate::clone::(args.certificates), - name: &crate::clone::>(args.name), - private_key: &crate::clone::>(args.private_key), + account_id: args.account_id.get_inner(), + ca: args.ca.get_inner(), + certificates: args.certificates.get_inner(), + name: args.name.get_inner(), + private_key: args.private_key.get_inner(), }, ); MtlsCertificateResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - ca: crate::random_to_domain_mapper::(result.ca), - certificates: crate::random_to_domain_mapper::(result.certificates), - expires_on: crate::random_to_domain_mapper::(result.expires_on), - issuer: crate::random_to_domain_mapper::(result.issuer), - name: crate::random_to_domain_mapper::>(result.name), - private_key: crate::random_to_domain_mapper::>(result.private_key), - serial_number: crate::random_to_domain_mapper::(result.serial_number), - signature: crate::random_to_domain_mapper::(result.signature), - uploaded_on: crate::random_to_domain_mapper::(result.uploaded_on), + account_id: crate::into_domain(result.account_id), + ca: crate::into_domain(result.ca), + certificates: crate::into_domain(result.certificates), + expires_on: crate::into_domain(result.expires_on), + issuer: crate::into_domain(result.issuer), + name: crate::into_domain(result.name), + private_key: crate::into_domain(result.private_key), + serial_number: crate::into_domain(result.serial_number), + signature: crate::into_domain(result.signature), + uploaded_on: crate::into_domain(result.uploaded_on), } } } @@ -3765,46 +3361,30 @@ pub mod notification_policy { let result = crate::bindings::pulumi::cloudflare::notification_policy::invoke( name, &crate::bindings::pulumi::cloudflare::notification_policy::Args { - account_id: &crate::clone::(args.account_id), - alert_type: &crate::clone::(args.alert_type), - description: &crate::clone::>(args.description), - email_integrations: &crate::clone::< - Option>, - >(args.email_integrations), - enabled: &crate::clone::(args.enabled), - filters: &crate::clone::>( - args.filters, - ), - name: &crate::clone::(args.name), - pagerduty_integrations: &crate::clone::< - Option>, - >(args.pagerduty_integrations), - webhooks_integrations: &crate::clone::< - Option>, - >(args.webhooks_integrations), + account_id: args.account_id.get_inner(), + alert_type: args.alert_type.get_inner(), + description: args.description.get_inner(), + email_integrations: args.email_integrations.get_inner(), + enabled: args.enabled.get_inner(), + filters: args.filters.get_inner(), + name: args.name.get_inner(), + pagerduty_integrations: args.pagerduty_integrations.get_inner(), + webhooks_integrations: args.webhooks_integrations.get_inner(), }, ); NotificationPolicyResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - alert_type: crate::random_to_domain_mapper::(result.alert_type), - created: crate::random_to_domain_mapper::(result.created), - description: crate::random_to_domain_mapper::>(result.description), - email_integrations: crate::random_to_domain_mapper::< - Option>, - >(result.email_integrations), - enabled: crate::random_to_domain_mapper::(result.enabled), - filters: crate::random_to_domain_mapper::< - Option, - >(result.filters), - modified: crate::random_to_domain_mapper::(result.modified), - name: crate::random_to_domain_mapper::(result.name), - pagerduty_integrations: crate::random_to_domain_mapper::< - Option>, - >(result.pagerduty_integrations), - webhooks_integrations: crate::random_to_domain_mapper::< - Option>, - >(result.webhooks_integrations), + account_id: crate::into_domain(result.account_id), + alert_type: crate::into_domain(result.alert_type), + created: crate::into_domain(result.created), + description: crate::into_domain(result.description), + email_integrations: crate::into_domain(result.email_integrations), + enabled: crate::into_domain(result.enabled), + filters: crate::into_domain(result.filters), + modified: crate::into_domain(result.modified), + name: crate::into_domain(result.name), + pagerduty_integrations: crate::into_domain(result.pagerduty_integrations), + webhooks_integrations: crate::into_domain(result.webhooks_integrations), } } } @@ -3836,22 +3416,22 @@ pub mod notification_policy_webhooks { let result = crate::bindings::pulumi::cloudflare::notification_policy_webhooks::invoke( name, &crate::bindings::pulumi::cloudflare::notification_policy_webhooks::Args { - account_id: &crate::clone::(args.account_id), - name: &crate::clone::(args.name), - secret: &crate::clone::>(args.secret), - url: &crate::clone::>(args.url), + account_id: args.account_id.get_inner(), + name: args.name.get_inner(), + secret: args.secret.get_inner(), + url: args.url.get_inner(), }, ); NotificationPolicyWebhooksResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - created_at: crate::random_to_domain_mapper::(result.created_at), - last_failure: crate::random_to_domain_mapper::(result.last_failure), - last_success: crate::random_to_domain_mapper::(result.last_success), - name: crate::random_to_domain_mapper::(result.name), - secret: crate::random_to_domain_mapper::>(result.secret), - type_: crate::random_to_domain_mapper::(result.type_), - url: crate::random_to_domain_mapper::>(result.url), + account_id: crate::into_domain(result.account_id), + created_at: crate::into_domain(result.created_at), + last_failure: crate::into_domain(result.last_failure), + last_success: crate::into_domain(result.last_success), + name: crate::into_domain(result.name), + secret: crate::into_domain(result.secret), + type_: crate::into_domain(result.type_), + url: crate::into_domain(result.url), } } } @@ -3879,18 +3459,18 @@ pub mod observatory_scheduled_test { let result = crate::bindings::pulumi::cloudflare::observatory_scheduled_test::invoke( name, &crate::bindings::pulumi::cloudflare::observatory_scheduled_test::Args { - frequency: &crate::clone::(args.frequency), - region: &crate::clone::(args.region), - url: &crate::clone::(args.url), - zone_id: &crate::clone::(args.zone_id), + frequency: args.frequency.get_inner(), + region: args.region.get_inner(), + url: args.url.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ObservatoryScheduledTestResult { - frequency: crate::random_to_domain_mapper::(result.frequency), - region: crate::random_to_domain_mapper::(result.region), - url: crate::random_to_domain_mapper::(result.url), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + frequency: crate::into_domain(result.frequency), + region: crate::into_domain(result.region), + url: crate::into_domain(result.url), + zone_id: crate::into_domain(result.zone_id), } } } @@ -3922,24 +3502,22 @@ pub mod origin_ca_certificate { let result = crate::bindings::pulumi::cloudflare::origin_ca_certificate::invoke( name, &crate::bindings::pulumi::cloudflare::origin_ca_certificate::Args { - csr: &crate::clone::(args.csr), - hostnames: &crate::clone::>(args.hostnames), - min_days_for_renewal: &crate::clone::>(args.min_days_for_renewal), - request_type: &crate::clone::(args.request_type), - requested_validity: &crate::clone::>(args.requested_validity), + csr: args.csr.get_inner(), + hostnames: args.hostnames.get_inner(), + min_days_for_renewal: args.min_days_for_renewal.get_inner(), + request_type: args.request_type.get_inner(), + requested_validity: args.requested_validity.get_inner(), }, ); OriginCaCertificateResult { - certificate: crate::random_to_domain_mapper::(result.certificate), - csr: crate::random_to_domain_mapper::(result.csr), - expires_on: crate::random_to_domain_mapper::(result.expires_on), - hostnames: crate::random_to_domain_mapper::>(result.hostnames), - min_days_for_renewal: crate::random_to_domain_mapper::>( - result.min_days_for_renewal, - ), - request_type: crate::random_to_domain_mapper::(result.request_type), - requested_validity: crate::random_to_domain_mapper::(result.requested_validity), + certificate: crate::into_domain(result.certificate), + csr: crate::into_domain(result.csr), + expires_on: crate::into_domain(result.expires_on), + hostnames: crate::into_domain(result.hostnames), + min_days_for_renewal: crate::into_domain(result.min_days_for_renewal), + request_type: crate::into_domain(result.request_type), + requested_validity: crate::into_domain(result.requested_validity), } } } @@ -3966,22 +3544,20 @@ pub mod page_rule { let result = crate::bindings::pulumi::cloudflare::page_rule::invoke( name, &crate::bindings::pulumi::cloudflare::page_rule::Args { - actions: &crate::clone::(args.actions), - priority: &crate::clone::>(args.priority), - status: &crate::clone::>(args.status), - target: &crate::clone::(args.target), - zone_id: &crate::clone::(args.zone_id), + actions: args.actions.get_inner(), + priority: args.priority.get_inner(), + status: args.status.get_inner(), + target: args.target.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); PageRuleResult { - actions: crate::random_to_domain_mapper::( - result.actions, - ), - priority: crate::random_to_domain_mapper::>(result.priority), - status: crate::random_to_domain_mapper::>(result.status), - target: crate::random_to_domain_mapper::(result.target), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + actions: crate::into_domain(result.actions), + priority: crate::into_domain(result.priority), + status: crate::into_domain(result.status), + target: crate::into_domain(result.target), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4005,17 +3581,17 @@ pub mod pages_domain { let result = crate::bindings::pulumi::cloudflare::pages_domain::invoke( name, &crate::bindings::pulumi::cloudflare::pages_domain::Args { - account_id: &crate::clone::(args.account_id), - domain: &crate::clone::(args.domain), - project_name: &crate::clone::(args.project_name), + account_id: args.account_id.get_inner(), + domain: args.domain.get_inner(), + project_name: args.project_name.get_inner(), }, ); PagesDomainResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - domain: crate::random_to_domain_mapper::(result.domain), - project_name: crate::random_to_domain_mapper::(result.project_name), - status: crate::random_to_domain_mapper::(result.status), + account_id: crate::into_domain(result.account_id), + domain: crate::into_domain(result.domain), + project_name: crate::into_domain(result.project_name), + status: crate::into_domain(result.status), } } } @@ -4049,35 +3625,25 @@ pub mod pages_project { let result = crate::bindings::pulumi::cloudflare::pages_project::invoke( name, &crate::bindings::pulumi::cloudflare::pages_project::Args { - account_id: &crate::clone::(args.account_id), - build_config: &crate::clone::>( - args.build_config, - ), - deployment_configs: &crate::clone::< - Option, - >(args.deployment_configs), - name: &crate::clone::(args.name), - production_branch: &crate::clone::(args.production_branch), - source: &crate::clone::>(args.source), + account_id: args.account_id.get_inner(), + build_config: args.build_config.get_inner(), + deployment_configs: args.deployment_configs.get_inner(), + name: args.name.get_inner(), + production_branch: args.production_branch.get_inner(), + source: args.source.get_inner(), }, ); PagesProjectResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - build_config: crate::random_to_domain_mapper::< - Option, - >(result.build_config), - created_on: crate::random_to_domain_mapper::(result.created_on), - deployment_configs: crate::random_to_domain_mapper::< - crate::types::PagesProjectDeploymentConfigs, - >(result.deployment_configs), - domains: crate::random_to_domain_mapper::>(result.domains), - name: crate::random_to_domain_mapper::(result.name), - production_branch: crate::random_to_domain_mapper::(result.production_branch), - source: crate::random_to_domain_mapper::>( - result.source, - ), - subdomain: crate::random_to_domain_mapper::(result.subdomain), + account_id: crate::into_domain(result.account_id), + build_config: crate::into_domain(result.build_config), + created_on: crate::into_domain(result.created_on), + deployment_configs: crate::into_domain(result.deployment_configs), + domains: crate::into_domain(result.domains), + name: crate::into_domain(result.name), + production_branch: crate::into_domain(result.production_branch), + source: crate::into_domain(result.source), + subdomain: crate::into_domain(result.subdomain), } } } @@ -4098,14 +3664,14 @@ pub mod queue { let result = crate::bindings::pulumi::cloudflare::queue::invoke( name, &crate::bindings::pulumi::cloudflare::queue::Args { - account_id: &crate::clone::(args.account_id), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + name: args.name.get_inner(), }, ); QueueResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - name: crate::random_to_domain_mapper::(result.name), + account_id: crate::into_domain(result.account_id), + name: crate::into_domain(result.name), } } } @@ -4128,16 +3694,16 @@ pub mod r2_bucket { let result = crate::bindings::pulumi::cloudflare::r2_bucket::invoke( name, &crate::bindings::pulumi::cloudflare::r2_bucket::Args { - account_id: &crate::clone::(args.account_id), - location: &crate::clone::>(args.location), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + location: args.location.get_inner(), + name: args.name.get_inner(), }, ); R2BucketResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - location: crate::random_to_domain_mapper::(result.location), - name: crate::random_to_domain_mapper::(result.name), + account_id: crate::into_domain(result.account_id), + location: crate::into_domain(result.location), + name: crate::into_domain(result.name), } } } @@ -4172,34 +3738,28 @@ pub mod rate_limit { let result = crate::bindings::pulumi::cloudflare::rate_limit::invoke( name, &crate::bindings::pulumi::cloudflare::rate_limit::Args { - action: &crate::clone::(args.action), - bypass_url_patterns: &crate::clone::>>(args.bypass_url_patterns), - correlate: &crate::clone::>( - args.correlate, - ), - description: &crate::clone::>(args.description), - disabled: &crate::clone::>(args.disabled), - match_: &crate::clone::>(args.match_), - period: &crate::clone::(args.period), - threshold: &crate::clone::(args.threshold), - zone_id: &crate::clone::(args.zone_id), + action: args.action.get_inner(), + bypass_url_patterns: args.bypass_url_patterns.get_inner(), + correlate: args.correlate.get_inner(), + description: args.description.get_inner(), + disabled: args.disabled.get_inner(), + match_: args.match_.get_inner(), + period: args.period.get_inner(), + threshold: args.threshold.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); RateLimitResult { - action: crate::random_to_domain_mapper::(result.action), - bypass_url_patterns: crate::random_to_domain_mapper::>>( - result.bypass_url_patterns, - ), - correlate: crate::random_to_domain_mapper::>( - result.correlate, - ), - description: crate::random_to_domain_mapper::>(result.description), - disabled: crate::random_to_domain_mapper::>(result.disabled), - match_: crate::random_to_domain_mapper::(result.match_), - period: crate::random_to_domain_mapper::(result.period), - threshold: crate::random_to_domain_mapper::(result.threshold), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + action: crate::into_domain(result.action), + bypass_url_patterns: crate::into_domain(result.bypass_url_patterns), + correlate: crate::into_domain(result.correlate), + description: crate::into_domain(result.description), + disabled: crate::into_domain(result.disabled), + match_: crate::into_domain(result.match_), + period: crate::into_domain(result.period), + threshold: crate::into_domain(result.threshold), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4243,39 +3803,37 @@ pub mod record { let result = crate::bindings::pulumi::cloudflare::record::invoke( name, &crate::bindings::pulumi::cloudflare::record::Args { - allow_overwrite: &crate::clone::>(args.allow_overwrite), - comment: &crate::clone::>(args.comment), - data: &crate::clone::>(args.data), - name: &crate::clone::(args.name), - priority: &crate::clone::>(args.priority), - proxied: &crate::clone::>(args.proxied), - tags: &crate::clone::>>(args.tags), - ttl: &crate::clone::>(args.ttl), - type_: &crate::clone::(args.type_), - value: &crate::clone::>(args.value), - zone_id: &crate::clone::(args.zone_id), + allow_overwrite: args.allow_overwrite.get_inner(), + comment: args.comment.get_inner(), + data: args.data.get_inner(), + name: args.name.get_inner(), + priority: args.priority.get_inner(), + proxied: args.proxied.get_inner(), + tags: args.tags.get_inner(), + ttl: args.ttl.get_inner(), + type_: args.type_.get_inner(), + value: args.value.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); RecordResult { - allow_overwrite: crate::random_to_domain_mapper::>(result.allow_overwrite), - comment: crate::random_to_domain_mapper::>(result.comment), - created_on: crate::random_to_domain_mapper::(result.created_on), - data: crate::random_to_domain_mapper::>(result.data), - hostname: crate::random_to_domain_mapper::(result.hostname), - metadata: crate::random_to_domain_mapper::>( - result.metadata, - ), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - name: crate::random_to_domain_mapper::(result.name), - priority: crate::random_to_domain_mapper::>(result.priority), - proxiable: crate::random_to_domain_mapper::(result.proxiable), - proxied: crate::random_to_domain_mapper::>(result.proxied), - tags: crate::random_to_domain_mapper::>>(result.tags), - ttl: crate::random_to_domain_mapper::(result.ttl), - type_: crate::random_to_domain_mapper::(result.type_), - value: crate::random_to_domain_mapper::(result.value), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + allow_overwrite: crate::into_domain(result.allow_overwrite), + comment: crate::into_domain(result.comment), + created_on: crate::into_domain(result.created_on), + data: crate::into_domain(result.data), + hostname: crate::into_domain(result.hostname), + metadata: crate::into_domain(result.metadata), + modified_on: crate::into_domain(result.modified_on), + name: crate::into_domain(result.name), + priority: crate::into_domain(result.priority), + proxiable: crate::into_domain(result.proxiable), + proxied: crate::into_domain(result.proxied), + tags: crate::into_domain(result.tags), + ttl: crate::into_domain(result.ttl), + type_: crate::into_domain(result.type_), + value: crate::into_domain(result.value), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4299,17 +3857,17 @@ pub mod regional_hostname { let result = crate::bindings::pulumi::cloudflare::regional_hostname::invoke( name, &crate::bindings::pulumi::cloudflare::regional_hostname::Args { - hostname: &crate::clone::(args.hostname), - region_key: &crate::clone::(args.region_key), - zone_id: &crate::clone::(args.zone_id), + hostname: args.hostname.get_inner(), + region_key: args.region_key.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); RegionalHostnameResult { - created_on: crate::random_to_domain_mapper::(result.created_on), - hostname: crate::random_to_domain_mapper::(result.hostname), - region_key: crate::random_to_domain_mapper::(result.region_key), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + created_on: crate::into_domain(result.created_on), + hostname: crate::into_domain(result.hostname), + region_key: crate::into_domain(result.region_key), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4333,14 +3891,14 @@ pub mod regional_tiered_cache { let result = crate::bindings::pulumi::cloudflare::regional_tiered_cache::invoke( name, &crate::bindings::pulumi::cloudflare::regional_tiered_cache::Args { - value: &crate::clone::(args.value), - zone_id: &crate::clone::(args.zone_id), + value: args.value.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); RegionalTieredCacheResult { - value: crate::random_to_domain_mapper::(result.value), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + value: crate::into_domain(result.value), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4371,26 +3929,24 @@ pub mod ruleset { let result = crate::bindings::pulumi::cloudflare::ruleset::invoke( name, &crate::bindings::pulumi::cloudflare::ruleset::Args { - account_id: &crate::clone::>(args.account_id), - description: &crate::clone::>(args.description), - kind: &crate::clone::(args.kind), - name: &crate::clone::(args.name), - phase: &crate::clone::(args.phase), - rules: &crate::clone::>>(args.rules), - zone_id: &crate::clone::>(args.zone_id), + account_id: args.account_id.get_inner(), + description: args.description.get_inner(), + kind: args.kind.get_inner(), + name: args.name.get_inner(), + phase: args.phase.get_inner(), + rules: args.rules.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); RulesetResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - description: crate::random_to_domain_mapper::(result.description), - kind: crate::random_to_domain_mapper::(result.kind), - name: crate::random_to_domain_mapper::(result.name), - phase: crate::random_to_domain_mapper::(result.phase), - rules: crate::random_to_domain_mapper::>>( - result.rules, - ), - zone_id: crate::random_to_domain_mapper::>(result.zone_id), + account_id: crate::into_domain(result.account_id), + description: crate::into_domain(result.description), + kind: crate::into_domain(result.kind), + name: crate::into_domain(result.name), + phase: crate::into_domain(result.phase), + rules: crate::into_domain(result.rules), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4440,50 +3996,36 @@ pub mod spectrum_application { let result = crate::bindings::pulumi::cloudflare::spectrum_application::invoke( name, &crate::bindings::pulumi::cloudflare::spectrum_application::Args { - argo_smart_routing: &crate::clone::>(args.argo_smart_routing), - dns: &crate::clone::(args.dns), - edge_ips: &crate::clone::>( - args.edge_ips, - ), - ip_firewall: &crate::clone::>(args.ip_firewall), - origin_directs: &crate::clone::>>(args.origin_directs), - origin_dns: &crate::clone::>( - args.origin_dns, - ), - origin_port: &crate::clone::>(args.origin_port), - origin_port_range: &crate::clone::< - Option, - >(args.origin_port_range), - protocol: &crate::clone::(args.protocol), - proxy_protocol: &crate::clone::>(args.proxy_protocol), - tls: &crate::clone::>(args.tls), - traffic_type: &crate::clone::>(args.traffic_type), - zone_id: &crate::clone::(args.zone_id), + argo_smart_routing: args.argo_smart_routing.get_inner(), + dns: args.dns.get_inner(), + edge_ips: args.edge_ips.get_inner(), + ip_firewall: args.ip_firewall.get_inner(), + origin_directs: args.origin_directs.get_inner(), + origin_dns: args.origin_dns.get_inner(), + origin_port: args.origin_port.get_inner(), + origin_port_range: args.origin_port_range.get_inner(), + protocol: args.protocol.get_inner(), + proxy_protocol: args.proxy_protocol.get_inner(), + tls: args.tls.get_inner(), + traffic_type: args.traffic_type.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); SpectrumApplicationResult { - argo_smart_routing: crate::random_to_domain_mapper::(result.argo_smart_routing), - dns: crate::random_to_domain_mapper::(result.dns), - edge_ips: crate::random_to_domain_mapper::( - result.edge_ips, - ), - ip_firewall: crate::random_to_domain_mapper::(result.ip_firewall), - origin_directs: crate::random_to_domain_mapper::>>( - result.origin_directs, - ), - origin_dns: crate::random_to_domain_mapper::< - Option, - >(result.origin_dns), - origin_port: crate::random_to_domain_mapper::>(result.origin_port), - origin_port_range: crate::random_to_domain_mapper::< - Option, - >(result.origin_port_range), - protocol: crate::random_to_domain_mapper::(result.protocol), - proxy_protocol: crate::random_to_domain_mapper::(result.proxy_protocol), - tls: crate::random_to_domain_mapper::(result.tls), - traffic_type: crate::random_to_domain_mapper::(result.traffic_type), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + argo_smart_routing: crate::into_domain(result.argo_smart_routing), + dns: crate::into_domain(result.dns), + edge_ips: crate::into_domain(result.edge_ips), + ip_firewall: crate::into_domain(result.ip_firewall), + origin_directs: crate::into_domain(result.origin_directs), + origin_dns: crate::into_domain(result.origin_dns), + origin_port: crate::into_domain(result.origin_port), + origin_port_range: crate::into_domain(result.origin_port_range), + protocol: crate::into_domain(result.protocol), + proxy_protocol: crate::into_domain(result.proxy_protocol), + tls: crate::into_domain(result.tls), + traffic_type: crate::into_domain(result.traffic_type), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4508,20 +4050,18 @@ pub mod split_tunnel { let result = crate::bindings::pulumi::cloudflare::split_tunnel::invoke( name, &crate::bindings::pulumi::cloudflare::split_tunnel::Args { - account_id: &crate::clone::(args.account_id), - mode: &crate::clone::(args.mode), - policy_id: &crate::clone::>(args.policy_id), - tunnels: &crate::clone::>(args.tunnels), + account_id: args.account_id.get_inner(), + mode: args.mode.get_inner(), + policy_id: args.policy_id.get_inner(), + tunnels: args.tunnels.get_inner(), }, ); SplitTunnelResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - mode: crate::random_to_domain_mapper::(result.mode), - policy_id: crate::random_to_domain_mapper::>(result.policy_id), - tunnels: crate::random_to_domain_mapper::>( - result.tunnels, - ), + account_id: crate::into_domain(result.account_id), + mode: crate::into_domain(result.mode), + policy_id: crate::into_domain(result.policy_id), + tunnels: crate::into_domain(result.tunnels), } } } @@ -4554,28 +4094,26 @@ pub mod static_route { let result = crate::bindings::pulumi::cloudflare::static_route::invoke( name, &crate::bindings::pulumi::cloudflare::static_route::Args { - account_id: &crate::clone::>(args.account_id), - colo_names: &crate::clone::>>(args.colo_names), - colo_regions: &crate::clone::>>(args.colo_regions), - description: &crate::clone::>(args.description), - nexthop: &crate::clone::(args.nexthop), - prefix: &crate::clone::(args.prefix), - priority: &crate::clone::(args.priority), - weight: &crate::clone::>(args.weight), + account_id: args.account_id.get_inner(), + colo_names: args.colo_names.get_inner(), + colo_regions: args.colo_regions.get_inner(), + description: args.description.get_inner(), + nexthop: args.nexthop.get_inner(), + prefix: args.prefix.get_inner(), + priority: args.priority.get_inner(), + weight: args.weight.get_inner(), }, ); StaticRouteResult { - account_id: crate::random_to_domain_mapper::>(result.account_id), - colo_names: crate::random_to_domain_mapper::>>(result.colo_names), - colo_regions: crate::random_to_domain_mapper::>>( - result.colo_regions, - ), - description: crate::random_to_domain_mapper::>(result.description), - nexthop: crate::random_to_domain_mapper::(result.nexthop), - prefix: crate::random_to_domain_mapper::(result.prefix), - priority: crate::random_to_domain_mapper::(result.priority), - weight: crate::random_to_domain_mapper::>(result.weight), + account_id: crate::into_domain(result.account_id), + colo_names: crate::into_domain(result.colo_names), + colo_regions: crate::into_domain(result.colo_regions), + description: crate::into_domain(result.description), + nexthop: crate::into_domain(result.nexthop), + prefix: crate::into_domain(result.prefix), + priority: crate::into_domain(result.priority), + weight: crate::into_domain(result.weight), } } } @@ -4626,86 +4164,44 @@ pub mod teams_account { let result = crate::bindings::pulumi::cloudflare::teams_account::invoke( name, &crate::bindings::pulumi::cloudflare::teams_account::Args { - account_id: &crate::clone::(args.account_id), - activity_log_enabled: &crate::clone::>(args.activity_log_enabled), - antivirus: &crate::clone::>( - args.antivirus, - ), - block_page: &crate::clone::>( - args.block_page, - ), - body_scanning: &crate::clone::>( - args.body_scanning, - ), - extended_email_matching: &crate::clone::< - Option, - >(args.extended_email_matching), - fips: &crate::clone::>(args.fips), - logging: &crate::clone::>(args.logging), - non_identity_browser_isolation_enabled: &crate::clone::>( - args.non_identity_browser_isolation_enabled, - ), - payload_log: &crate::clone::>( - args.payload_log, - ), - protocol_detection_enabled: &crate::clone::>( - args.protocol_detection_enabled, - ), - proxy: &crate::clone::>(args.proxy), - ssh_session_log: &crate::clone::>( - args.ssh_session_log, - ), - tls_decrypt_enabled: &crate::clone::>(args.tls_decrypt_enabled), - url_browser_isolation_enabled: &crate::clone::>( - args.url_browser_isolation_enabled, - ), + account_id: args.account_id.get_inner(), + activity_log_enabled: args.activity_log_enabled.get_inner(), + antivirus: args.antivirus.get_inner(), + block_page: args.block_page.get_inner(), + body_scanning: args.body_scanning.get_inner(), + extended_email_matching: args.extended_email_matching.get_inner(), + fips: args.fips.get_inner(), + logging: args.logging.get_inner(), + non_identity_browser_isolation_enabled: args + .non_identity_browser_isolation_enabled + .get_inner(), + payload_log: args.payload_log.get_inner(), + protocol_detection_enabled: args.protocol_detection_enabled.get_inner(), + proxy: args.proxy.get_inner(), + ssh_session_log: args.ssh_session_log.get_inner(), + tls_decrypt_enabled: args.tls_decrypt_enabled.get_inner(), + url_browser_isolation_enabled: args.url_browser_isolation_enabled.get_inner(), }, ); TeamsAccountResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - activity_log_enabled: crate::random_to_domain_mapper::>( - result.activity_log_enabled, - ), - antivirus: crate::random_to_domain_mapper::>( - result.antivirus, - ), - block_page: crate::random_to_domain_mapper::>( - result.block_page, - ), - body_scanning: crate::random_to_domain_mapper::< - Option, - >(result.body_scanning), - extended_email_matching: crate::random_to_domain_mapper::< - Option, - >(result.extended_email_matching), - fips: crate::random_to_domain_mapper::>( - result.fips, - ), - logging: crate::random_to_domain_mapper::>( - result.logging, - ), - non_identity_browser_isolation_enabled: crate::random_to_domain_mapper::>( + account_id: crate::into_domain(result.account_id), + activity_log_enabled: crate::into_domain(result.activity_log_enabled), + antivirus: crate::into_domain(result.antivirus), + block_page: crate::into_domain(result.block_page), + body_scanning: crate::into_domain(result.body_scanning), + extended_email_matching: crate::into_domain(result.extended_email_matching), + fips: crate::into_domain(result.fips), + logging: crate::into_domain(result.logging), + non_identity_browser_isolation_enabled: crate::into_domain( result.non_identity_browser_isolation_enabled, ), - payload_log: crate::random_to_domain_mapper::< - Option, - >(result.payload_log), - protocol_detection_enabled: crate::random_to_domain_mapper::>( - result.protocol_detection_enabled, - ), - proxy: crate::random_to_domain_mapper::>( - result.proxy, - ), - ssh_session_log: crate::random_to_domain_mapper::< - Option, - >(result.ssh_session_log), - tls_decrypt_enabled: crate::random_to_domain_mapper::>( - result.tls_decrypt_enabled, - ), - url_browser_isolation_enabled: crate::random_to_domain_mapper::>( - result.url_browser_isolation_enabled, - ), + payload_log: crate::into_domain(result.payload_log), + protocol_detection_enabled: crate::into_domain(result.protocol_detection_enabled), + proxy: crate::into_domain(result.proxy), + ssh_session_log: crate::into_domain(result.ssh_session_log), + tls_decrypt_enabled: crate::into_domain(result.tls_decrypt_enabled), + url_browser_isolation_enabled: crate::into_domain(result.url_browser_isolation_enabled), } } } @@ -4732,20 +4228,20 @@ pub mod teams_list { let result = crate::bindings::pulumi::cloudflare::teams_list::invoke( name, &crate::bindings::pulumi::cloudflare::teams_list::Args { - account_id: &crate::clone::(args.account_id), - description: &crate::clone::>(args.description), - items: &crate::clone::>>(args.items), - name: &crate::clone::(args.name), - type_: &crate::clone::(args.type_), + account_id: args.account_id.get_inner(), + description: args.description.get_inner(), + items: args.items.get_inner(), + name: args.name.get_inner(), + type_: args.type_.get_inner(), }, ); TeamsListResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - description: crate::random_to_domain_mapper::>(result.description), - items: crate::random_to_domain_mapper::>>(result.items), - name: crate::random_to_domain_mapper::(result.name), - type_: crate::random_to_domain_mapper::(result.type_), + account_id: crate::into_domain(result.account_id), + description: crate::into_domain(result.description), + items: crate::into_domain(result.items), + name: crate::into_domain(result.name), + type_: crate::into_domain(result.type_), } } } @@ -4775,29 +4271,23 @@ pub mod teams_location { let result = crate::bindings::pulumi::cloudflare::teams_location::invoke( name, &crate::bindings::pulumi::cloudflare::teams_location::Args { - account_id: &crate::clone::(args.account_id), - client_default: &crate::clone::>(args.client_default), - name: &crate::clone::(args.name), - networks: &crate::clone::>>( - args.networks, - ), + account_id: args.account_id.get_inner(), + client_default: args.client_default.get_inner(), + name: args.name.get_inner(), + networks: args.networks.get_inner(), }, ); TeamsLocationResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - anonymized_logs_enabled: crate::random_to_domain_mapper::( - result.anonymized_logs_enabled, - ), - client_default: crate::random_to_domain_mapper::>(result.client_default), - doh_subdomain: crate::random_to_domain_mapper::(result.doh_subdomain), - ip: crate::random_to_domain_mapper::(result.ip), - ipv4_destination: crate::random_to_domain_mapper::(result.ipv4_destination), - name: crate::random_to_domain_mapper::(result.name), - networks: crate::random_to_domain_mapper::< - Option>, - >(result.networks), - policy_ids: crate::random_to_domain_mapper::>(result.policy_ids), + account_id: crate::into_domain(result.account_id), + anonymized_logs_enabled: crate::into_domain(result.anonymized_logs_enabled), + client_default: crate::into_domain(result.client_default), + doh_subdomain: crate::into_domain(result.doh_subdomain), + ip: crate::into_domain(result.ip), + ipv4_destination: crate::into_domain(result.ipv4_destination), + name: crate::into_domain(result.name), + networks: crate::into_domain(result.networks), + policy_ids: crate::into_domain(result.policy_ids), } } } @@ -4824,17 +4314,17 @@ pub mod teams_proxy_endpoint { let result = crate::bindings::pulumi::cloudflare::teams_proxy_endpoint::invoke( name, &crate::bindings::pulumi::cloudflare::teams_proxy_endpoint::Args { - account_id: &crate::clone::(args.account_id), - ips: &crate::clone::>(args.ips), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + ips: args.ips.get_inner(), + name: args.name.get_inner(), }, ); TeamsProxyEndpointResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - ips: crate::random_to_domain_mapper::>(result.ips), - name: crate::random_to_domain_mapper::(result.name), - subdomain: crate::random_to_domain_mapper::(result.subdomain), + account_id: crate::into_domain(result.account_id), + ips: crate::into_domain(result.ips), + name: crate::into_domain(result.name), + subdomain: crate::into_domain(result.subdomain), } } } @@ -4874,37 +4364,33 @@ pub mod teams_rule { let result = crate::bindings::pulumi::cloudflare::teams_rule::invoke( name, &crate::bindings::pulumi::cloudflare::teams_rule::Args { - account_id: &crate::clone::(args.account_id), - action: &crate::clone::(args.action), - description: &crate::clone::(args.description), - device_posture: &crate::clone::>(args.device_posture), - enabled: &crate::clone::>(args.enabled), - filters: &crate::clone::>>(args.filters), - identity: &crate::clone::>(args.identity), - name: &crate::clone::(args.name), - precedence: &crate::clone::(args.precedence), - rule_settings: &crate::clone::>( - args.rule_settings, - ), - traffic: &crate::clone::>(args.traffic), + account_id: args.account_id.get_inner(), + action: args.action.get_inner(), + description: args.description.get_inner(), + device_posture: args.device_posture.get_inner(), + enabled: args.enabled.get_inner(), + filters: args.filters.get_inner(), + identity: args.identity.get_inner(), + name: args.name.get_inner(), + precedence: args.precedence.get_inner(), + rule_settings: args.rule_settings.get_inner(), + traffic: args.traffic.get_inner(), }, ); TeamsRuleResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - action: crate::random_to_domain_mapper::(result.action), - description: crate::random_to_domain_mapper::(result.description), - device_posture: crate::random_to_domain_mapper::>(result.device_posture), - enabled: crate::random_to_domain_mapper::>(result.enabled), - filters: crate::random_to_domain_mapper::>>(result.filters), - identity: crate::random_to_domain_mapper::>(result.identity), - name: crate::random_to_domain_mapper::(result.name), - precedence: crate::random_to_domain_mapper::(result.precedence), - rule_settings: crate::random_to_domain_mapper::< - Option, - >(result.rule_settings), - traffic: crate::random_to_domain_mapper::>(result.traffic), - version: crate::random_to_domain_mapper::(result.version), + account_id: crate::into_domain(result.account_id), + action: crate::into_domain(result.action), + description: crate::into_domain(result.description), + device_posture: crate::into_domain(result.device_posture), + enabled: crate::into_domain(result.enabled), + filters: crate::into_domain(result.filters), + identity: crate::into_domain(result.identity), + name: crate::into_domain(result.name), + precedence: crate::into_domain(result.precedence), + rule_settings: crate::into_domain(result.rule_settings), + traffic: crate::into_domain(result.traffic), + version: crate::into_domain(result.version), } } } @@ -4925,14 +4411,14 @@ pub mod tiered_cache { let result = crate::bindings::pulumi::cloudflare::tiered_cache::invoke( name, &crate::bindings::pulumi::cloudflare::tiered_cache::Args { - cache_type: &crate::clone::(args.cache_type), - zone_id: &crate::clone::(args.zone_id), + cache_type: args.cache_type.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); TieredCacheResult { - cache_type: crate::random_to_domain_mapper::(result.cache_type), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + cache_type: crate::into_domain(result.cache_type), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4955,18 +4441,16 @@ pub mod total_tls { let result = crate::bindings::pulumi::cloudflare::total_tls::invoke( name, &crate::bindings::pulumi::cloudflare::total_tls::Args { - certificate_authority: &crate::clone::>(args.certificate_authority), - enabled: &crate::clone::(args.enabled), - zone_id: &crate::clone::(args.zone_id), + certificate_authority: args.certificate_authority.get_inner(), + enabled: args.enabled.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); TotalTlsResult { - certificate_authority: crate::random_to_domain_mapper::>( - result.certificate_authority, - ), - enabled: crate::random_to_domain_mapper::(result.enabled), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + certificate_authority: crate::into_domain(result.certificate_authority), + enabled: crate::into_domain(result.enabled), + zone_id: crate::into_domain(result.zone_id), } } } @@ -4993,20 +4477,20 @@ pub mod tunnel { let result = crate::bindings::pulumi::cloudflare::tunnel::invoke( name, &crate::bindings::pulumi::cloudflare::tunnel::Args { - account_id: &crate::clone::(args.account_id), - config_src: &crate::clone::>(args.config_src), - name: &crate::clone::(args.name), - secret: &crate::clone::(args.secret), + account_id: args.account_id.get_inner(), + config_src: args.config_src.get_inner(), + name: args.name.get_inner(), + secret: args.secret.get_inner(), }, ); TunnelResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - cname: crate::random_to_domain_mapper::(result.cname), - config_src: crate::random_to_domain_mapper::>(result.config_src), - name: crate::random_to_domain_mapper::(result.name), - secret: crate::random_to_domain_mapper::(result.secret), - tunnel_token: crate::random_to_domain_mapper::(result.tunnel_token), + account_id: crate::into_domain(result.account_id), + cname: crate::into_domain(result.cname), + config_src: crate::into_domain(result.config_src), + name: crate::into_domain(result.name), + secret: crate::into_domain(result.secret), + tunnel_token: crate::into_domain(result.tunnel_token), } } } @@ -5029,18 +4513,16 @@ pub mod tunnel_config { let result = crate::bindings::pulumi::cloudflare::tunnel_config::invoke( name, &crate::bindings::pulumi::cloudflare::tunnel_config::Args { - account_id: &crate::clone::(args.account_id), - config: &crate::clone::(args.config), - tunnel_id: &crate::clone::(args.tunnel_id), + account_id: args.account_id.get_inner(), + config: args.config.get_inner(), + tunnel_id: args.tunnel_id.get_inner(), }, ); TunnelConfigResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - config: crate::random_to_domain_mapper::( - result.config, - ), - tunnel_id: crate::random_to_domain_mapper::(result.tunnel_id), + account_id: crate::into_domain(result.account_id), + config: crate::into_domain(result.config), + tunnel_id: crate::into_domain(result.tunnel_id), } } } @@ -5067,22 +4549,20 @@ pub mod tunnel_route { let result = crate::bindings::pulumi::cloudflare::tunnel_route::invoke( name, &crate::bindings::pulumi::cloudflare::tunnel_route::Args { - account_id: &crate::clone::(args.account_id), - comment: &crate::clone::>(args.comment), - network: &crate::clone::(args.network), - tunnel_id: &crate::clone::(args.tunnel_id), - virtual_network_id: &crate::clone::>(args.virtual_network_id), + account_id: args.account_id.get_inner(), + comment: args.comment.get_inner(), + network: args.network.get_inner(), + tunnel_id: args.tunnel_id.get_inner(), + virtual_network_id: args.virtual_network_id.get_inner(), }, ); TunnelRouteResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - comment: crate::random_to_domain_mapper::>(result.comment), - network: crate::random_to_domain_mapper::(result.network), - tunnel_id: crate::random_to_domain_mapper::(result.tunnel_id), - virtual_network_id: crate::random_to_domain_mapper::>( - result.virtual_network_id, - ), + account_id: crate::into_domain(result.account_id), + comment: crate::into_domain(result.comment), + network: crate::into_domain(result.network), + tunnel_id: crate::into_domain(result.tunnel_id), + virtual_network_id: crate::into_domain(result.virtual_network_id), } } } @@ -5110,20 +4590,18 @@ pub mod tunnel_virtual_network { let result = crate::bindings::pulumi::cloudflare::tunnel_virtual_network::invoke( name, &crate::bindings::pulumi::cloudflare::tunnel_virtual_network::Args { - account_id: &crate::clone::(args.account_id), - comment: &crate::clone::>(args.comment), - is_default_network: &crate::clone::>(args.is_default_network), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + comment: args.comment.get_inner(), + is_default_network: args.is_default_network.get_inner(), + name: args.name.get_inner(), }, ); TunnelVirtualNetworkResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - comment: crate::random_to_domain_mapper::>(result.comment), - is_default_network: crate::random_to_domain_mapper::>( - result.is_default_network, - ), - name: crate::random_to_domain_mapper::(result.name), + account_id: crate::into_domain(result.account_id), + comment: crate::into_domain(result.comment), + is_default_network: crate::into_domain(result.is_default_network), + name: crate::into_domain(result.name), } } } @@ -5155,25 +4633,25 @@ pub mod turnstile_widget { let result = crate::bindings::pulumi::cloudflare::turnstile_widget::invoke( name, &crate::bindings::pulumi::cloudflare::turnstile_widget::Args { - account_id: &crate::clone::(args.account_id), - bot_fight_mode: &crate::clone::>(args.bot_fight_mode), - domains: &crate::clone::>(args.domains), - mode: &crate::clone::(args.mode), - name: &crate::clone::(args.name), - offlabel: &crate::clone::>(args.offlabel), - region: &crate::clone::>(args.region), + account_id: args.account_id.get_inner(), + bot_fight_mode: args.bot_fight_mode.get_inner(), + domains: args.domains.get_inner(), + mode: args.mode.get_inner(), + name: args.name.get_inner(), + offlabel: args.offlabel.get_inner(), + region: args.region.get_inner(), }, ); TurnstileWidgetResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - bot_fight_mode: crate::random_to_domain_mapper::(result.bot_fight_mode), - domains: crate::random_to_domain_mapper::>(result.domains), - mode: crate::random_to_domain_mapper::(result.mode), - name: crate::random_to_domain_mapper::(result.name), - offlabel: crate::random_to_domain_mapper::(result.offlabel), - region: crate::random_to_domain_mapper::(result.region), - secret: crate::random_to_domain_mapper::(result.secret), + account_id: crate::into_domain(result.account_id), + bot_fight_mode: crate::into_domain(result.bot_fight_mode), + domains: crate::into_domain(result.domains), + mode: crate::into_domain(result.mode), + name: crate::into_domain(result.name), + offlabel: crate::into_domain(result.offlabel), + region: crate::into_domain(result.region), + secret: crate::into_domain(result.secret), } } } @@ -5199,16 +4677,16 @@ pub mod url_normalization_settings { let result = crate::bindings::pulumi::cloudflare::url_normalization_settings::invoke( name, &crate::bindings::pulumi::cloudflare::url_normalization_settings::Args { - scope: &crate::clone::(args.scope), - type_: &crate::clone::(args.type_), - zone_id: &crate::clone::(args.zone_id), + scope: args.scope.get_inner(), + type_: args.type_.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); UrlNormalizationSettingsResult { - scope: crate::random_to_domain_mapper::(result.scope), - type_: crate::random_to_domain_mapper::(result.type_), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + scope: crate::into_domain(result.scope), + type_: crate::into_domain(result.type_), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5240,24 +4718,20 @@ pub mod user_agent_blocking_rule { let result = crate::bindings::pulumi::cloudflare::user_agent_blocking_rule::invoke( name, &crate::bindings::pulumi::cloudflare::user_agent_blocking_rule::Args { - configuration: &crate::clone::( - args.configuration, - ), - description: &crate::clone::(args.description), - mode: &crate::clone::(args.mode), - paused: &crate::clone::(args.paused), - zone_id: &crate::clone::(args.zone_id), + configuration: args.configuration.get_inner(), + description: args.description.get_inner(), + mode: args.mode.get_inner(), + paused: args.paused.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); UserAgentBlockingRuleResult { - configuration: crate::random_to_domain_mapper::< - crate::types::UserAgentBlockingRuleConfiguration, - >(result.configuration), - description: crate::random_to_domain_mapper::(result.description), - mode: crate::random_to_domain_mapper::(result.mode), - paused: crate::random_to_domain_mapper::(result.paused), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + configuration: crate::into_domain(result.configuration), + description: crate::into_domain(result.description), + mode: crate::into_domain(result.mode), + paused: crate::into_domain(result.paused), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5312,70 +4786,46 @@ pub mod waiting_room { let result = crate::bindings::pulumi::cloudflare::waiting_room::invoke( name, &crate::bindings::pulumi::cloudflare::waiting_room::Args { - additional_routes: &crate::clone::< - Option>, - >(args.additional_routes), - cookie_suffix: &crate::clone::>(args.cookie_suffix), - custom_page_html: &crate::clone::>(args.custom_page_html), - default_template_language: &crate::clone::>( - args.default_template_language, - ), - description: &crate::clone::>(args.description), - disable_session_renewal: &crate::clone::>( - args.disable_session_renewal, - ), - host: &crate::clone::(args.host), - json_response_enabled: &crate::clone::>(args.json_response_enabled), - name: &crate::clone::(args.name), - new_users_per_minute: &crate::clone::(args.new_users_per_minute), - path: &crate::clone::>(args.path), - queue_all: &crate::clone::>(args.queue_all), - queueing_method: &crate::clone::>(args.queueing_method), - queueing_status_code: &crate::clone::>(args.queueing_status_code), - session_duration: &crate::clone::>(args.session_duration), - suspended: &crate::clone::>(args.suspended), - total_active_users: &crate::clone::(args.total_active_users), - zone_id: &crate::clone::(args.zone_id), + additional_routes: args.additional_routes.get_inner(), + cookie_suffix: args.cookie_suffix.get_inner(), + custom_page_html: args.custom_page_html.get_inner(), + default_template_language: args.default_template_language.get_inner(), + description: args.description.get_inner(), + disable_session_renewal: args.disable_session_renewal.get_inner(), + host: args.host.get_inner(), + json_response_enabled: args.json_response_enabled.get_inner(), + name: args.name.get_inner(), + new_users_per_minute: args.new_users_per_minute.get_inner(), + path: args.path.get_inner(), + queue_all: args.queue_all.get_inner(), + queueing_method: args.queueing_method.get_inner(), + queueing_status_code: args.queueing_status_code.get_inner(), + session_duration: args.session_duration.get_inner(), + suspended: args.suspended.get_inner(), + total_active_users: args.total_active_users.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); WaitingRoomResult { - additional_routes: crate::random_to_domain_mapper::< - Option>, - >(result.additional_routes), - cookie_suffix: crate::random_to_domain_mapper::>(result.cookie_suffix), - custom_page_html: crate::random_to_domain_mapper::>( - result.custom_page_html, - ), - default_template_language: crate::random_to_domain_mapper::>( - result.default_template_language, - ), - description: crate::random_to_domain_mapper::>(result.description), - disable_session_renewal: crate::random_to_domain_mapper::>( - result.disable_session_renewal, - ), - host: crate::random_to_domain_mapper::(result.host), - json_response_enabled: crate::random_to_domain_mapper::>( - result.json_response_enabled, - ), - name: crate::random_to_domain_mapper::(result.name), - new_users_per_minute: crate::random_to_domain_mapper::( - result.new_users_per_minute, - ), - path: crate::random_to_domain_mapper::>(result.path), - queue_all: crate::random_to_domain_mapper::>(result.queue_all), - queueing_method: crate::random_to_domain_mapper::>( - result.queueing_method, - ), - queueing_status_code: crate::random_to_domain_mapper::>( - result.queueing_status_code, - ), - session_duration: crate::random_to_domain_mapper::>( - result.session_duration, - ), - suspended: crate::random_to_domain_mapper::>(result.suspended), - total_active_users: crate::random_to_domain_mapper::(result.total_active_users), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + additional_routes: crate::into_domain(result.additional_routes), + cookie_suffix: crate::into_domain(result.cookie_suffix), + custom_page_html: crate::into_domain(result.custom_page_html), + default_template_language: crate::into_domain(result.default_template_language), + description: crate::into_domain(result.description), + disable_session_renewal: crate::into_domain(result.disable_session_renewal), + host: crate::into_domain(result.host), + json_response_enabled: crate::into_domain(result.json_response_enabled), + name: crate::into_domain(result.name), + new_users_per_minute: crate::into_domain(result.new_users_per_minute), + path: crate::into_domain(result.path), + queue_all: crate::into_domain(result.queue_all), + queueing_method: crate::into_domain(result.queueing_method), + queueing_status_code: crate::into_domain(result.queueing_status_code), + session_duration: crate::into_domain(result.session_duration), + suspended: crate::into_domain(result.suspended), + total_active_users: crate::into_domain(result.total_active_users), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5424,60 +4874,42 @@ pub mod waiting_room_event { let result = crate::bindings::pulumi::cloudflare::waiting_room_event::invoke( name, &crate::bindings::pulumi::cloudflare::waiting_room_event::Args { - custom_page_html: &crate::clone::>(args.custom_page_html), - description: &crate::clone::>(args.description), - disable_session_renewal: &crate::clone::>( - args.disable_session_renewal, - ), - event_end_time: &crate::clone::(args.event_end_time), - event_start_time: &crate::clone::(args.event_start_time), - name: &crate::clone::(args.name), - new_users_per_minute: &crate::clone::>(args.new_users_per_minute), - prequeue_start_time: &crate::clone::>(args.prequeue_start_time), - queueing_method: &crate::clone::>(args.queueing_method), - session_duration: &crate::clone::>(args.session_duration), - shuffle_at_event_start: &crate::clone::>(args.shuffle_at_event_start), - suspended: &crate::clone::>(args.suspended), - total_active_users: &crate::clone::>(args.total_active_users), - waiting_room_id: &crate::clone::(args.waiting_room_id), - zone_id: &crate::clone::(args.zone_id), + custom_page_html: args.custom_page_html.get_inner(), + description: args.description.get_inner(), + disable_session_renewal: args.disable_session_renewal.get_inner(), + event_end_time: args.event_end_time.get_inner(), + event_start_time: args.event_start_time.get_inner(), + name: args.name.get_inner(), + new_users_per_minute: args.new_users_per_minute.get_inner(), + prequeue_start_time: args.prequeue_start_time.get_inner(), + queueing_method: args.queueing_method.get_inner(), + session_duration: args.session_duration.get_inner(), + shuffle_at_event_start: args.shuffle_at_event_start.get_inner(), + suspended: args.suspended.get_inner(), + total_active_users: args.total_active_users.get_inner(), + waiting_room_id: args.waiting_room_id.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); WaitingRoomEventResult { - created_on: crate::random_to_domain_mapper::(result.created_on), - custom_page_html: crate::random_to_domain_mapper::>( - result.custom_page_html, - ), - description: crate::random_to_domain_mapper::>(result.description), - disable_session_renewal: crate::random_to_domain_mapper::>( - result.disable_session_renewal, - ), - event_end_time: crate::random_to_domain_mapper::(result.event_end_time), - event_start_time: crate::random_to_domain_mapper::(result.event_start_time), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - name: crate::random_to_domain_mapper::(result.name), - new_users_per_minute: crate::random_to_domain_mapper::>( - result.new_users_per_minute, - ), - prequeue_start_time: crate::random_to_domain_mapper::>( - result.prequeue_start_time, - ), - queueing_method: crate::random_to_domain_mapper::>( - result.queueing_method, - ), - session_duration: crate::random_to_domain_mapper::>( - result.session_duration, - ), - shuffle_at_event_start: crate::random_to_domain_mapper::>( - result.shuffle_at_event_start, - ), - suspended: crate::random_to_domain_mapper::>(result.suspended), - total_active_users: crate::random_to_domain_mapper::>( - result.total_active_users, - ), - waiting_room_id: crate::random_to_domain_mapper::(result.waiting_room_id), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + created_on: crate::into_domain(result.created_on), + custom_page_html: crate::into_domain(result.custom_page_html), + description: crate::into_domain(result.description), + disable_session_renewal: crate::into_domain(result.disable_session_renewal), + event_end_time: crate::into_domain(result.event_end_time), + event_start_time: crate::into_domain(result.event_start_time), + modified_on: crate::into_domain(result.modified_on), + name: crate::into_domain(result.name), + new_users_per_minute: crate::into_domain(result.new_users_per_minute), + prequeue_start_time: crate::into_domain(result.prequeue_start_time), + queueing_method: crate::into_domain(result.queueing_method), + session_duration: crate::into_domain(result.session_duration), + shuffle_at_event_start: crate::into_domain(result.shuffle_at_event_start), + suspended: crate::into_domain(result.suspended), + total_active_users: crate::into_domain(result.total_active_users), + waiting_room_id: crate::into_domain(result.waiting_room_id), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5500,18 +4932,16 @@ pub mod waiting_room_rules { let result = crate::bindings::pulumi::cloudflare::waiting_room_rules::invoke( name, &crate::bindings::pulumi::cloudflare::waiting_room_rules::Args { - rules: &crate::clone::>>(args.rules), - waiting_room_id: &crate::clone::(args.waiting_room_id), - zone_id: &crate::clone::(args.zone_id), + rules: args.rules.get_inner(), + waiting_room_id: args.waiting_room_id.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); WaitingRoomRulesResult { - rules: crate::random_to_domain_mapper::>>( - result.rules, - ), - waiting_room_id: crate::random_to_domain_mapper::(result.waiting_room_id), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + rules: crate::into_domain(result.rules), + waiting_room_id: crate::into_domain(result.waiting_room_id), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5535,18 +4965,14 @@ pub mod waiting_room_settings { let result = crate::bindings::pulumi::cloudflare::waiting_room_settings::invoke( name, &crate::bindings::pulumi::cloudflare::waiting_room_settings::Args { - search_engine_crawler_bypass: &crate::clone::>( - args.search_engine_crawler_bypass, - ), - zone_id: &crate::clone::(args.zone_id), + search_engine_crawler_bypass: args.search_engine_crawler_bypass.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); WaitingRoomSettingsResult { - search_engine_crawler_bypass: crate::random_to_domain_mapper::>( - result.search_engine_crawler_bypass, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + search_engine_crawler_bypass: crate::into_domain(result.search_engine_crawler_bypass), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5576,23 +5002,23 @@ pub mod web3_hostname { let result = crate::bindings::pulumi::cloudflare::web3_hostname::invoke( name, &crate::bindings::pulumi::cloudflare::web3_hostname::Args { - description: &crate::clone::>(args.description), - dnslink: &crate::clone::>(args.dnslink), - name: &crate::clone::(args.name), - target: &crate::clone::(args.target), - zone_id: &crate::clone::(args.zone_id), + description: args.description.get_inner(), + dnslink: args.dnslink.get_inner(), + name: args.name.get_inner(), + target: args.target.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); Web3HostnameResult { - created_on: crate::random_to_domain_mapper::(result.created_on), - description: crate::random_to_domain_mapper::>(result.description), - dnslink: crate::random_to_domain_mapper::>(result.dnslink), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - name: crate::random_to_domain_mapper::(result.name), - status: crate::random_to_domain_mapper::(result.status), - target: crate::random_to_domain_mapper::(result.target), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + created_on: crate::into_domain(result.created_on), + description: crate::into_domain(result.description), + dnslink: crate::into_domain(result.dnslink), + modified_on: crate::into_domain(result.modified_on), + name: crate::into_domain(result.name), + status: crate::into_domain(result.status), + target: crate::into_domain(result.target), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5621,22 +5047,22 @@ pub mod web_analytics_rule { let result = crate::bindings::pulumi::cloudflare::web_analytics_rule::invoke( name, &crate::bindings::pulumi::cloudflare::web_analytics_rule::Args { - account_id: &crate::clone::(args.account_id), - host: &crate::clone::(args.host), - inclusive: &crate::clone::(args.inclusive), - is_paused: &crate::clone::(args.is_paused), - paths: &crate::clone::>(args.paths), - ruleset_id: &crate::clone::(args.ruleset_id), + account_id: args.account_id.get_inner(), + host: args.host.get_inner(), + inclusive: args.inclusive.get_inner(), + is_paused: args.is_paused.get_inner(), + paths: args.paths.get_inner(), + ruleset_id: args.ruleset_id.get_inner(), }, ); WebAnalyticsRuleResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - host: crate::random_to_domain_mapper::(result.host), - inclusive: crate::random_to_domain_mapper::(result.inclusive), - is_paused: crate::random_to_domain_mapper::(result.is_paused), - paths: crate::random_to_domain_mapper::>(result.paths), - ruleset_id: crate::random_to_domain_mapper::(result.ruleset_id), + account_id: crate::into_domain(result.account_id), + host: crate::into_domain(result.host), + inclusive: crate::into_domain(result.inclusive), + is_paused: crate::into_domain(result.is_paused), + paths: crate::into_domain(result.paths), + ruleset_id: crate::into_domain(result.ruleset_id), } } } @@ -5665,22 +5091,22 @@ pub mod web_analytics_site { let result = crate::bindings::pulumi::cloudflare::web_analytics_site::invoke( name, &crate::bindings::pulumi::cloudflare::web_analytics_site::Args { - account_id: &crate::clone::(args.account_id), - auto_install: &crate::clone::(args.auto_install), - host: &crate::clone::>(args.host), - zone_tag: &crate::clone::>(args.zone_tag), + account_id: args.account_id.get_inner(), + auto_install: args.auto_install.get_inner(), + host: args.host.get_inner(), + zone_tag: args.zone_tag.get_inner(), }, ); WebAnalyticsSiteResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - auto_install: crate::random_to_domain_mapper::(result.auto_install), - host: crate::random_to_domain_mapper::>(result.host), - ruleset_id: crate::random_to_domain_mapper::(result.ruleset_id), - site_tag: crate::random_to_domain_mapper::(result.site_tag), - site_token: crate::random_to_domain_mapper::(result.site_token), - snippet: crate::random_to_domain_mapper::(result.snippet), - zone_tag: crate::random_to_domain_mapper::>(result.zone_tag), + account_id: crate::into_domain(result.account_id), + auto_install: crate::into_domain(result.auto_install), + host: crate::into_domain(result.host), + ruleset_id: crate::into_domain(result.ruleset_id), + site_tag: crate::into_domain(result.site_tag), + site_token: crate::into_domain(result.site_token), + snippet: crate::into_domain(result.snippet), + zone_tag: crate::into_domain(result.zone_tag), } } } @@ -5703,16 +5129,16 @@ pub mod worker_cron_trigger { let result = crate::bindings::pulumi::cloudflare::worker_cron_trigger::invoke( name, &crate::bindings::pulumi::cloudflare::worker_cron_trigger::Args { - account_id: &crate::clone::(args.account_id), - schedules: &crate::clone::>(args.schedules), - script_name: &crate::clone::(args.script_name), + account_id: args.account_id.get_inner(), + schedules: args.schedules.get_inner(), + script_name: args.script_name.get_inner(), }, ); WorkerCronTriggerResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - schedules: crate::random_to_domain_mapper::>(result.schedules), - script_name: crate::random_to_domain_mapper::(result.script_name), + account_id: crate::into_domain(result.account_id), + schedules: crate::into_domain(result.schedules), + script_name: crate::into_domain(result.script_name), } } } @@ -5739,20 +5165,20 @@ pub mod worker_domain { let result = crate::bindings::pulumi::cloudflare::worker_domain::invoke( name, &crate::bindings::pulumi::cloudflare::worker_domain::Args { - account_id: &crate::clone::(args.account_id), - environment: &crate::clone::>(args.environment), - hostname: &crate::clone::(args.hostname), - service: &crate::clone::(args.service), - zone_id: &crate::clone::(args.zone_id), + account_id: args.account_id.get_inner(), + environment: args.environment.get_inner(), + hostname: args.hostname.get_inner(), + service: args.service.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); WorkerDomainResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - environment: crate::random_to_domain_mapper::>(result.environment), - hostname: crate::random_to_domain_mapper::(result.hostname), - service: crate::random_to_domain_mapper::(result.service), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + account_id: crate::into_domain(result.account_id), + environment: crate::into_domain(result.environment), + hostname: crate::into_domain(result.hostname), + service: crate::into_domain(result.service), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5775,16 +5201,16 @@ pub mod worker_route { let result = crate::bindings::pulumi::cloudflare::worker_route::invoke( name, &crate::bindings::pulumi::cloudflare::worker_route::Args { - pattern: &crate::clone::(args.pattern), - script_name: &crate::clone::>(args.script_name), - zone_id: &crate::clone::(args.zone_id), + pattern: args.pattern.get_inner(), + script_name: args.script_name.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); WorkerRouteResult { - pattern: crate::random_to_domain_mapper::(result.pattern), - script_name: crate::random_to_domain_mapper::>(result.script_name), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + pattern: crate::into_domain(result.pattern), + script_name: crate::into_domain(result.script_name), + zone_id: crate::into_domain(result.zone_id), } } } @@ -5857,94 +5283,48 @@ pub mod worker_script { let result = crate::bindings::pulumi::cloudflare::worker_script::invoke( name, &crate::bindings::pulumi::cloudflare::worker_script::Args { - account_id: &crate::clone::(args.account_id), - analytics_engine_bindings: &crate::clone::< - Option>, - >(args.analytics_engine_bindings), - compatibility_date: &crate::clone::>(args.compatibility_date), - compatibility_flags: &crate::clone::>>(args.compatibility_flags), - content: &crate::clone::(args.content), - d1_database_bindings: &crate::clone::< - Option>, - >(args.d1_database_bindings), - dispatch_namespace: &crate::clone::>(args.dispatch_namespace), - kv_namespace_bindings: &crate::clone::< - Option>, - >(args.kv_namespace_bindings), - logpush: &crate::clone::>(args.logpush), - module: &crate::clone::>(args.module), - name: &crate::clone::(args.name), - placements: &crate::clone::>>( - args.placements, - ), - plain_text_bindings: &crate::clone::< - Option>, - >(args.plain_text_bindings), - queue_bindings: &crate::clone::>>( - args.queue_bindings, - ), - r2_bucket_bindings: &crate::clone::< - Option>, - >(args.r2_bucket_bindings), - secret_text_bindings: &crate::clone::< - Option>, - >(args.secret_text_bindings), - service_bindings: &crate::clone::< - Option>, - >(args.service_bindings), - tags: &crate::clone::>>(args.tags), - webassembly_bindings: &crate::clone::< - Option>, - >(args.webassembly_bindings), + account_id: args.account_id.get_inner(), + analytics_engine_bindings: args.analytics_engine_bindings.get_inner(), + compatibility_date: args.compatibility_date.get_inner(), + compatibility_flags: args.compatibility_flags.get_inner(), + content: args.content.get_inner(), + d1_database_bindings: args.d1_database_bindings.get_inner(), + dispatch_namespace: args.dispatch_namespace.get_inner(), + kv_namespace_bindings: args.kv_namespace_bindings.get_inner(), + logpush: args.logpush.get_inner(), + module: args.module.get_inner(), + name: args.name.get_inner(), + placements: args.placements.get_inner(), + plain_text_bindings: args.plain_text_bindings.get_inner(), + queue_bindings: args.queue_bindings.get_inner(), + r2_bucket_bindings: args.r2_bucket_bindings.get_inner(), + secret_text_bindings: args.secret_text_bindings.get_inner(), + service_bindings: args.service_bindings.get_inner(), + tags: args.tags.get_inner(), + webassembly_bindings: args.webassembly_bindings.get_inner(), }, ); WorkerScriptResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - analytics_engine_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.analytics_engine_bindings), - compatibility_date: crate::random_to_domain_mapper::>( - result.compatibility_date, - ), - compatibility_flags: crate::random_to_domain_mapper::>( - result.compatibility_flags, - ), - content: crate::random_to_domain_mapper::(result.content), - d1_database_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.d1_database_bindings), - dispatch_namespace: crate::random_to_domain_mapper::>( - result.dispatch_namespace, - ), - kv_namespace_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.kv_namespace_bindings), - logpush: crate::random_to_domain_mapper::>(result.logpush), - module: crate::random_to_domain_mapper::>(result.module), - name: crate::random_to_domain_mapper::(result.name), - placements: crate::random_to_domain_mapper::< - Option>, - >(result.placements), - plain_text_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.plain_text_bindings), - queue_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.queue_bindings), - r2_bucket_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.r2_bucket_bindings), - secret_text_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.secret_text_bindings), - service_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.service_bindings), - tags: crate::random_to_domain_mapper::>(result.tags), - webassembly_bindings: crate::random_to_domain_mapper::< - Option>, - >(result.webassembly_bindings), + account_id: crate::into_domain(result.account_id), + analytics_engine_bindings: crate::into_domain(result.analytics_engine_bindings), + compatibility_date: crate::into_domain(result.compatibility_date), + compatibility_flags: crate::into_domain(result.compatibility_flags), + content: crate::into_domain(result.content), + d1_database_bindings: crate::into_domain(result.d1_database_bindings), + dispatch_namespace: crate::into_domain(result.dispatch_namespace), + kv_namespace_bindings: crate::into_domain(result.kv_namespace_bindings), + logpush: crate::into_domain(result.logpush), + module: crate::into_domain(result.module), + name: crate::into_domain(result.name), + placements: crate::into_domain(result.placements), + plain_text_bindings: crate::into_domain(result.plain_text_bindings), + queue_bindings: crate::into_domain(result.queue_bindings), + r2_bucket_bindings: crate::into_domain(result.r2_bucket_bindings), + secret_text_bindings: crate::into_domain(result.secret_text_bindings), + service_bindings: crate::into_domain(result.service_bindings), + tags: crate::into_domain(result.tags), + webassembly_bindings: crate::into_domain(result.webassembly_bindings), } } } @@ -5969,18 +5349,18 @@ pub mod worker_secret { let result = crate::bindings::pulumi::cloudflare::worker_secret::invoke( name, &crate::bindings::pulumi::cloudflare::worker_secret::Args { - account_id: &crate::clone::(args.account_id), - name: &crate::clone::(args.name), - script_name: &crate::clone::(args.script_name), - secret_text: &crate::clone::(args.secret_text), + account_id: args.account_id.get_inner(), + name: args.name.get_inner(), + script_name: args.script_name.get_inner(), + secret_text: args.secret_text.get_inner(), }, ); WorkerSecretResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - name: crate::random_to_domain_mapper::(result.name), - script_name: crate::random_to_domain_mapper::(result.script_name), - secret_text: crate::random_to_domain_mapper::(result.secret_text), + account_id: crate::into_domain(result.account_id), + name: crate::into_domain(result.name), + script_name: crate::into_domain(result.script_name), + secret_text: crate::into_domain(result.secret_text), } } } @@ -6004,14 +5384,14 @@ pub mod workers_for_platforms_namespace { let result = crate::bindings::pulumi::cloudflare::workers_for_platforms_namespace::invoke( name, &crate::bindings::pulumi::cloudflare::workers_for_platforms_namespace::Args { - account_id: &crate::clone::(args.account_id), - name: &crate::clone::(args.name), + account_id: args.account_id.get_inner(), + name: args.name.get_inner(), }, ); WorkersForPlatformsNamespaceResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - name: crate::random_to_domain_mapper::(result.name), + account_id: crate::into_domain(result.account_id), + name: crate::into_domain(result.name), } } } @@ -6036,18 +5416,18 @@ pub mod workers_kv { let result = crate::bindings::pulumi::cloudflare::workers_kv::invoke( name, &crate::bindings::pulumi::cloudflare::workers_kv::Args { - account_id: &crate::clone::(args.account_id), - key: &crate::clone::(args.key), - namespace_id: &crate::clone::(args.namespace_id), - value: &crate::clone::(args.value), + account_id: args.account_id.get_inner(), + key: args.key.get_inner(), + namespace_id: args.namespace_id.get_inner(), + value: args.value.get_inner(), }, ); WorkersKvResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - key: crate::random_to_domain_mapper::(result.key), - namespace_id: crate::random_to_domain_mapper::(result.namespace_id), - value: crate::random_to_domain_mapper::(result.value), + account_id: crate::into_domain(result.account_id), + key: crate::into_domain(result.key), + namespace_id: crate::into_domain(result.namespace_id), + value: crate::into_domain(result.value), } } } @@ -6071,14 +5451,14 @@ pub mod workers_kv_namespace { let result = crate::bindings::pulumi::cloudflare::workers_kv_namespace::invoke( name, &crate::bindings::pulumi::cloudflare::workers_kv_namespace::Args { - account_id: &crate::clone::(args.account_id), - title: &crate::clone::(args.title), + account_id: args.account_id.get_inner(), + title: args.title.get_inner(), }, ); WorkersKvNamespaceResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - title: crate::random_to_domain_mapper::(result.title), + account_id: crate::into_domain(result.account_id), + title: crate::into_domain(result.title), } } } @@ -6112,31 +5492,27 @@ pub mod zone { let result = crate::bindings::pulumi::cloudflare::zone::invoke( name, &crate::bindings::pulumi::cloudflare::zone::Args { - account_id: &crate::clone::(args.account_id), - jump_start: &crate::clone::>(args.jump_start), - paused: &crate::clone::>(args.paused), - plan: &crate::clone::>(args.plan), - type_: &crate::clone::>(args.type_), - zone: &crate::clone::(args.zone), + account_id: args.account_id.get_inner(), + jump_start: args.jump_start.get_inner(), + paused: args.paused.get_inner(), + plan: args.plan.get_inner(), + type_: args.type_.get_inner(), + zone: args.zone.get_inner(), }, ); ZoneResult { - account_id: crate::random_to_domain_mapper::(result.account_id), - jump_start: crate::random_to_domain_mapper::>(result.jump_start), - meta: crate::random_to_domain_mapper::>( - result.meta, - ), - name_servers: crate::random_to_domain_mapper::>(result.name_servers), - paused: crate::random_to_domain_mapper::>(result.paused), - plan: crate::random_to_domain_mapper::(result.plan), - status: crate::random_to_domain_mapper::(result.status), - type_: crate::random_to_domain_mapper::>(result.type_), - vanity_name_servers: crate::random_to_domain_mapper::>( - result.vanity_name_servers, - ), - verification_key: crate::random_to_domain_mapper::(result.verification_key), - zone: crate::random_to_domain_mapper::(result.zone), + account_id: crate::into_domain(result.account_id), + jump_start: crate::into_domain(result.jump_start), + meta: crate::into_domain(result.meta), + name_servers: crate::into_domain(result.name_servers), + paused: crate::into_domain(result.paused), + plan: crate::into_domain(result.plan), + status: crate::into_domain(result.status), + type_: crate::into_domain(result.type_), + vanity_name_servers: crate::into_domain(result.vanity_name_servers), + verification_key: crate::into_domain(result.verification_key), + zone: crate::into_domain(result.zone), } } } @@ -6157,14 +5533,14 @@ pub mod zone_cache_reserve { let result = crate::bindings::pulumi::cloudflare::zone_cache_reserve::invoke( name, &crate::bindings::pulumi::cloudflare::zone_cache_reserve::Args { - enabled: &crate::clone::(args.enabled), - zone_id: &crate::clone::(args.zone_id), + enabled: args.enabled.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ZoneCacheReserveResult { - enabled: crate::random_to_domain_mapper::(result.enabled), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + enabled: crate::into_domain(result.enabled), + zone_id: crate::into_domain(result.zone_id), } } } @@ -6205,34 +5581,34 @@ pub mod zone_cache_variants { let result = crate::bindings::pulumi::cloudflare::zone_cache_variants::invoke( name, &crate::bindings::pulumi::cloudflare::zone_cache_variants::Args { - avifs: &crate::clone::>>(args.avifs), - bmps: &crate::clone::>>(args.bmps), - gifs: &crate::clone::>>(args.gifs), - jp2s: &crate::clone::>>(args.jp2s), - jpegs: &crate::clone::>>(args.jpegs), - jpg2s: &crate::clone::>>(args.jpg2s), - jpgs: &crate::clone::>>(args.jpgs), - pngs: &crate::clone::>>(args.pngs), - tiffs: &crate::clone::>>(args.tiffs), - tifs: &crate::clone::>>(args.tifs), - webps: &crate::clone::>>(args.webps), - zone_id: &crate::clone::(args.zone_id), + avifs: args.avifs.get_inner(), + bmps: args.bmps.get_inner(), + gifs: args.gifs.get_inner(), + jp2s: args.jp2s.get_inner(), + jpegs: args.jpegs.get_inner(), + jpg2s: args.jpg2s.get_inner(), + jpgs: args.jpgs.get_inner(), + pngs: args.pngs.get_inner(), + tiffs: args.tiffs.get_inner(), + tifs: args.tifs.get_inner(), + webps: args.webps.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ZoneCacheVariantsResult { - avifs: crate::random_to_domain_mapper::>>(result.avifs), - bmps: crate::random_to_domain_mapper::>>(result.bmps), - gifs: crate::random_to_domain_mapper::>>(result.gifs), - jp2s: crate::random_to_domain_mapper::>>(result.jp2s), - jpegs: crate::random_to_domain_mapper::>>(result.jpegs), - jpg2s: crate::random_to_domain_mapper::>>(result.jpg2s), - jpgs: crate::random_to_domain_mapper::>>(result.jpgs), - pngs: crate::random_to_domain_mapper::>>(result.pngs), - tiffs: crate::random_to_domain_mapper::>>(result.tiffs), - tifs: crate::random_to_domain_mapper::>>(result.tifs), - webps: crate::random_to_domain_mapper::>>(result.webps), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + avifs: crate::into_domain(result.avifs), + bmps: crate::into_domain(result.bmps), + gifs: crate::into_domain(result.gifs), + jp2s: crate::into_domain(result.jp2s), + jpegs: crate::into_domain(result.jpegs), + jpg2s: crate::into_domain(result.jpg2s), + jpgs: crate::into_domain(result.jpgs), + pngs: crate::into_domain(result.pngs), + tiffs: crate::into_domain(result.tiffs), + tifs: crate::into_domain(result.tifs), + webps: crate::into_domain(result.webps), + zone_id: crate::into_domain(result.zone_id), } } } @@ -6263,24 +5639,24 @@ pub mod zone_dnssec { let result = crate::bindings::pulumi::cloudflare::zone_dnssec::invoke( name, &crate::bindings::pulumi::cloudflare::zone_dnssec::Args { - modified_on: &crate::clone::>(args.modified_on), - zone_id: &crate::clone::(args.zone_id), + modified_on: args.modified_on.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ZoneDnssecResult { - algorithm: crate::random_to_domain_mapper::(result.algorithm), - digest: crate::random_to_domain_mapper::(result.digest), - digest_algorithm: crate::random_to_domain_mapper::(result.digest_algorithm), - digest_type: crate::random_to_domain_mapper::(result.digest_type), - ds: crate::random_to_domain_mapper::(result.ds), - flags: crate::random_to_domain_mapper::(result.flags), - key_tag: crate::random_to_domain_mapper::(result.key_tag), - key_type: crate::random_to_domain_mapper::(result.key_type), - modified_on: crate::random_to_domain_mapper::(result.modified_on), - public_key: crate::random_to_domain_mapper::(result.public_key), - status: crate::random_to_domain_mapper::(result.status), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + algorithm: crate::into_domain(result.algorithm), + digest: crate::into_domain(result.digest), + digest_algorithm: crate::into_domain(result.digest_algorithm), + digest_type: crate::into_domain(result.digest_type), + ds: crate::into_domain(result.ds), + flags: crate::into_domain(result.flags), + key_tag: crate::into_domain(result.key_tag), + key_type: crate::into_domain(result.key_type), + modified_on: crate::into_domain(result.modified_on), + public_key: crate::into_domain(result.public_key), + status: crate::into_domain(result.status), + zone_id: crate::into_domain(result.zone_id), } } } @@ -6305,20 +5681,18 @@ pub mod zone_hold { let result = crate::bindings::pulumi::cloudflare::zone_hold::invoke( name, &crate::bindings::pulumi::cloudflare::zone_hold::Args { - hold: &crate::clone::(args.hold), - hold_after: &crate::clone::>(args.hold_after), - include_subdomains: &crate::clone::>(args.include_subdomains), - zone_id: &crate::clone::(args.zone_id), + hold: args.hold.get_inner(), + hold_after: args.hold_after.get_inner(), + include_subdomains: args.include_subdomains.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ZoneHoldResult { - hold: crate::random_to_domain_mapper::(result.hold), - hold_after: crate::random_to_domain_mapper::(result.hold_after), - include_subdomains: crate::random_to_domain_mapper::>( - result.include_subdomains, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + hold: crate::into_domain(result.hold), + hold_after: crate::into_domain(result.hold_after), + include_subdomains: crate::into_domain(result.include_subdomains), + zone_id: crate::into_domain(result.zone_id), } } } @@ -6347,26 +5721,22 @@ pub mod zone_lockdown { let result = crate::bindings::pulumi::cloudflare::zone_lockdown::invoke( name, &crate::bindings::pulumi::cloudflare::zone_lockdown::Args { - configurations: &crate::clone::>( - args.configurations, - ), - description: &crate::clone::>(args.description), - paused: &crate::clone::>(args.paused), - priority: &crate::clone::>(args.priority), - urls: &crate::clone::>(args.urls), - zone_id: &crate::clone::(args.zone_id), + configurations: args.configurations.get_inner(), + description: args.description.get_inner(), + paused: args.paused.get_inner(), + priority: args.priority.get_inner(), + urls: args.urls.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ZoneLockdownResult { - configurations: crate::random_to_domain_mapper::< - Vec, - >(result.configurations), - description: crate::random_to_domain_mapper::>(result.description), - paused: crate::random_to_domain_mapper::>(result.paused), - priority: crate::random_to_domain_mapper::>(result.priority), - urls: crate::random_to_domain_mapper::>(result.urls), - zone_id: crate::random_to_domain_mapper::(result.zone_id), + configurations: crate::into_domain(result.configurations), + description: crate::into_domain(result.description), + paused: crate::into_domain(result.paused), + priority: crate::into_domain(result.priority), + urls: crate::into_domain(result.urls), + zone_id: crate::into_domain(result.zone_id), } } } @@ -6396,29 +5766,19 @@ pub mod zone_settings_override { let result = crate::bindings::pulumi::cloudflare::zone_settings_override::invoke( name, &crate::bindings::pulumi::cloudflare::zone_settings_override::Args { - settings: &crate::clone::>( - args.settings, - ), - zone_id: &crate::clone::(args.zone_id), + settings: args.settings.get_inner(), + zone_id: args.zone_id.get_inner(), }, ); ZoneSettingsOverrideResult { - initial_settings: crate::random_to_domain_mapper::< - Vec, - >(result.initial_settings), - initial_settings_read_at: crate::random_to_domain_mapper::( - result.initial_settings_read_at, - ), - readonly_settings: crate::random_to_domain_mapper::>( - result.readonly_settings, - ), - settings: crate::random_to_domain_mapper::( - result.settings, - ), - zone_id: crate::random_to_domain_mapper::(result.zone_id), - zone_status: crate::random_to_domain_mapper::(result.zone_status), - zone_type: crate::random_to_domain_mapper::(result.zone_type), + initial_settings: crate::into_domain(result.initial_settings), + initial_settings_read_at: crate::into_domain(result.initial_settings_read_at), + readonly_settings: crate::into_domain(result.readonly_settings), + settings: crate::into_domain(result.settings), + zone_id: crate::into_domain(result.zone_id), + zone_status: crate::into_domain(result.zone_status), + zone_type: crate::into_domain(result.zone_type), } } } diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/wit/deps/pulumi-wasm.wit b/providers/pulumi_wasm_provider_cloudflare_rust/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/wit/deps/pulumi-wasm.wit +++ b/providers/pulumi_wasm_provider_cloudflare_rust/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/providers/pulumi_wasm_provider_docker/src/bindings.rs b/providers/pulumi_wasm_provider_docker/src/bindings.rs index 52d7a2442..012804928 100644 --- a/providers/pulumi_wasm_provider_docker/src/bindings.rs +++ b/providers/pulumi_wasm_provider_docker/src/bindings.rs @@ -111,28 +111,6 @@ pub mod component { } } } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn duplicate(&self) -> Output { - unsafe { - #[cfg(target_arch = "wasm32")] - #[link( - wasm_import_module = "component:pulumi-wasm/output-interface@0.0.0-DEV" - )] - extern "C" { - #[link_name = "[method]output.duplicate"] - fn wit_import(_: i32) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32); - Output::from_handle(ret as u32) - } - } - } #[allow(unused_unsafe, clippy::all)] pub fn combine(outputs: _rt::Vec) -> Output { unsafe { @@ -2794,113 +2772,112 @@ pub(crate) use __export_docker_pulumi_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:docker-pulumi:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5106] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xee&\x01A\x02\x01A\x1b\ -\x01B\x0c\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13[cons\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 5066] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xc6&\x01A\x02\x01A\x1b\ +\x01B\x0a\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13[cons\ tructor]output\x01\x02\x01h\0\x01@\x02\x04self\x03\x0dfunction-names\0\x01\x04\0\ -\x12[method]output.map\x01\x04\x01@\x01\x04self\x03\0\x01\x04\0\x18[method]outpu\ -t.duplicate\x01\x05\x01p\x01\x01@\x01\x07outputs\x06\0\x01\x04\0\x07combine\x01\x07\ -\x03\x010component:pulumi-wasm/output-interface@0.0.0-DEV\x05\0\x02\x03\0\0\x06o\ -utput\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x02\x04\ -names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04names\x04\0\x0cre\ -sult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\x1eregister-\ -resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\x04names\x06\ -object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\x01p\x09\x01\ -r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01@\x01\x07requ\ -est\x0d\0\x10\x04\0\x08register\x01\x11\x03\x012component:pulumi-wasm/register-i\ -nterface@0.0.0-DEV\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01\ -h\x01\x01r>\x06attach\x02\x0ccapabilities\x02\x0dcgroupns-mode\x02\x07command\x02\ -+container-read-refresh-timeout-milliseconds\x02\x07cpu-set\x02\x0acpu-shares\x02\ -\x15destroy-grace-seconds\x02\x07devices\x02\x03dns\x02\x08dns-opts\x02\x0cdns-s\ -earches\x02\x0adomainname\x02\x0bentrypoints\x02\x04envs\x02\x04gpus\x02\x0agrou\ -p-adds\x02\x0bhealthcheck\x02\x08hostname\x02\x05hosts\x02\x05image\x02\x04init\x02\ -\x08ipc-mode\x02\x06labels\x02\x0alog-driver\x02\x08log-opts\x02\x04logs\x02\x0f\ -max-retry-count\x02\x06memory\x02\x0bmemory-swap\x02\x06mounts\x02\x08must-run\x02\ -\x04name\x02\x0cnetwork-mode\x02\x11networks-advanced\x02\x08pid-mode\x02\x05por\ -ts\x02\x0aprivileged\x02\x11publish-all-ports\x02\x09read-only\x02\x0eremove-vol\ -umes\x02\x07restart\x02\x02rm\x02\x07runtime\x02\x0dsecurity-opts\x02\x08shm-siz\ -e\x02\x05start\x02\x0astdin-open\x02\x0bstop-signal\x02\x0cstop-timeout\x02\x0cs\ -torage-opts\x02\x07sysctls\x02\x05tmpfs\x02\x03tty\x02\x07ulimits\x02\x07uploads\ -\x02\x04user\x02\x0buserns-mode\x02\x07volumes\x02\x04wait\x02\x0cwait-timeout\x02\ -\x0bworking-dir\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01rB\x06attach\x05\x06brid\ -ge\x05\x0ccapabilities\x05\x0dcgroupns-mode\x05\x07command\x05\x0econtainer-logs\ -\x05+container-read-refresh-timeout-milliseconds\x05\x07cpu-set\x05\x0acpu-share\ -s\x05\x15destroy-grace-seconds\x05\x07devices\x05\x03dns\x05\x08dns-opts\x05\x0c\ -dns-searches\x05\x0adomainname\x05\x0bentrypoints\x05\x04envs\x05\x09exit-code\x05\ -\x04gpus\x05\x0agroup-adds\x05\x0bhealthcheck\x05\x08hostname\x05\x05hosts\x05\x05\ -image\x05\x04init\x05\x08ipc-mode\x05\x06labels\x05\x0alog-driver\x05\x08log-opt\ -s\x05\x04logs\x05\x0fmax-retry-count\x05\x06memory\x05\x0bmemory-swap\x05\x06mou\ -nts\x05\x08must-run\x05\x04name\x05\x0dnetwork-datas\x05\x0cnetwork-mode\x05\x11\ -networks-advanced\x05\x08pid-mode\x05\x05ports\x05\x0aprivileged\x05\x11publish-\ -all-ports\x05\x09read-only\x05\x0eremove-volumes\x05\x07restart\x05\x02rm\x05\x07\ -runtime\x05\x0dsecurity-opts\x05\x08shm-size\x05\x05start\x05\x0astdin-open\x05\x0b\ -stop-signal\x05\x0cstop-timeout\x05\x0cstorage-opts\x05\x07sysctls\x05\x05tmpfs\x05\ -\x03tty\x05\x07ulimits\x05\x07uploads\x05\x04user\x05\x0buserns-mode\x05\x07volu\ -mes\x05\x04wait\x05\x0cwait-timeout\x05\x0bworking-dir\x05\x04\0\x03res\x03\0\x06\ -\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x018pulumi:dock\ -er/container@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x03\x01B\x0a\x02\x03\x02\x01\x01\ -\x04\0\x06output\x03\0\0\x01h\x01\x01r\x05\x05build\x02\x10build-on-preview\x02\x0a\ -image-name\x02\x08registry\x02\x09skip-push\x02\x04\0\x04args\x03\0\x03\x01i\x01\ -\x01r\x07\x0fbase-image-name\x05\x07context\x05\x0adockerfile\x05\x0aimage-name\x05\ -\x08platform\x05\x0fregistry-server\x05\x0brepo-digest\x05\x04\0\x03res\x03\0\x06\ -\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x014pulumi:dock\ -er/image@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x04\x01B\x0a\x02\x03\x02\x01\x01\x04\ -\0\x06output\x03\0\0\x01h\x01\x01r\x0c\x0aattachable\x02\x0fcheck-duplicate\x02\x06\ -driver\x02\x07ingress\x02\x08internal\x02\x0cipam-configs\x02\x0bipam-driver\x02\ -\x0cipam-options\x02\x04ipv6\x02\x06labels\x02\x04name\x02\x07options\x02\x04\0\x04\ -args\x03\0\x03\x01i\x01\x01r\x0d\x0aattachable\x05\x0fcheck-duplicate\x05\x06dri\ -ver\x05\x07ingress\x05\x08internal\x05\x0cipam-configs\x05\x0bipam-driver\x05\x0c\ -ipam-options\x05\x04ipv6\x05\x06labels\x05\x04name\x05\x07options\x05\x05scope\x05\ -\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\ -\x04\x016pulumi:docker/network@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x05\x01B\x0a\ -\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x09\x05alias\x02\x0ee\ -nable-timeout\x02\x07enabled\x02\x04envs\x02\x0dforce-destroy\x02\x0dforce-disab\ -le\x02\x15grant-all-permissions\x02\x11grant-permissions\x02\x04name\x02\x04\0\x04\ -args\x03\0\x03\x01i\x01\x01r\x0a\x05alias\x05\x0eenable-timeout\x05\x07enabled\x05\ -\x04envs\x05\x0dforce-destroy\x05\x0dforce-disable\x05\x15grant-all-permissions\x05\ -\x11grant-permissions\x05\x04name\x05\x10plugin-reference\x05\x04\0\x03res\x03\0\ -\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x015pulumi:\ -docker/plugin@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x06\x01B\x0a\x02\x03\x02\x01\x01\ -\x04\0\x06output\x03\0\0\x01h\x01\x01r\x04\x14insecure-skip-verify\x02\x0dkeep-r\ -emotely\x02\x04name\x02\x08triggers\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x05\ -\x14insecure-skip-verify\x05\x0dkeep-remotely\x05\x04name\x05\x0dsha256-digest\x05\ -\x08triggers\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\ -\x06invoke\x01\x08\x04\x01=pulumi:docker/registry-image@4.5.3-DIVIDER-ZERO.ZERO.\ -ZERO-DEV\x05\x07\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01\ -r\x07\x05build\x02\x0cforce-remove\x02\x0ckeep-locally\x02\x04name\x02\x08platfo\ -rm\x02\x0dpull-triggers\x02\x08triggers\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01\ -r\x09\x05build\x05\x0cforce-remove\x05\x08image-id\x05\x0ckeep-locally\x05\x04na\ -me\x05\x08platform\x05\x0dpull-triggers\x05\x0brepo-digest\x05\x08triggers\x05\x04\ -\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\ -\x01;pulumi:docker/remote-image@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x08\x01B\x0a\ -\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x03\x04data\x02\x06la\ -bels\x02\x04name\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x03\x04data\x05\x06la\ -bels\x05\x04name\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\ -\0\x06invoke\x01\x08\x04\x015pulumi:docker/secret@4.5.3-DIVIDER-ZERO.ZERO.ZERO-D\ -EV\x05\x09\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x09\ -\x04auth\x02\x0fconverge-config\x02\x0dendpoint-spec\x02\x06labels\x02\x04mode\x02\ -\x04name\x02\x0frollback-config\x02\x09task-spec\x02\x0dupdate-config\x02\x04\0\x04\ -args\x03\0\x03\x01i\x01\x01r\x09\x04auth\x05\x0fconverge-config\x05\x0dendpoint-\ -spec\x05\x06labels\x05\x04mode\x05\x04name\x05\x0frollback-config\x05\x09task-sp\ -ec\x05\x0dupdate-config\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\ -\0\x07\x04\0\x06invoke\x01\x08\x04\x016pulumi:docker/service@4.5.3-DIVIDER-ZERO.\ -ZERO.ZERO-DEV\x05\x0a\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ -\x01r\x02\x04data\x02\x04name\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x02\x04d\ -ata\x05\x04name\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\ -\0\x06invoke\x01\x08\x04\x01=pulumi:docker/service-config@4.5.3-DIVIDER-ZERO.ZER\ -O.ZERO-DEV\x05\x0b\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ -\x01r\x02\x0csource-image\x02\x0ctarget-image\x02\x04\0\x04args\x03\0\x03\x01i\x01\ -\x01r\x03\x0csource-image\x05\x0fsource-image-id\x05\x0ctarget-image\x05\x04\0\x03\ +\x12[method]output.map\x01\x04\x01p\x01\x01@\x01\x07outputs\x05\0\x01\x04\0\x07c\ +ombine\x01\x06\x03\x010component:pulumi-wasm/output-interface@0.0.0-DEV\x05\0\x02\ +\x03\0\0\x06output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ +\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04name\ +s\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\ +\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\ +\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\ +\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01\ +@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x03\x012component:pulumi-wa\ +sm/register-interface@0.0.0-DEV\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06ou\ +tput\x03\0\0\x01h\x01\x01r>\x06attach\x02\x0ccapabilities\x02\x0dcgroupns-mode\x02\ +\x07command\x02+container-read-refresh-timeout-milliseconds\x02\x07cpu-set\x02\x0a\ +cpu-shares\x02\x15destroy-grace-seconds\x02\x07devices\x02\x03dns\x02\x08dns-opt\ +s\x02\x0cdns-searches\x02\x0adomainname\x02\x0bentrypoints\x02\x04envs\x02\x04gp\ +us\x02\x0agroup-adds\x02\x0bhealthcheck\x02\x08hostname\x02\x05hosts\x02\x05imag\ +e\x02\x04init\x02\x08ipc-mode\x02\x06labels\x02\x0alog-driver\x02\x08log-opts\x02\ +\x04logs\x02\x0fmax-retry-count\x02\x06memory\x02\x0bmemory-swap\x02\x06mounts\x02\ +\x08must-run\x02\x04name\x02\x0cnetwork-mode\x02\x11networks-advanced\x02\x08pid\ +-mode\x02\x05ports\x02\x0aprivileged\x02\x11publish-all-ports\x02\x09read-only\x02\ +\x0eremove-volumes\x02\x07restart\x02\x02rm\x02\x07runtime\x02\x0dsecurity-opts\x02\ +\x08shm-size\x02\x05start\x02\x0astdin-open\x02\x0bstop-signal\x02\x0cstop-timeo\ +ut\x02\x0cstorage-opts\x02\x07sysctls\x02\x05tmpfs\x02\x03tty\x02\x07ulimits\x02\ +\x07uploads\x02\x04user\x02\x0buserns-mode\x02\x07volumes\x02\x04wait\x02\x0cwai\ +t-timeout\x02\x0bworking-dir\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01rB\x06attac\ +h\x05\x06bridge\x05\x0ccapabilities\x05\x0dcgroupns-mode\x05\x07command\x05\x0ec\ +ontainer-logs\x05+container-read-refresh-timeout-milliseconds\x05\x07cpu-set\x05\ +\x0acpu-shares\x05\x15destroy-grace-seconds\x05\x07devices\x05\x03dns\x05\x08dns\ +-opts\x05\x0cdns-searches\x05\x0adomainname\x05\x0bentrypoints\x05\x04envs\x05\x09\ +exit-code\x05\x04gpus\x05\x0agroup-adds\x05\x0bhealthcheck\x05\x08hostname\x05\x05\ +hosts\x05\x05image\x05\x04init\x05\x08ipc-mode\x05\x06labels\x05\x0alog-driver\x05\ +\x08log-opts\x05\x04logs\x05\x0fmax-retry-count\x05\x06memory\x05\x0bmemory-swap\ +\x05\x06mounts\x05\x08must-run\x05\x04name\x05\x0dnetwork-datas\x05\x0cnetwork-m\ +ode\x05\x11networks-advanced\x05\x08pid-mode\x05\x05ports\x05\x0aprivileged\x05\x11\ +publish-all-ports\x05\x09read-only\x05\x0eremove-volumes\x05\x07restart\x05\x02r\ +m\x05\x07runtime\x05\x0dsecurity-opts\x05\x08shm-size\x05\x05start\x05\x0astdin-\ +open\x05\x0bstop-signal\x05\x0cstop-timeout\x05\x0cstorage-opts\x05\x07sysctls\x05\ +\x05tmpfs\x05\x03tty\x05\x07ulimits\x05\x07uploads\x05\x04user\x05\x0buserns-mod\ +e\x05\x07volumes\x05\x04wait\x05\x0cwait-timeout\x05\x0bworking-dir\x05\x04\0\x03\ res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\ -2pulumi:docker/tag@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x0c\x01B\x0a\x02\x03\x02\ -\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x04\x06driver\x02\x0bdriver-opts\x02\ -\x06labels\x02\x04name\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x05\x06driver\x05\ -\x0bdriver-opts\x05\x06labels\x05\x0amountpoint\x05\x04name\x05\x04\0\x03res\x03\ -\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x015pulum\ -i:docker/volume@4.5.3-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x0d\x04\x01 = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + container::Res { - attach: o - .fields - .iter() - .find(|o| o.name == "attach") - .unwrap() - .output - .duplicate(), - bridge: o - .fields - .iter() - .find(|o| o.name == "bridge") - .unwrap() - .output - .duplicate(), - capabilities: o - .fields - .iter() - .find(|o| o.name == "capabilities") - .unwrap() - .output - .duplicate(), - cgroupns_mode: o - .fields - .iter() - .find(|o| o.name == "cgroupnsMode") - .unwrap() - .output - .duplicate(), - command: o - .fields - .iter() - .find(|o| o.name == "command") - .unwrap() - .output - .duplicate(), - container_logs: o - .fields - .iter() - .find(|o| o.name == "containerLogs") - .unwrap() - .output - .duplicate(), - container_read_refresh_timeout_milliseconds: o - .fields - .iter() - .find(|o| o.name == "containerReadRefreshTimeoutMilliseconds") - .unwrap() - .output - .duplicate(), - cpu_set: o - .fields - .iter() - .find(|o| o.name == "cpuSet") - .unwrap() - .output - .duplicate(), - cpu_shares: o - .fields - .iter() - .find(|o| o.name == "cpuShares") - .unwrap() - .output - .duplicate(), - destroy_grace_seconds: o - .fields - .iter() - .find(|o| o.name == "destroyGraceSeconds") - .unwrap() - .output - .duplicate(), - devices: o - .fields - .iter() - .find(|o| o.name == "devices") - .unwrap() - .output - .duplicate(), - dns: o - .fields - .iter() - .find(|o| o.name == "dns") - .unwrap() - .output - .duplicate(), - dns_opts: o - .fields - .iter() - .find(|o| o.name == "dnsOpts") - .unwrap() - .output - .duplicate(), - dns_searches: o - .fields - .iter() - .find(|o| o.name == "dnsSearches") - .unwrap() - .output - .duplicate(), - domainname: o - .fields - .iter() - .find(|o| o.name == "domainname") - .unwrap() - .output - .duplicate(), - entrypoints: o - .fields - .iter() - .find(|o| o.name == "entrypoints") - .unwrap() - .output - .duplicate(), - envs: o - .fields - .iter() - .find(|o| o.name == "envs") - .unwrap() - .output - .duplicate(), - exit_code: o - .fields - .iter() - .find(|o| o.name == "exitCode") - .unwrap() - .output - .duplicate(), - gpus: o - .fields - .iter() - .find(|o| o.name == "gpus") - .unwrap() - .output - .duplicate(), - group_adds: o - .fields - .iter() - .find(|o| o.name == "groupAdds") - .unwrap() - .output - .duplicate(), - healthcheck: o - .fields - .iter() - .find(|o| o.name == "healthcheck") - .unwrap() - .output - .duplicate(), - hostname: o - .fields - .iter() - .find(|o| o.name == "hostname") - .unwrap() - .output - .duplicate(), - hosts: o - .fields - .iter() - .find(|o| o.name == "hosts") - .unwrap() - .output - .duplicate(), - image: o - .fields - .iter() - .find(|o| o.name == "image") - .unwrap() - .output - .duplicate(), - init: o - .fields - .iter() - .find(|o| o.name == "init") - .unwrap() - .output - .duplicate(), - ipc_mode: o - .fields - .iter() - .find(|o| o.name == "ipcMode") - .unwrap() - .output - .duplicate(), - labels: o - .fields - .iter() - .find(|o| o.name == "labels") - .unwrap() - .output - .duplicate(), - log_driver: o - .fields - .iter() - .find(|o| o.name == "logDriver") - .unwrap() - .output - .duplicate(), - log_opts: o - .fields - .iter() - .find(|o| o.name == "logOpts") - .unwrap() - .output - .duplicate(), - logs: o - .fields - .iter() - .find(|o| o.name == "logs") - .unwrap() - .output - .duplicate(), - max_retry_count: o - .fields - .iter() - .find(|o| o.name == "maxRetryCount") - .unwrap() - .output - .duplicate(), - memory: o - .fields - .iter() - .find(|o| o.name == "memory") - .unwrap() - .output - .duplicate(), - memory_swap: o - .fields - .iter() - .find(|o| o.name == "memorySwap") - .unwrap() - .output - .duplicate(), - mounts: o - .fields - .iter() - .find(|o| o.name == "mounts") - .unwrap() - .output - .duplicate(), - must_run: o - .fields - .iter() - .find(|o| o.name == "mustRun") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - network_datas: o - .fields - .iter() - .find(|o| o.name == "networkDatas") - .unwrap() - .output - .duplicate(), - network_mode: o - .fields - .iter() - .find(|o| o.name == "networkMode") - .unwrap() - .output - .duplicate(), - networks_advanced: o - .fields - .iter() - .find(|o| o.name == "networksAdvanced") - .unwrap() - .output - .duplicate(), - pid_mode: o - .fields - .iter() - .find(|o| o.name == "pidMode") - .unwrap() - .output - .duplicate(), - ports: o - .fields - .iter() - .find(|o| o.name == "ports") - .unwrap() - .output - .duplicate(), - privileged: o - .fields - .iter() - .find(|o| o.name == "privileged") - .unwrap() - .output - .duplicate(), - publish_all_ports: o - .fields - .iter() - .find(|o| o.name == "publishAllPorts") - .unwrap() - .output - .duplicate(), - read_only: o - .fields - .iter() - .find(|o| o.name == "readOnly") - .unwrap() - .output - .duplicate(), - remove_volumes: o - .fields - .iter() - .find(|o| o.name == "removeVolumes") - .unwrap() - .output - .duplicate(), - restart: o - .fields - .iter() - .find(|o| o.name == "restart") - .unwrap() - .output - .duplicate(), - rm: o - .fields - .iter() - .find(|o| o.name == "rm") - .unwrap() - .output - .duplicate(), - runtime: o - .fields - .iter() - .find(|o| o.name == "runtime") - .unwrap() - .output - .duplicate(), - security_opts: o - .fields - .iter() - .find(|o| o.name == "securityOpts") - .unwrap() - .output - .duplicate(), - shm_size: o - .fields - .iter() - .find(|o| o.name == "shmSize") - .unwrap() - .output - .duplicate(), - start: o - .fields - .iter() - .find(|o| o.name == "start") - .unwrap() - .output - .duplicate(), - stdin_open: o - .fields - .iter() - .find(|o| o.name == "stdinOpen") - .unwrap() - .output - .duplicate(), - stop_signal: o - .fields - .iter() - .find(|o| o.name == "stopSignal") - .unwrap() - .output - .duplicate(), - stop_timeout: o - .fields - .iter() - .find(|o| o.name == "stopTimeout") - .unwrap() - .output - .duplicate(), - storage_opts: o - .fields - .iter() - .find(|o| o.name == "storageOpts") - .unwrap() - .output - .duplicate(), - sysctls: o - .fields - .iter() - .find(|o| o.name == "sysctls") - .unwrap() - .output - .duplicate(), - tmpfs: o - .fields - .iter() - .find(|o| o.name == "tmpfs") - .unwrap() - .output - .duplicate(), - tty: o - .fields - .iter() - .find(|o| o.name == "tty") - .unwrap() - .output - .duplicate(), - ulimits: o - .fields - .iter() - .find(|o| o.name == "ulimits") - .unwrap() - .output - .duplicate(), - uploads: o - .fields - .iter() - .find(|o| o.name == "uploads") - .unwrap() - .output - .duplicate(), - user: o - .fields - .iter() - .find(|o| o.name == "user") - .unwrap() - .output - .duplicate(), - userns_mode: o - .fields - .iter() - .find(|o| o.name == "usernsMode") - .unwrap() - .output - .duplicate(), - volumes: o - .fields - .iter() - .find(|o| o.name == "volumes") - .unwrap() - .output - .duplicate(), - wait: o - .fields - .iter() - .find(|o| o.name == "wait") - .unwrap() - .output - .duplicate(), - wait_timeout: o - .fields - .iter() - .find(|o| o.name == "waitTimeout") - .unwrap() - .output - .duplicate(), - working_dir: o - .fields - .iter() - .find(|o| o.name == "workingDir") - .unwrap() - .output - .duplicate(), + attach: hashmap.remove("attach").unwrap(), + bridge: hashmap.remove("bridge").unwrap(), + capabilities: hashmap.remove("capabilities").unwrap(), + cgroupns_mode: hashmap.remove("cgroupnsMode").unwrap(), + command: hashmap.remove("command").unwrap(), + container_logs: hashmap.remove("containerLogs").unwrap(), + container_read_refresh_timeout_milliseconds: hashmap + .remove("containerReadRefreshTimeoutMilliseconds") + .unwrap(), + cpu_set: hashmap.remove("cpuSet").unwrap(), + cpu_shares: hashmap.remove("cpuShares").unwrap(), + destroy_grace_seconds: hashmap.remove("destroyGraceSeconds").unwrap(), + devices: hashmap.remove("devices").unwrap(), + dns: hashmap.remove("dns").unwrap(), + dns_opts: hashmap.remove("dnsOpts").unwrap(), + dns_searches: hashmap.remove("dnsSearches").unwrap(), + domainname: hashmap.remove("domainname").unwrap(), + entrypoints: hashmap.remove("entrypoints").unwrap(), + envs: hashmap.remove("envs").unwrap(), + exit_code: hashmap.remove("exitCode").unwrap(), + gpus: hashmap.remove("gpus").unwrap(), + group_adds: hashmap.remove("groupAdds").unwrap(), + healthcheck: hashmap.remove("healthcheck").unwrap(), + hostname: hashmap.remove("hostname").unwrap(), + hosts: hashmap.remove("hosts").unwrap(), + image: hashmap.remove("image").unwrap(), + init: hashmap.remove("init").unwrap(), + ipc_mode: hashmap.remove("ipcMode").unwrap(), + labels: hashmap.remove("labels").unwrap(), + log_driver: hashmap.remove("logDriver").unwrap(), + log_opts: hashmap.remove("logOpts").unwrap(), + logs: hashmap.remove("logs").unwrap(), + max_retry_count: hashmap.remove("maxRetryCount").unwrap(), + memory: hashmap.remove("memory").unwrap(), + memory_swap: hashmap.remove("memorySwap").unwrap(), + mounts: hashmap.remove("mounts").unwrap(), + must_run: hashmap.remove("mustRun").unwrap(), + name: hashmap.remove("name").unwrap(), + network_datas: hashmap.remove("networkDatas").unwrap(), + network_mode: hashmap.remove("networkMode").unwrap(), + networks_advanced: hashmap.remove("networksAdvanced").unwrap(), + pid_mode: hashmap.remove("pidMode").unwrap(), + ports: hashmap.remove("ports").unwrap(), + privileged: hashmap.remove("privileged").unwrap(), + publish_all_ports: hashmap.remove("publishAllPorts").unwrap(), + read_only: hashmap.remove("readOnly").unwrap(), + remove_volumes: hashmap.remove("removeVolumes").unwrap(), + restart: hashmap.remove("restart").unwrap(), + rm: hashmap.remove("rm").unwrap(), + runtime: hashmap.remove("runtime").unwrap(), + security_opts: hashmap.remove("securityOpts").unwrap(), + shm_size: hashmap.remove("shmSize").unwrap(), + start: hashmap.remove("start").unwrap(), + stdin_open: hashmap.remove("stdinOpen").unwrap(), + stop_signal: hashmap.remove("stopSignal").unwrap(), + stop_timeout: hashmap.remove("stopTimeout").unwrap(), + storage_opts: hashmap.remove("storageOpts").unwrap(), + sysctls: hashmap.remove("sysctls").unwrap(), + tmpfs: hashmap.remove("tmpfs").unwrap(), + tty: hashmap.remove("tty").unwrap(), + ulimits: hashmap.remove("ulimits").unwrap(), + uploads: hashmap.remove("uploads").unwrap(), + user: hashmap.remove("user").unwrap(), + userns_mode: hashmap.remove("usernsMode").unwrap(), + volumes: hashmap.remove("volumes").unwrap(), + wait: hashmap.remove("wait").unwrap(), + wait_timeout: hashmap.remove("waitTimeout").unwrap(), + working_dir: hashmap.remove("workingDir").unwrap(), } } } @@ -993,56 +603,17 @@ impl image::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + image::Res { - base_image_name: o - .fields - .iter() - .find(|o| o.name == "baseImageName") - .unwrap() - .output - .duplicate(), - context: o - .fields - .iter() - .find(|o| o.name == "context") - .unwrap() - .output - .duplicate(), - dockerfile: o - .fields - .iter() - .find(|o| o.name == "dockerfile") - .unwrap() - .output - .duplicate(), - image_name: o - .fields - .iter() - .find(|o| o.name == "imageName") - .unwrap() - .output - .duplicate(), - platform: o - .fields - .iter() - .find(|o| o.name == "platform") - .unwrap() - .output - .duplicate(), - registry_server: o - .fields - .iter() - .find(|o| o.name == "registryServer") - .unwrap() - .output - .duplicate(), - repo_digest: o - .fields - .iter() - .find(|o| o.name == "repoDigest") - .unwrap() - .output - .duplicate(), + base_image_name: hashmap.remove("baseImageName").unwrap(), + context: hashmap.remove("context").unwrap(), + dockerfile: hashmap.remove("dockerfile").unwrap(), + image_name: hashmap.remove("imageName").unwrap(), + platform: hashmap.remove("platform").unwrap(), + registry_server: hashmap.remove("registryServer").unwrap(), + repo_digest: hashmap.remove("repoDigest").unwrap(), } } } @@ -1147,98 +718,23 @@ impl network::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + network::Res { - attachable: o - .fields - .iter() - .find(|o| o.name == "attachable") - .unwrap() - .output - .duplicate(), - check_duplicate: o - .fields - .iter() - .find(|o| o.name == "checkDuplicate") - .unwrap() - .output - .duplicate(), - driver: o - .fields - .iter() - .find(|o| o.name == "driver") - .unwrap() - .output - .duplicate(), - ingress: o - .fields - .iter() - .find(|o| o.name == "ingress") - .unwrap() - .output - .duplicate(), - internal: o - .fields - .iter() - .find(|o| o.name == "internal") - .unwrap() - .output - .duplicate(), - ipam_configs: o - .fields - .iter() - .find(|o| o.name == "ipamConfigs") - .unwrap() - .output - .duplicate(), - ipam_driver: o - .fields - .iter() - .find(|o| o.name == "ipamDriver") - .unwrap() - .output - .duplicate(), - ipam_options: o - .fields - .iter() - .find(|o| o.name == "ipamOptions") - .unwrap() - .output - .duplicate(), - ipv6: o - .fields - .iter() - .find(|o| o.name == "ipv6") - .unwrap() - .output - .duplicate(), - labels: o - .fields - .iter() - .find(|o| o.name == "labels") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - options: o - .fields - .iter() - .find(|o| o.name == "options") - .unwrap() - .output - .duplicate(), - scope: o - .fields - .iter() - .find(|o| o.name == "scope") - .unwrap() - .output - .duplicate(), + attachable: hashmap.remove("attachable").unwrap(), + check_duplicate: hashmap.remove("checkDuplicate").unwrap(), + driver: hashmap.remove("driver").unwrap(), + ingress: hashmap.remove("ingress").unwrap(), + internal: hashmap.remove("internal").unwrap(), + ipam_configs: hashmap.remove("ipamConfigs").unwrap(), + ipam_driver: hashmap.remove("ipamDriver").unwrap(), + ipam_options: hashmap.remove("ipamOptions").unwrap(), + ipv6: hashmap.remove("ipv6").unwrap(), + labels: hashmap.remove("labels").unwrap(), + name: hashmap.remove("name").unwrap(), + options: hashmap.remove("options").unwrap(), + scope: hashmap.remove("scope").unwrap(), } } } @@ -1322,77 +818,20 @@ impl plugin::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + plugin::Res { - alias: o - .fields - .iter() - .find(|o| o.name == "alias") - .unwrap() - .output - .duplicate(), - enable_timeout: o - .fields - .iter() - .find(|o| o.name == "enableTimeout") - .unwrap() - .output - .duplicate(), - enabled: o - .fields - .iter() - .find(|o| o.name == "enabled") - .unwrap() - .output - .duplicate(), - envs: o - .fields - .iter() - .find(|o| o.name == "envs") - .unwrap() - .output - .duplicate(), - force_destroy: o - .fields - .iter() - .find(|o| o.name == "forceDestroy") - .unwrap() - .output - .duplicate(), - force_disable: o - .fields - .iter() - .find(|o| o.name == "forceDisable") - .unwrap() - .output - .duplicate(), - grant_all_permissions: o - .fields - .iter() - .find(|o| o.name == "grantAllPermissions") - .unwrap() - .output - .duplicate(), - grant_permissions: o - .fields - .iter() - .find(|o| o.name == "grantPermissions") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - plugin_reference: o - .fields - .iter() - .find(|o| o.name == "pluginReference") - .unwrap() - .output - .duplicate(), + alias: hashmap.remove("alias").unwrap(), + enable_timeout: hashmap.remove("enableTimeout").unwrap(), + enabled: hashmap.remove("enabled").unwrap(), + envs: hashmap.remove("envs").unwrap(), + force_destroy: hashmap.remove("forceDestroy").unwrap(), + force_disable: hashmap.remove("forceDisable").unwrap(), + grant_all_permissions: hashmap.remove("grantAllPermissions").unwrap(), + grant_permissions: hashmap.remove("grantPermissions").unwrap(), + name: hashmap.remove("name").unwrap(), + plugin_reference: hashmap.remove("pluginReference").unwrap(), } } } @@ -1441,42 +880,15 @@ impl registry_image::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + registry_image::Res { - insecure_skip_verify: o - .fields - .iter() - .find(|o| o.name == "insecureSkipVerify") - .unwrap() - .output - .duplicate(), - keep_remotely: o - .fields - .iter() - .find(|o| o.name == "keepRemotely") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - sha256_digest: o - .fields - .iter() - .find(|o| o.name == "sha256Digest") - .unwrap() - .output - .duplicate(), - triggers: o - .fields - .iter() - .find(|o| o.name == "triggers") - .unwrap() - .output - .duplicate(), + insecure_skip_verify: hashmap.remove("insecureSkipVerify").unwrap(), + keep_remotely: hashmap.remove("keepRemotely").unwrap(), + name: hashmap.remove("name").unwrap(), + sha256_digest: hashmap.remove("sha256Digest").unwrap(), + triggers: hashmap.remove("triggers").unwrap(), } } } @@ -1549,70 +961,19 @@ impl remote_image::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + remote_image::Res { - build: o - .fields - .iter() - .find(|o| o.name == "build") - .unwrap() - .output - .duplicate(), - force_remove: o - .fields - .iter() - .find(|o| o.name == "forceRemove") - .unwrap() - .output - .duplicate(), - image_id: o - .fields - .iter() - .find(|o| o.name == "imageId") - .unwrap() - .output - .duplicate(), - keep_locally: o - .fields - .iter() - .find(|o| o.name == "keepLocally") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - platform: o - .fields - .iter() - .find(|o| o.name == "platform") - .unwrap() - .output - .duplicate(), - pull_triggers: o - .fields - .iter() - .find(|o| o.name == "pullTriggers") - .unwrap() - .output - .duplicate(), - repo_digest: o - .fields - .iter() - .find(|o| o.name == "repoDigest") - .unwrap() - .output - .duplicate(), - triggers: o - .fields - .iter() - .find(|o| o.name == "triggers") - .unwrap() - .output - .duplicate(), + build: hashmap.remove("build").unwrap(), + force_remove: hashmap.remove("forceRemove").unwrap(), + image_id: hashmap.remove("imageId").unwrap(), + keep_locally: hashmap.remove("keepLocally").unwrap(), + name: hashmap.remove("name").unwrap(), + platform: hashmap.remove("platform").unwrap(), + pull_triggers: hashmap.remove("pullTriggers").unwrap(), + repo_digest: hashmap.remove("repoDigest").unwrap(), + triggers: hashmap.remove("triggers").unwrap(), } } } @@ -1651,28 +1012,13 @@ impl secret::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + secret::Res { - data: o - .fields - .iter() - .find(|o| o.name == "data") - .unwrap() - .output - .duplicate(), - labels: o - .fields - .iter() - .find(|o| o.name == "labels") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + data: hashmap.remove("data").unwrap(), + labels: hashmap.remove("labels").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -1753,70 +1099,19 @@ impl service::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + service::Res { - auth: o - .fields - .iter() - .find(|o| o.name == "auth") - .unwrap() - .output - .duplicate(), - converge_config: o - .fields - .iter() - .find(|o| o.name == "convergeConfig") - .unwrap() - .output - .duplicate(), - endpoint_spec: o - .fields - .iter() - .find(|o| o.name == "endpointSpec") - .unwrap() - .output - .duplicate(), - labels: o - .fields - .iter() - .find(|o| o.name == "labels") - .unwrap() - .output - .duplicate(), - mode: o - .fields - .iter() - .find(|o| o.name == "mode") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), - rollback_config: o - .fields - .iter() - .find(|o| o.name == "rollbackConfig") - .unwrap() - .output - .duplicate(), - task_spec: o - .fields - .iter() - .find(|o| o.name == "taskSpec") - .unwrap() - .output - .duplicate(), - update_config: o - .fields - .iter() - .find(|o| o.name == "updateConfig") - .unwrap() - .output - .duplicate(), + auth: hashmap.remove("auth").unwrap(), + converge_config: hashmap.remove("convergeConfig").unwrap(), + endpoint_spec: hashmap.remove("endpointSpec").unwrap(), + labels: hashmap.remove("labels").unwrap(), + mode: hashmap.remove("mode").unwrap(), + name: hashmap.remove("name").unwrap(), + rollback_config: hashmap.remove("rollbackConfig").unwrap(), + task_spec: hashmap.remove("taskSpec").unwrap(), + update_config: hashmap.remove("updateConfig").unwrap(), } } } @@ -1848,21 +1143,12 @@ impl service_config::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + service_config::Res { - data: o - .fields - .iter() - .find(|o| o.name == "data") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + data: hashmap.remove("data").unwrap(), + name: hashmap.remove("name").unwrap(), } } } @@ -1897,28 +1183,13 @@ impl tag::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + tag::Res { - source_image: o - .fields - .iter() - .find(|o| o.name == "sourceImage") - .unwrap() - .output - .duplicate(), - source_image_id: o - .fields - .iter() - .find(|o| o.name == "sourceImageId") - .unwrap() - .output - .duplicate(), - target_image: o - .fields - .iter() - .find(|o| o.name == "targetImage") - .unwrap() - .output - .duplicate(), + source_image: hashmap.remove("sourceImage").unwrap(), + source_image_id: hashmap.remove("sourceImageId").unwrap(), + target_image: hashmap.remove("targetImage").unwrap(), } } } @@ -1967,42 +1238,15 @@ impl volume::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + volume::Res { - driver: o - .fields - .iter() - .find(|o| o.name == "driver") - .unwrap() - .output - .duplicate(), - driver_opts: o - .fields - .iter() - .find(|o| o.name == "driverOpts") - .unwrap() - .output - .duplicate(), - labels: o - .fields - .iter() - .find(|o| o.name == "labels") - .unwrap() - .output - .duplicate(), - mountpoint: o - .fields - .iter() - .find(|o| o.name == "mountpoint") - .unwrap() - .output - .duplicate(), - name: o - .fields - .iter() - .find(|o| o.name == "name") - .unwrap() - .output - .duplicate(), + driver: hashmap.remove("driver").unwrap(), + driver_opts: hashmap.remove("driverOpts").unwrap(), + labels: hashmap.remove("labels").unwrap(), + mountpoint: hashmap.remove("mountpoint").unwrap(), + name: hashmap.remove("name").unwrap(), } } } diff --git a/providers/pulumi_wasm_provider_docker/wit/deps/pulumi-wasm.wit b/providers/pulumi_wasm_provider_docker/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/providers/pulumi_wasm_provider_docker/wit/deps/pulumi-wasm.wit +++ b/providers/pulumi_wasm_provider_docker/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/providers/pulumi_wasm_provider_docker_rust/Cargo.toml b/providers/pulumi_wasm_provider_docker_rust/Cargo.toml index 996789d21..69893ce18 100644 --- a/providers/pulumi_wasm_provider_docker_rust/Cargo.toml +++ b/providers/pulumi_wasm_provider_docker_rust/Cargo.toml @@ -7,7 +7,4 @@ edition = "2021" wit-bindgen.workspace = true pulumi_wasm_rust.workspace = true serde.workspace = true -automod.workspace = true - -[package.metadata.pulumi] -related_crate = "pulumi_wasm_docker_provider" +pulumi_wasm_wit = { workspace = true, features = ["client"] } \ No newline at end of file diff --git a/providers/pulumi_wasm_provider_docker_rust/src/lib.rs b/providers/pulumi_wasm_provider_docker_rust/src/lib.rs index 6ae799e80..6475b9921 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/lib.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/lib.rs @@ -1,5 +1,5 @@ -use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutput; use pulumi_wasm_rust::Output; +use pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface::Output as WitOutput; pub mod resource; pub mod types; @@ -8,22 +8,11 @@ mod bindings { // the name of the world in the `*.wit` input file world: "docker-pulumi-client", with: { - "component:pulumi-wasm/output-interface@0.0.0-DEV": generate + "component:pulumi-wasm/output-interface@0.0.0-DEV": pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface } }); } -fn random_to_domain_mapper(random: WitOutput) -> Output { - unsafe { - let inner = random.take_handle(); - Output::::new_from_handle(inner) - } -} - -fn clone(output: Output) -> WitOutput { - unsafe { - let inner = output.get_inner(); - let cloned = inner.duplicate(); - WitOutput::from_handle(cloned.take_handle()) - } +fn into_domain(output: WitOutput) -> Output { + unsafe { Output::::new_from_handle(output) } } diff --git a/providers/pulumi_wasm_provider_docker_rust/src/resource.rs b/providers/pulumi_wasm_provider_docker_rust/src/resource.rs index 957309333..048c49ffc 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/resource.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/resource.rs @@ -142,196 +142,142 @@ pub mod container { let result = crate::bindings::pulumi::docker::container::invoke( name, &crate::bindings::pulumi::docker::container::Args { - attach: &crate::clone::>(args.attach), - capabilities: &crate::clone::>( - args.capabilities, - ), - cgroupns_mode: &crate::clone::>(args.cgroupns_mode), - command: &crate::clone::>>(args.command), - container_read_refresh_timeout_milliseconds: &crate::clone::>( - args.container_read_refresh_timeout_milliseconds, - ), - cpu_set: &crate::clone::>(args.cpu_set), - cpu_shares: &crate::clone::>(args.cpu_shares), - destroy_grace_seconds: &crate::clone::>(args.destroy_grace_seconds), - devices: &crate::clone::>>(args.devices), - dns: &crate::clone::>>(args.dns), - dns_opts: &crate::clone::>>(args.dns_opts), - dns_searches: &crate::clone::>>(args.dns_searches), - domainname: &crate::clone::>(args.domainname), - entrypoints: &crate::clone::>>(args.entrypoints), - envs: &crate::clone::>>(args.envs), - gpus: &crate::clone::>(args.gpus), - group_adds: &crate::clone::>>(args.group_adds), - healthcheck: &crate::clone::>( - args.healthcheck, - ), - hostname: &crate::clone::>(args.hostname), - hosts: &crate::clone::>>(args.hosts), - image: &crate::clone::(args.image), - init: &crate::clone::>(args.init), - ipc_mode: &crate::clone::>(args.ipc_mode), - labels: &crate::clone::>>(args.labels), - log_driver: &crate::clone::>(args.log_driver), - log_opts: &crate::clone::>>( - args.log_opts, - ), - logs: &crate::clone::>(args.logs), - max_retry_count: &crate::clone::>(args.max_retry_count), - memory: &crate::clone::>(args.memory), - memory_swap: &crate::clone::>(args.memory_swap), - mounts: &crate::clone::>>(args.mounts), - must_run: &crate::clone::>(args.must_run), - name: &crate::clone::>(args.name), - network_mode: &crate::clone::>(args.network_mode), - networks_advanced: &crate::clone::< - Option>, - >(args.networks_advanced), - pid_mode: &crate::clone::>(args.pid_mode), - ports: &crate::clone::>>(args.ports), - privileged: &crate::clone::>(args.privileged), - publish_all_ports: &crate::clone::>(args.publish_all_ports), - read_only: &crate::clone::>(args.read_only), - remove_volumes: &crate::clone::>(args.remove_volumes), - restart: &crate::clone::>(args.restart), - rm: &crate::clone::>(args.rm), - runtime: &crate::clone::>(args.runtime), - security_opts: &crate::clone::>>(args.security_opts), - shm_size: &crate::clone::>(args.shm_size), - start: &crate::clone::>(args.start), - stdin_open: &crate::clone::>(args.stdin_open), - stop_signal: &crate::clone::>(args.stop_signal), - stop_timeout: &crate::clone::>(args.stop_timeout), - storage_opts: &crate::clone::>>( - args.storage_opts, - ), - sysctls: &crate::clone::>>( - args.sysctls, - ), - tmpfs: &crate::clone::>>( - args.tmpfs, - ), - tty: &crate::clone::>(args.tty), - ulimits: &crate::clone::>>(args.ulimits), - uploads: &crate::clone::>>(args.uploads), - user: &crate::clone::>(args.user), - userns_mode: &crate::clone::>(args.userns_mode), - volumes: &crate::clone::>>(args.volumes), - wait: &crate::clone::>(args.wait), - wait_timeout: &crate::clone::>(args.wait_timeout), - working_dir: &crate::clone::>(args.working_dir), + attach: args.attach.get_inner(), + capabilities: args.capabilities.get_inner(), + cgroupns_mode: args.cgroupns_mode.get_inner(), + command: args.command.get_inner(), + container_read_refresh_timeout_milliseconds: args + .container_read_refresh_timeout_milliseconds + .get_inner(), + cpu_set: args.cpu_set.get_inner(), + cpu_shares: args.cpu_shares.get_inner(), + destroy_grace_seconds: args.destroy_grace_seconds.get_inner(), + devices: args.devices.get_inner(), + dns: args.dns.get_inner(), + dns_opts: args.dns_opts.get_inner(), + dns_searches: args.dns_searches.get_inner(), + domainname: args.domainname.get_inner(), + entrypoints: args.entrypoints.get_inner(), + envs: args.envs.get_inner(), + gpus: args.gpus.get_inner(), + group_adds: args.group_adds.get_inner(), + healthcheck: args.healthcheck.get_inner(), + hostname: args.hostname.get_inner(), + hosts: args.hosts.get_inner(), + image: args.image.get_inner(), + init: args.init.get_inner(), + ipc_mode: args.ipc_mode.get_inner(), + labels: args.labels.get_inner(), + log_driver: args.log_driver.get_inner(), + log_opts: args.log_opts.get_inner(), + logs: args.logs.get_inner(), + max_retry_count: args.max_retry_count.get_inner(), + memory: args.memory.get_inner(), + memory_swap: args.memory_swap.get_inner(), + mounts: args.mounts.get_inner(), + must_run: args.must_run.get_inner(), + name: args.name.get_inner(), + network_mode: args.network_mode.get_inner(), + networks_advanced: args.networks_advanced.get_inner(), + pid_mode: args.pid_mode.get_inner(), + ports: args.ports.get_inner(), + privileged: args.privileged.get_inner(), + publish_all_ports: args.publish_all_ports.get_inner(), + read_only: args.read_only.get_inner(), + remove_volumes: args.remove_volumes.get_inner(), + restart: args.restart.get_inner(), + rm: args.rm.get_inner(), + runtime: args.runtime.get_inner(), + security_opts: args.security_opts.get_inner(), + shm_size: args.shm_size.get_inner(), + start: args.start.get_inner(), + stdin_open: args.stdin_open.get_inner(), + stop_signal: args.stop_signal.get_inner(), + stop_timeout: args.stop_timeout.get_inner(), + storage_opts: args.storage_opts.get_inner(), + sysctls: args.sysctls.get_inner(), + tmpfs: args.tmpfs.get_inner(), + tty: args.tty.get_inner(), + ulimits: args.ulimits.get_inner(), + uploads: args.uploads.get_inner(), + user: args.user.get_inner(), + userns_mode: args.userns_mode.get_inner(), + volumes: args.volumes.get_inner(), + wait: args.wait.get_inner(), + wait_timeout: args.wait_timeout.get_inner(), + working_dir: args.working_dir.get_inner(), }, ); ContainerResult { - attach: crate::random_to_domain_mapper::>(result.attach), - bridge: crate::random_to_domain_mapper::(result.bridge), - capabilities: crate::random_to_domain_mapper::< - Option, - >(result.capabilities), - cgroupns_mode: crate::random_to_domain_mapper::>(result.cgroupns_mode), - command: crate::random_to_domain_mapper::>(result.command), - container_logs: crate::random_to_domain_mapper::>(result.container_logs), - container_read_refresh_timeout_milliseconds: crate::random_to_domain_mapper::< - Option, - >( + attach: crate::into_domain(result.attach), + bridge: crate::into_domain(result.bridge), + capabilities: crate::into_domain(result.capabilities), + cgroupns_mode: crate::into_domain(result.cgroupns_mode), + command: crate::into_domain(result.command), + container_logs: crate::into_domain(result.container_logs), + container_read_refresh_timeout_milliseconds: crate::into_domain( result.container_read_refresh_timeout_milliseconds, ), - cpu_set: crate::random_to_domain_mapper::>(result.cpu_set), - cpu_shares: crate::random_to_domain_mapper::>(result.cpu_shares), - destroy_grace_seconds: crate::random_to_domain_mapper::>( - result.destroy_grace_seconds, - ), - devices: crate::random_to_domain_mapper::>>( - result.devices, - ), - dns: crate::random_to_domain_mapper::>>(result.dns), - dns_opts: crate::random_to_domain_mapper::>>(result.dns_opts), - dns_searches: crate::random_to_domain_mapper::>>( - result.dns_searches, - ), - domainname: crate::random_to_domain_mapper::>(result.domainname), - entrypoints: crate::random_to_domain_mapper::>(result.entrypoints), - envs: crate::random_to_domain_mapper::>(result.envs), - exit_code: crate::random_to_domain_mapper::(result.exit_code), - gpus: crate::random_to_domain_mapper::>(result.gpus), - group_adds: crate::random_to_domain_mapper::>>(result.group_adds), - healthcheck: crate::random_to_domain_mapper::>( - result.healthcheck, - ), - hostname: crate::random_to_domain_mapper::(result.hostname), - hosts: crate::random_to_domain_mapper::>>( - result.hosts, - ), - image: crate::random_to_domain_mapper::(result.image), - init: crate::random_to_domain_mapper::(result.init), - ipc_mode: crate::random_to_domain_mapper::(result.ipc_mode), - labels: crate::random_to_domain_mapper::>( - result.labels, - ), - log_driver: crate::random_to_domain_mapper::(result.log_driver), - log_opts: crate::random_to_domain_mapper::< - Option>, - >(result.log_opts), - logs: crate::random_to_domain_mapper::>(result.logs), - max_retry_count: crate::random_to_domain_mapper::>(result.max_retry_count), - memory: crate::random_to_domain_mapper::>(result.memory), - memory_swap: crate::random_to_domain_mapper::>(result.memory_swap), - mounts: crate::random_to_domain_mapper::>>( - result.mounts, - ), - must_run: crate::random_to_domain_mapper::>(result.must_run), - name: crate::random_to_domain_mapper::(result.name), - network_datas: crate::random_to_domain_mapper::>( - result.network_datas, - ), - network_mode: crate::random_to_domain_mapper::>(result.network_mode), - networks_advanced: crate::random_to_domain_mapper::< - Option>, - >(result.networks_advanced), - pid_mode: crate::random_to_domain_mapper::>(result.pid_mode), - ports: crate::random_to_domain_mapper::>>( - result.ports, - ), - privileged: crate::random_to_domain_mapper::>(result.privileged), - publish_all_ports: crate::random_to_domain_mapper::>( - result.publish_all_ports, - ), - read_only: crate::random_to_domain_mapper::>(result.read_only), - remove_volumes: crate::random_to_domain_mapper::>(result.remove_volumes), - restart: crate::random_to_domain_mapper::>(result.restart), - rm: crate::random_to_domain_mapper::>(result.rm), - runtime: crate::random_to_domain_mapper::(result.runtime), - security_opts: crate::random_to_domain_mapper::>(result.security_opts), - shm_size: crate::random_to_domain_mapper::(result.shm_size), - start: crate::random_to_domain_mapper::>(result.start), - stdin_open: crate::random_to_domain_mapper::>(result.stdin_open), - stop_signal: crate::random_to_domain_mapper::(result.stop_signal), - stop_timeout: crate::random_to_domain_mapper::(result.stop_timeout), - storage_opts: crate::random_to_domain_mapper::< - Option>, - >(result.storage_opts), - sysctls: crate::random_to_domain_mapper::< - Option>, - >(result.sysctls), - tmpfs: crate::random_to_domain_mapper::< - Option>, - >(result.tmpfs), - tty: crate::random_to_domain_mapper::>(result.tty), - ulimits: crate::random_to_domain_mapper::>>( - result.ulimits, - ), - uploads: crate::random_to_domain_mapper::>>( - result.uploads, - ), - user: crate::random_to_domain_mapper::>(result.user), - userns_mode: crate::random_to_domain_mapper::>(result.userns_mode), - volumes: crate::random_to_domain_mapper::>>( - result.volumes, - ), - wait: crate::random_to_domain_mapper::>(result.wait), - wait_timeout: crate::random_to_domain_mapper::>(result.wait_timeout), - working_dir: crate::random_to_domain_mapper::>(result.working_dir), + cpu_set: crate::into_domain(result.cpu_set), + cpu_shares: crate::into_domain(result.cpu_shares), + destroy_grace_seconds: crate::into_domain(result.destroy_grace_seconds), + devices: crate::into_domain(result.devices), + dns: crate::into_domain(result.dns), + dns_opts: crate::into_domain(result.dns_opts), + dns_searches: crate::into_domain(result.dns_searches), + domainname: crate::into_domain(result.domainname), + entrypoints: crate::into_domain(result.entrypoints), + envs: crate::into_domain(result.envs), + exit_code: crate::into_domain(result.exit_code), + gpus: crate::into_domain(result.gpus), + group_adds: crate::into_domain(result.group_adds), + healthcheck: crate::into_domain(result.healthcheck), + hostname: crate::into_domain(result.hostname), + hosts: crate::into_domain(result.hosts), + image: crate::into_domain(result.image), + init: crate::into_domain(result.init), + ipc_mode: crate::into_domain(result.ipc_mode), + labels: crate::into_domain(result.labels), + log_driver: crate::into_domain(result.log_driver), + log_opts: crate::into_domain(result.log_opts), + logs: crate::into_domain(result.logs), + max_retry_count: crate::into_domain(result.max_retry_count), + memory: crate::into_domain(result.memory), + memory_swap: crate::into_domain(result.memory_swap), + mounts: crate::into_domain(result.mounts), + must_run: crate::into_domain(result.must_run), + name: crate::into_domain(result.name), + network_datas: crate::into_domain(result.network_datas), + network_mode: crate::into_domain(result.network_mode), + networks_advanced: crate::into_domain(result.networks_advanced), + pid_mode: crate::into_domain(result.pid_mode), + ports: crate::into_domain(result.ports), + privileged: crate::into_domain(result.privileged), + publish_all_ports: crate::into_domain(result.publish_all_ports), + read_only: crate::into_domain(result.read_only), + remove_volumes: crate::into_domain(result.remove_volumes), + restart: crate::into_domain(result.restart), + rm: crate::into_domain(result.rm), + runtime: crate::into_domain(result.runtime), + security_opts: crate::into_domain(result.security_opts), + shm_size: crate::into_domain(result.shm_size), + start: crate::into_domain(result.start), + stdin_open: crate::into_domain(result.stdin_open), + stop_signal: crate::into_domain(result.stop_signal), + stop_timeout: crate::into_domain(result.stop_timeout), + storage_opts: crate::into_domain(result.storage_opts), + sysctls: crate::into_domain(result.sysctls), + tmpfs: crate::into_domain(result.tmpfs), + tty: crate::into_domain(result.tty), + ulimits: crate::into_domain(result.ulimits), + uploads: crate::into_domain(result.uploads), + user: crate::into_domain(result.user), + userns_mode: crate::into_domain(result.userns_mode), + volumes: crate::into_domain(result.volumes), + wait: crate::into_domain(result.wait), + wait_timeout: crate::into_domain(result.wait_timeout), + working_dir: crate::into_domain(result.working_dir), } } } @@ -360,22 +306,22 @@ pub mod image { let result = crate::bindings::pulumi::docker::image::invoke( name, &crate::bindings::pulumi::docker::image::Args { - build: &crate::clone::>(args.build), - build_on_preview: &crate::clone::>(args.build_on_preview), - image_name: &crate::clone::(args.image_name), - registry: &crate::clone::>(args.registry), - skip_push: &crate::clone::>(args.skip_push), + build: args.build.get_inner(), + build_on_preview: args.build_on_preview.get_inner(), + image_name: args.image_name.get_inner(), + registry: args.registry.get_inner(), + skip_push: args.skip_push.get_inner(), }, ); ImageResult { - base_image_name: crate::random_to_domain_mapper::(result.base_image_name), - context: crate::random_to_domain_mapper::(result.context), - dockerfile: crate::random_to_domain_mapper::(result.dockerfile), - image_name: crate::random_to_domain_mapper::(result.image_name), - platform: crate::random_to_domain_mapper::>(result.platform), - registry_server: crate::random_to_domain_mapper::(result.registry_server), - repo_digest: crate::random_to_domain_mapper::(result.repo_digest), + base_image_name: crate::into_domain(result.base_image_name), + context: crate::into_domain(result.context), + dockerfile: crate::into_domain(result.dockerfile), + image_name: crate::into_domain(result.image_name), + platform: crate::into_domain(result.platform), + registry_server: crate::into_domain(result.registry_server), + repo_digest: crate::into_domain(result.repo_digest), } } } @@ -419,49 +365,35 @@ pub mod network { let result = crate::bindings::pulumi::docker::network::invoke( name, &crate::bindings::pulumi::docker::network::Args { - attachable: &crate::clone::>(args.attachable), - check_duplicate: &crate::clone::>(args.check_duplicate), - driver: &crate::clone::>(args.driver), - ingress: &crate::clone::>(args.ingress), - internal: &crate::clone::>(args.internal), - ipam_configs: &crate::clone::>>( - args.ipam_configs, - ), - ipam_driver: &crate::clone::>(args.ipam_driver), - ipam_options: &crate::clone::>>( - args.ipam_options, - ), - ipv6: &crate::clone::>(args.ipv6), - labels: &crate::clone::>>(args.labels), - name: &crate::clone::>(args.name), - options: &crate::clone::>>( - args.options, - ), + attachable: args.attachable.get_inner(), + check_duplicate: args.check_duplicate.get_inner(), + driver: args.driver.get_inner(), + ingress: args.ingress.get_inner(), + internal: args.internal.get_inner(), + ipam_configs: args.ipam_configs.get_inner(), + ipam_driver: args.ipam_driver.get_inner(), + ipam_options: args.ipam_options.get_inner(), + ipv6: args.ipv6.get_inner(), + labels: args.labels.get_inner(), + name: args.name.get_inner(), + options: args.options.get_inner(), }, ); NetworkResult { - attachable: crate::random_to_domain_mapper::>(result.attachable), - check_duplicate: crate::random_to_domain_mapper::>(result.check_duplicate), - driver: crate::random_to_domain_mapper::(result.driver), - ingress: crate::random_to_domain_mapper::>(result.ingress), - internal: crate::random_to_domain_mapper::(result.internal), - ipam_configs: crate::random_to_domain_mapper::>( - result.ipam_configs, - ), - ipam_driver: crate::random_to_domain_mapper::>(result.ipam_driver), - ipam_options: crate::random_to_domain_mapper::< - Option>, - >(result.ipam_options), - ipv6: crate::random_to_domain_mapper::>(result.ipv6), - labels: crate::random_to_domain_mapper::>>( - result.labels, - ), - name: crate::random_to_domain_mapper::(result.name), - options: crate::random_to_domain_mapper::>( - result.options, - ), - scope: crate::random_to_domain_mapper::(result.scope), + attachable: crate::into_domain(result.attachable), + check_duplicate: crate::into_domain(result.check_duplicate), + driver: crate::into_domain(result.driver), + ingress: crate::into_domain(result.ingress), + internal: crate::into_domain(result.internal), + ipam_configs: crate::into_domain(result.ipam_configs), + ipam_driver: crate::into_domain(result.ipam_driver), + ipam_options: crate::into_domain(result.ipam_options), + ipv6: crate::into_domain(result.ipv6), + labels: crate::into_domain(result.labels), + name: crate::into_domain(result.name), + options: crate::into_domain(result.options), + scope: crate::into_domain(result.scope), } } } @@ -499,35 +431,29 @@ pub mod plugin { let result = crate::bindings::pulumi::docker::plugin::invoke( name, &crate::bindings::pulumi::docker::plugin::Args { - alias: &crate::clone::>(args.alias), - enable_timeout: &crate::clone::>(args.enable_timeout), - enabled: &crate::clone::>(args.enabled), - envs: &crate::clone::>>(args.envs), - force_destroy: &crate::clone::>(args.force_destroy), - force_disable: &crate::clone::>(args.force_disable), - grant_all_permissions: &crate::clone::>(args.grant_all_permissions), - grant_permissions: &crate::clone::>>( - args.grant_permissions, - ), - name: &crate::clone::>(args.name), + alias: args.alias.get_inner(), + enable_timeout: args.enable_timeout.get_inner(), + enabled: args.enabled.get_inner(), + envs: args.envs.get_inner(), + force_destroy: args.force_destroy.get_inner(), + force_disable: args.force_disable.get_inner(), + grant_all_permissions: args.grant_all_permissions.get_inner(), + grant_permissions: args.grant_permissions.get_inner(), + name: args.name.get_inner(), }, ); PluginResult { - alias: crate::random_to_domain_mapper::(result.alias), - enable_timeout: crate::random_to_domain_mapper::>(result.enable_timeout), - enabled: crate::random_to_domain_mapper::>(result.enabled), - envs: crate::random_to_domain_mapper::>(result.envs), - force_destroy: crate::random_to_domain_mapper::>(result.force_destroy), - force_disable: crate::random_to_domain_mapper::>(result.force_disable), - grant_all_permissions: crate::random_to_domain_mapper::>( - result.grant_all_permissions, - ), - grant_permissions: crate::random_to_domain_mapper::< - Option>, - >(result.grant_permissions), - name: crate::random_to_domain_mapper::(result.name), - plugin_reference: crate::random_to_domain_mapper::(result.plugin_reference), + alias: crate::into_domain(result.alias), + enable_timeout: crate::into_domain(result.enable_timeout), + enabled: crate::into_domain(result.enabled), + envs: crate::into_domain(result.envs), + force_destroy: crate::into_domain(result.force_destroy), + force_disable: crate::into_domain(result.force_disable), + grant_all_permissions: crate::into_domain(result.grant_all_permissions), + grant_permissions: crate::into_domain(result.grant_permissions), + name: crate::into_domain(result.name), + plugin_reference: crate::into_domain(result.plugin_reference), } } } @@ -553,25 +479,19 @@ pub mod registry_image { let result = crate::bindings::pulumi::docker::registry_image::invoke( name, &crate::bindings::pulumi::docker::registry_image::Args { - insecure_skip_verify: &crate::clone::>(args.insecure_skip_verify), - keep_remotely: &crate::clone::>(args.keep_remotely), - name: &crate::clone::>(args.name), - triggers: &crate::clone::>>( - args.triggers, - ), + insecure_skip_verify: args.insecure_skip_verify.get_inner(), + keep_remotely: args.keep_remotely.get_inner(), + name: args.name.get_inner(), + triggers: args.triggers.get_inner(), }, ); RegistryImageResult { - insecure_skip_verify: crate::random_to_domain_mapper::>( - result.insecure_skip_verify, - ), - keep_remotely: crate::random_to_domain_mapper::>(result.keep_remotely), - name: crate::random_to_domain_mapper::(result.name), - sha256_digest: crate::random_to_domain_mapper::(result.sha256_digest), - triggers: crate::random_to_domain_mapper::< - Option>, - >(result.triggers), + insecure_skip_verify: crate::into_domain(result.insecure_skip_verify), + keep_remotely: crate::into_domain(result.keep_remotely), + name: crate::into_domain(result.name), + sha256_digest: crate::into_domain(result.sha256_digest), + triggers: crate::into_domain(result.triggers), } } } @@ -604,34 +524,26 @@ pub mod remote_image { let result = crate::bindings::pulumi::docker::remote_image::invoke( name, &crate::bindings::pulumi::docker::remote_image::Args { - build: &crate::clone::>(args.build), - force_remove: &crate::clone::>(args.force_remove), - keep_locally: &crate::clone::>(args.keep_locally), - name: &crate::clone::(args.name), - platform: &crate::clone::>(args.platform), - pull_triggers: &crate::clone::>>(args.pull_triggers), - triggers: &crate::clone::>>( - args.triggers, - ), + build: args.build.get_inner(), + force_remove: args.force_remove.get_inner(), + keep_locally: args.keep_locally.get_inner(), + name: args.name.get_inner(), + platform: args.platform.get_inner(), + pull_triggers: args.pull_triggers.get_inner(), + triggers: args.triggers.get_inner(), }, ); RemoteImageResult { - build: crate::random_to_domain_mapper::>( - result.build, - ), - force_remove: crate::random_to_domain_mapper::>(result.force_remove), - image_id: crate::random_to_domain_mapper::(result.image_id), - keep_locally: crate::random_to_domain_mapper::>(result.keep_locally), - name: crate::random_to_domain_mapper::(result.name), - platform: crate::random_to_domain_mapper::>(result.platform), - pull_triggers: crate::random_to_domain_mapper::>>( - result.pull_triggers, - ), - repo_digest: crate::random_to_domain_mapper::(result.repo_digest), - triggers: crate::random_to_domain_mapper::< - Option>, - >(result.triggers), + build: crate::into_domain(result.build), + force_remove: crate::into_domain(result.force_remove), + image_id: crate::into_domain(result.image_id), + keep_locally: crate::into_domain(result.keep_locally), + name: crate::into_domain(result.name), + platform: crate::into_domain(result.platform), + pull_triggers: crate::into_domain(result.pull_triggers), + repo_digest: crate::into_domain(result.repo_digest), + triggers: crate::into_domain(result.triggers), } } } @@ -654,18 +566,16 @@ pub mod secret { let result = crate::bindings::pulumi::docker::secret::invoke( name, &crate::bindings::pulumi::docker::secret::Args { - data: &crate::clone::(args.data), - labels: &crate::clone::>>(args.labels), - name: &crate::clone::>(args.name), + data: args.data.get_inner(), + labels: args.labels.get_inner(), + name: args.name.get_inner(), }, ); SecretResult { - data: crate::random_to_domain_mapper::(result.data), - labels: crate::random_to_domain_mapper::>>( - result.labels, - ), - name: crate::random_to_domain_mapper::(result.name), + data: crate::into_domain(result.data), + labels: crate::into_domain(result.labels), + name: crate::into_domain(result.name), } } } @@ -700,48 +610,28 @@ pub mod service { let result = crate::bindings::pulumi::docker::service::invoke( name, &crate::bindings::pulumi::docker::service::Args { - auth: &crate::clone::>(args.auth), - converge_config: &crate::clone::>( - args.converge_config, - ), - endpoint_spec: &crate::clone::>( - args.endpoint_spec, - ), - labels: &crate::clone::>>(args.labels), - mode: &crate::clone::>(args.mode), - name: &crate::clone::>(args.name), - rollback_config: &crate::clone::>( - args.rollback_config, - ), - task_spec: &crate::clone::(args.task_spec), - update_config: &crate::clone::>( - args.update_config, - ), + auth: args.auth.get_inner(), + converge_config: args.converge_config.get_inner(), + endpoint_spec: args.endpoint_spec.get_inner(), + labels: args.labels.get_inner(), + mode: args.mode.get_inner(), + name: args.name.get_inner(), + rollback_config: args.rollback_config.get_inner(), + task_spec: args.task_spec.get_inner(), + update_config: args.update_config.get_inner(), }, ); ServiceResult { - auth: crate::random_to_domain_mapper::>(result.auth), - converge_config: crate::random_to_domain_mapper::< - Option, - >(result.converge_config), - endpoint_spec: crate::random_to_domain_mapper::( - result.endpoint_spec, - ), - labels: crate::random_to_domain_mapper::>( - result.labels, - ), - mode: crate::random_to_domain_mapper::(result.mode), - name: crate::random_to_domain_mapper::(result.name), - rollback_config: crate::random_to_domain_mapper::< - Option, - >(result.rollback_config), - task_spec: crate::random_to_domain_mapper::( - result.task_spec, - ), - update_config: crate::random_to_domain_mapper::< - Option, - >(result.update_config), + auth: crate::into_domain(result.auth), + converge_config: crate::into_domain(result.converge_config), + endpoint_spec: crate::into_domain(result.endpoint_spec), + labels: crate::into_domain(result.labels), + mode: crate::into_domain(result.mode), + name: crate::into_domain(result.name), + rollback_config: crate::into_domain(result.rollback_config), + task_spec: crate::into_domain(result.task_spec), + update_config: crate::into_domain(result.update_config), } } } @@ -762,14 +652,14 @@ pub mod service_config { let result = crate::bindings::pulumi::docker::service_config::invoke( name, &crate::bindings::pulumi::docker::service_config::Args { - data: &crate::clone::(args.data), - name: &crate::clone::>(args.name), + data: args.data.get_inner(), + name: args.name.get_inner(), }, ); ServiceConfigResult { - data: crate::random_to_domain_mapper::(result.data), - name: crate::random_to_domain_mapper::(result.name), + data: crate::into_domain(result.data), + name: crate::into_domain(result.name), } } } @@ -791,15 +681,15 @@ pub mod tag { let result = crate::bindings::pulumi::docker::tag::invoke( name, &crate::bindings::pulumi::docker::tag::Args { - source_image: &crate::clone::(args.source_image), - target_image: &crate::clone::(args.target_image), + source_image: args.source_image.get_inner(), + target_image: args.target_image.get_inner(), }, ); TagResult { - source_image: crate::random_to_domain_mapper::(result.source_image), - source_image_id: crate::random_to_domain_mapper::(result.source_image_id), - target_image: crate::random_to_domain_mapper::(result.target_image), + source_image: crate::into_domain(result.source_image), + source_image_id: crate::into_domain(result.source_image_id), + target_image: crate::into_domain(result.target_image), } } } @@ -827,25 +717,19 @@ pub mod volume { let result = crate::bindings::pulumi::docker::volume::invoke( name, &crate::bindings::pulumi::docker::volume::Args { - driver: &crate::clone::>(args.driver), - driver_opts: &crate::clone::>>( - args.driver_opts, - ), - labels: &crate::clone::>>(args.labels), - name: &crate::clone::>(args.name), + driver: args.driver.get_inner(), + driver_opts: args.driver_opts.get_inner(), + labels: args.labels.get_inner(), + name: args.name.get_inner(), }, ); VolumeResult { - driver: crate::random_to_domain_mapper::(result.driver), - driver_opts: crate::random_to_domain_mapper::< - Option>, - >(result.driver_opts), - labels: crate::random_to_domain_mapper::>>( - result.labels, - ), - mountpoint: crate::random_to_domain_mapper::(result.mountpoint), - name: crate::random_to_domain_mapper::(result.name), + driver: crate::into_domain(result.driver), + driver_opts: crate::into_domain(result.driver_opts), + labels: crate::into_domain(result.labels), + mountpoint: crate::into_domain(result.mountpoint), + name: crate::into_domain(result.name), } } } diff --git a/providers/pulumi_wasm_provider_docker_rust/wit/deps/pulumi-wasm.wit b/providers/pulumi_wasm_provider_docker_rust/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/providers/pulumi_wasm_provider_docker_rust/wit/deps/pulumi-wasm.wit +++ b/providers/pulumi_wasm_provider_docker_rust/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/providers/pulumi_wasm_provider_random/src/bindings.rs b/providers/pulumi_wasm_provider_random/src/bindings.rs index ee56741c8..1e4db4c6d 100644 --- a/providers/pulumi_wasm_provider_random/src/bindings.rs +++ b/providers/pulumi_wasm_provider_random/src/bindings.rs @@ -111,28 +111,6 @@ pub mod component { } } } - impl Output { - #[allow(unused_unsafe, clippy::all)] - pub fn duplicate(&self) -> Output { - unsafe { - #[cfg(target_arch = "wasm32")] - #[link( - wasm_import_module = "component:pulumi-wasm/output-interface@0.0.0-DEV" - )] - extern "C" { - #[link_name = "[method]output.duplicate"] - fn wit_import(_: i32) -> i32; - } - - #[cfg(not(target_arch = "wasm32"))] - fn wit_import(_: i32) -> i32 { - unreachable!() - } - let ret = wit_import((self).handle() as i32); - Output::from_handle(ret as u32) - } - } - } #[allow(unused_unsafe, clippy::all)] pub fn combine(outputs: _rt::Vec) -> Output { unsafe { @@ -1653,69 +1631,68 @@ pub(crate) use __export_random_pulumi_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:random-pulumi:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 2826] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x86\x15\x01A\x02\x01\ -A\x15\x01B\x0c\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 2786] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xde\x14\x01A\x02\x01\ +A\x15\x01B\x0a\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05values\0\x01\x04\0\x13\ [constructor]output\x01\x02\x01h\0\x01@\x02\x04self\x03\x0dfunction-names\0\x01\x04\ -\0\x12[method]output.map\x01\x04\x01@\x01\x04self\x03\0\x01\x04\0\x18[method]out\ -put.duplicate\x01\x05\x01p\x01\x01@\x01\x07outputs\x06\0\x01\x04\0\x07combine\x01\ -\x07\x03\x010component:pulumi-wasm/output-interface@0.0.0-DEV\x05\0\x02\x03\0\0\x06\ -output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x02\x04\ -names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04names\x04\0\x0cre\ -sult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\x1eregister-\ -resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\x04names\x06\ -object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\x01p\x09\x01\ -r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01@\x01\x07requ\ -est\x0d\0\x10\x04\0\x08register\x01\x11\x03\x012component:pulumi-wasm/register-i\ -nterface@0.0.0-DEV\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01\ -h\x01\x01r\x02\x07keepers\x02\x06length\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01\ -r\x04\x06base64\x05\x03hex\x05\x07keepers\x05\x06length\x05\x04\0\x03res\x03\0\x06\ -\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01pulumi:random/ra\ -ndom-integer@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x05\x01B\x0a\x02\x03\x02\x01\x01\ -\x04\0\x06output\x03\0\0\x01h\x01\x01r\x0c\x07keepers\x02\x06length\x02\x05lower\ -\x02\x09min-lower\x02\x0bmin-numeric\x02\x0bmin-special\x02\x09min-upper\x02\x06\ -number\x02\x07numeric\x02\x10override-special\x02\x07special\x02\x05upper\x02\x04\ -\0\x04args\x03\0\x03\x01i\x01\x01r\x0e\x0bbcrypt-hash\x05\x07keepers\x05\x06leng\ -th\x05\x05lower\x05\x09min-lower\x05\x0bmin-numeric\x05\x0bmin-special\x05\x09mi\ -n-upper\x05\x06number\x05\x07numeric\x05\x10override-special\x05\x06result\x05\x07\ -special\x05\x05upper\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\ -\x04\0\x06invoke\x01\x08\x04\x01?pulumi:random/random-password@4.15.0-DIVIDER-ZE\ -RO.ZERO.ZERO-DEV\x05\x06\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01\ -h\x01\x01r\x04\x07keepers\x02\x06length\x02\x06prefix\x02\x09separator\x02\x04\0\ -\x04args\x03\0\x03\x01i\x01\x01r\x04\x07keepers\x05\x06length\x05\x06prefix\x05\x09\ -separator\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06\ -invoke\x01\x08\x04\x01:pulumi:random/random-pet@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DE\ -V\x05\x07\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x04\ -\x06inputs\x02\x07keepers\x02\x0cresult-count\x02\x04seed\x02\x04\0\x04args\x03\0\ -\x03\x01i\x01\x01r\x05\x06inputs\x05\x07keepers\x05\x0cresult-count\x05\x07resul\ -ts\x05\x04seed\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\ -\0\x06invoke\x01\x08\x04\x01>pulumi:random/random-shuffle@4.15.0-DIVIDER-ZERO.ZE\ -RO.ZERO-DEV\x05\x08\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ -\x01r\x0c\x07keepers\x02\x06length\x02\x05lower\x02\x09min-lower\x02\x0bmin-nume\ -ric\x02\x0bmin-special\x02\x09min-upper\x02\x06number\x02\x07numeric\x02\x10over\ -ride-special\x02\x07special\x02\x05upper\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01\ -r\x0d\x07keepers\x05\x06length\x05\x05lower\x05\x09min-lower\x05\x0bmin-numeric\x05\ -\x0bmin-special\x05\x09min-upper\x05\x06number\x05\x07numeric\x05\x10override-sp\ -ecial\x05\x06result\x05\x07special\x05\x05upper\x05\x04\0\x03res\x03\0\x06\x01@\x02\ -\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01=pulumi:random/random\ --string@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x09\x01B\x0a\x02\x03\x02\x01\x01\x04\ -\0\x06output\x03\0\0\x01h\x01\x01r\x01\x07keepers\x02\x04\0\x04args\x03\0\x03\x01\ -i\x01\x01r\x02\x07keepers\x05\x06result\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04n\ -ames\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01;pulumi:random/random-uuid\ -@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x0a\x04\x01=pulumi:random/random-pulumi@4\ -.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x04\0\x0b\x13\x01\0\x0drandom-pulumi\x03\0\0\0G\ -\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10wit-bindgen\ --rust\x060.25.0"; +\0\x12[method]output.map\x01\x04\x01p\x01\x01@\x01\x07outputs\x05\0\x01\x04\0\x07\ +combine\x01\x06\x03\x010component:pulumi-wasm/output-interface@0.0.0-DEV\x05\0\x02\ +\x03\0\0\x06output\x01B\x13\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\ +\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01r\x01\x04name\ +s\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06output\x07\x04\0\ +\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\x04\x04types\ +\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-request\x03\0\x0c\ +\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-result\x03\0\x0f\x01\ +@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x03\x012component:pulumi-wa\ +sm/register-interface@0.0.0-DEV\x05\x02\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06ou\ +tput\x03\0\0\x01h\x01\x01r\x02\x07keepers\x02\x06length\x02\x04\0\x04args\x03\0\x03\ +\x01i\x01\x01r\x04\x06base64\x05\x03hex\x05\x07keepers\x05\x06length\x05\x04\0\x03\ +res\x03\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01\ +pulum\ +i:random/random-integer@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x05\x01B\x0a\x02\x03\ +\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x0c\x07keepers\x02\x06length\x02\ +\x05lower\x02\x09min-lower\x02\x0bmin-numeric\x02\x0bmin-special\x02\x09min-uppe\ +r\x02\x06number\x02\x07numeric\x02\x10override-special\x02\x07special\x02\x05upp\ +er\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x0e\x0bbcrypt-hash\x05\x07keepers\x05\ +\x06length\x05\x05lower\x05\x09min-lower\x05\x0bmin-numeric\x05\x0bmin-special\x05\ +\x09min-upper\x05\x06number\x05\x07numeric\x05\x10override-special\x05\x06result\ +\x05\x07special\x05\x05upper\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04arg\ +s\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01?pulumi:random/random-password@4.15.0\ +-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x06\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\ +\x03\0\0\x01h\x01\x01r\x04\x07keepers\x02\x06length\x02\x06prefix\x02\x09separat\ +or\x02\x04\0\x04args\x03\0\x03\x01i\x01\x01r\x04\x07keepers\x05\x06length\x05\x06\ +prefix\x05\x09separator\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04args\x04\ +\0\x07\x04\0\x06invoke\x01\x08\x04\x01:pulumi:random/random-pet@4.15.0-DIVIDER-Z\ +ERO.ZERO.ZERO-DEV\x05\x07\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\0\0\x01\ +h\x01\x01r\x04\x06inputs\x02\x07keepers\x02\x0cresult-count\x02\x04seed\x02\x04\0\ +\x04args\x03\0\x03\x01i\x01\x01r\x05\x06inputs\x05\x07keepers\x05\x0cresult-coun\ +t\x05\x07results\x05\x04seed\x05\x04\0\x03res\x03\0\x06\x01@\x02\x04names\x04arg\ +s\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01>pulumi:random/random-shuffle@4.15.0-\ +DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x08\x01B\x0a\x02\x03\x02\x01\x01\x04\0\x06output\x03\ +\0\0\x01h\x01\x01r\x0c\x07keepers\x02\x06length\x02\x05lower\x02\x09min-lower\x02\ +\x0bmin-numeric\x02\x0bmin-special\x02\x09min-upper\x02\x06number\x02\x07numeric\ +\x02\x10override-special\x02\x07special\x02\x05upper\x02\x04\0\x04args\x03\0\x03\ +\x01i\x01\x01r\x0d\x07keepers\x05\x06length\x05\x05lower\x05\x09min-lower\x05\x0b\ +min-numeric\x05\x0bmin-special\x05\x09min-upper\x05\x06number\x05\x07numeric\x05\ +\x10override-special\x05\x06result\x05\x07special\x05\x05upper\x05\x04\0\x03res\x03\ +\0\x06\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01=pulum\ +i:random/random-string@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x09\x01B\x0a\x02\x03\ +\x02\x01\x01\x04\0\x06output\x03\0\0\x01h\x01\x01r\x01\x07keepers\x02\x04\0\x04a\ +rgs\x03\0\x03\x01i\x01\x01r\x02\x07keepers\x05\x06result\x05\x04\0\x03res\x03\0\x06\ +\x01@\x02\x04names\x04args\x04\0\x07\x04\0\x06invoke\x01\x08\x04\x01;pulumi:rand\ +om/random-uuid@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x05\x0a\x04\x01=pulumi:random/r\ +andom-pulumi@4.15.0-DIVIDER-ZERO.ZERO.ZERO-DEV\x04\0\x0b\x13\x01\0\x0drandom-pul\ +umi\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.208.1\x10\ +wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/providers/pulumi_wasm_provider_random/src/lib.rs b/providers/pulumi_wasm_provider_random/src/lib.rs index b44eb8e05..fb25c8be7 100644 --- a/providers/pulumi_wasm_provider_random/src/lib.rs +++ b/providers/pulumi_wasm_provider_random/src/lib.rs @@ -6,6 +6,7 @@ use bindings::exports::pulumi::random::random_pet; use bindings::exports::pulumi::random::random_shuffle; use bindings::exports::pulumi::random::random_string; use bindings::exports::pulumi::random::random_uuid; +use std::collections::HashMap; use crate::bindings::component::pulumi_wasm::register_interface::{ register, ObjectField, RegisterResourceRequest, ResultField, @@ -47,35 +48,14 @@ impl random_bytes::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_bytes::Res { - base64: o - .fields - .iter() - .find(|o| o.name == "base64") - .unwrap() - .output - .duplicate(), - hex: o - .fields - .iter() - .find(|o| o.name == "hex") - .unwrap() - .output - .duplicate(), - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - length: o - .fields - .iter() - .find(|o| o.name == "length") - .unwrap() - .output - .duplicate(), + base64: hashmap.remove("base64").unwrap(), + hex: hashmap.remove("hex").unwrap(), + keepers: hashmap.remove("keepers").unwrap(), + length: hashmap.remove("length").unwrap(), } } } @@ -122,56 +102,17 @@ impl random_id::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_id::Res { - b64_std: o - .fields - .iter() - .find(|o| o.name == "b64Std") - .unwrap() - .output - .duplicate(), - b64_url: o - .fields - .iter() - .find(|o| o.name == "b64Url") - .unwrap() - .output - .duplicate(), - byte_length: o - .fields - .iter() - .find(|o| o.name == "byteLength") - .unwrap() - .output - .duplicate(), - dec: o - .fields - .iter() - .find(|o| o.name == "dec") - .unwrap() - .output - .duplicate(), - hex: o - .fields - .iter() - .find(|o| o.name == "hex") - .unwrap() - .output - .duplicate(), - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - prefix: o - .fields - .iter() - .find(|o| o.name == "prefix") - .unwrap() - .output - .duplicate(), + b64_std: hashmap.remove("b64Std").unwrap(), + b64_url: hashmap.remove("b64Url").unwrap(), + byte_length: hashmap.remove("byteLength").unwrap(), + dec: hashmap.remove("dec").unwrap(), + hex: hashmap.remove("hex").unwrap(), + keepers: hashmap.remove("keepers").unwrap(), + prefix: hashmap.remove("prefix").unwrap(), } } } @@ -216,42 +157,15 @@ impl random_integer::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_integer::Res { - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - max: o - .fields - .iter() - .find(|o| o.name == "max") - .unwrap() - .output - .duplicate(), - min: o - .fields - .iter() - .find(|o| o.name == "min") - .unwrap() - .output - .duplicate(), - result: o - .fields - .iter() - .find(|o| o.name == "result") - .unwrap() - .output - .duplicate(), - seed: o - .fields - .iter() - .find(|o| o.name == "seed") - .unwrap() - .output - .duplicate(), + keepers: hashmap.remove("keepers").unwrap(), + max: hashmap.remove("max").unwrap(), + min: hashmap.remove("min").unwrap(), + result: hashmap.remove("result").unwrap(), + seed: hashmap.remove("seed").unwrap(), } } } @@ -359,105 +273,24 @@ impl random_password::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_password::Res { - bcrypt_hash: o - .fields - .iter() - .find(|o| o.name == "bcryptHash") - .unwrap() - .output - .duplicate(), - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - length: o - .fields - .iter() - .find(|o| o.name == "length") - .unwrap() - .output - .duplicate(), - lower: o - .fields - .iter() - .find(|o| o.name == "lower") - .unwrap() - .output - .duplicate(), - min_lower: o - .fields - .iter() - .find(|o| o.name == "minLower") - .unwrap() - .output - .duplicate(), - min_numeric: o - .fields - .iter() - .find(|o| o.name == "minNumeric") - .unwrap() - .output - .duplicate(), - min_special: o - .fields - .iter() - .find(|o| o.name == "minSpecial") - .unwrap() - .output - .duplicate(), - min_upper: o - .fields - .iter() - .find(|o| o.name == "minUpper") - .unwrap() - .output - .duplicate(), - number: o - .fields - .iter() - .find(|o| o.name == "number") - .unwrap() - .output - .duplicate(), - numeric: o - .fields - .iter() - .find(|o| o.name == "numeric") - .unwrap() - .output - .duplicate(), - override_special: o - .fields - .iter() - .find(|o| o.name == "overrideSpecial") - .unwrap() - .output - .duplicate(), - result: o - .fields - .iter() - .find(|o| o.name == "result") - .unwrap() - .output - .duplicate(), - special: o - .fields - .iter() - .find(|o| o.name == "special") - .unwrap() - .output - .duplicate(), - upper: o - .fields - .iter() - .find(|o| o.name == "upper") - .unwrap() - .output - .duplicate(), + bcrypt_hash: hashmap.remove("bcryptHash").unwrap(), + keepers: hashmap.remove("keepers").unwrap(), + length: hashmap.remove("length").unwrap(), + lower: hashmap.remove("lower").unwrap(), + min_lower: hashmap.remove("minLower").unwrap(), + min_numeric: hashmap.remove("minNumeric").unwrap(), + min_special: hashmap.remove("minSpecial").unwrap(), + min_upper: hashmap.remove("minUpper").unwrap(), + number: hashmap.remove("number").unwrap(), + numeric: hashmap.remove("numeric").unwrap(), + override_special: hashmap.remove("overrideSpecial").unwrap(), + result: hashmap.remove("result").unwrap(), + special: hashmap.remove("special").unwrap(), + upper: hashmap.remove("upper").unwrap(), } } } @@ -503,35 +336,14 @@ impl random_pet::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_pet::Res { - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - length: o - .fields - .iter() - .find(|o| o.name == "length") - .unwrap() - .output - .duplicate(), - prefix: o - .fields - .iter() - .find(|o| o.name == "prefix") - .unwrap() - .output - .duplicate(), - separator: o - .fields - .iter() - .find(|o| o.name == "separator") - .unwrap() - .output - .duplicate(), + keepers: hashmap.remove("keepers").unwrap(), + length: hashmap.remove("length").unwrap(), + prefix: hashmap.remove("prefix").unwrap(), + separator: hashmap.remove("separator").unwrap(), } } } @@ -580,42 +392,15 @@ impl random_shuffle::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_shuffle::Res { - inputs: o - .fields - .iter() - .find(|o| o.name == "inputs") - .unwrap() - .output - .duplicate(), - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - result_count: o - .fields - .iter() - .find(|o| o.name == "resultCount") - .unwrap() - .output - .duplicate(), - results: o - .fields - .iter() - .find(|o| o.name == "results") - .unwrap() - .output - .duplicate(), - seed: o - .fields - .iter() - .find(|o| o.name == "seed") - .unwrap() - .output - .duplicate(), + inputs: hashmap.remove("inputs").unwrap(), + keepers: hashmap.remove("keepers").unwrap(), + result_count: hashmap.remove("resultCount").unwrap(), + results: hashmap.remove("results").unwrap(), + seed: hashmap.remove("seed").unwrap(), } } } @@ -720,98 +505,23 @@ impl random_string::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_string::Res { - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - length: o - .fields - .iter() - .find(|o| o.name == "length") - .unwrap() - .output - .duplicate(), - lower: o - .fields - .iter() - .find(|o| o.name == "lower") - .unwrap() - .output - .duplicate(), - min_lower: o - .fields - .iter() - .find(|o| o.name == "minLower") - .unwrap() - .output - .duplicate(), - min_numeric: o - .fields - .iter() - .find(|o| o.name == "minNumeric") - .unwrap() - .output - .duplicate(), - min_special: o - .fields - .iter() - .find(|o| o.name == "minSpecial") - .unwrap() - .output - .duplicate(), - min_upper: o - .fields - .iter() - .find(|o| o.name == "minUpper") - .unwrap() - .output - .duplicate(), - number: o - .fields - .iter() - .find(|o| o.name == "number") - .unwrap() - .output - .duplicate(), - numeric: o - .fields - .iter() - .find(|o| o.name == "numeric") - .unwrap() - .output - .duplicate(), - override_special: o - .fields - .iter() - .find(|o| o.name == "overrideSpecial") - .unwrap() - .output - .duplicate(), - result: o - .fields - .iter() - .find(|o| o.name == "result") - .unwrap() - .output - .duplicate(), - special: o - .fields - .iter() - .find(|o| o.name == "special") - .unwrap() - .output - .duplicate(), - upper: o - .fields - .iter() - .find(|o| o.name == "upper") - .unwrap() - .output - .duplicate(), + keepers: hashmap.remove("keepers").unwrap(), + length: hashmap.remove("length").unwrap(), + lower: hashmap.remove("lower").unwrap(), + min_lower: hashmap.remove("minLower").unwrap(), + min_numeric: hashmap.remove("minNumeric").unwrap(), + min_special: hashmap.remove("minSpecial").unwrap(), + min_upper: hashmap.remove("minUpper").unwrap(), + number: hashmap.remove("number").unwrap(), + numeric: hashmap.remove("numeric").unwrap(), + override_special: hashmap.remove("overrideSpecial").unwrap(), + result: hashmap.remove("result").unwrap(), + special: hashmap.remove("special").unwrap(), + upper: hashmap.remove("upper").unwrap(), } } } @@ -837,21 +547,12 @@ impl random_uuid::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = + o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + random_uuid::Res { - keepers: o - .fields - .iter() - .find(|o| o.name == "keepers") - .unwrap() - .output - .duplicate(), - result: o - .fields - .iter() - .find(|o| o.name == "result") - .unwrap() - .output - .duplicate(), + keepers: hashmap.remove("keepers").unwrap(), + result: hashmap.remove("result").unwrap(), } } } diff --git a/providers/pulumi_wasm_provider_random/wit/deps/pulumi-wasm.wit b/providers/pulumi_wasm_provider_random/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/providers/pulumi_wasm_provider_random/wit/deps/pulumi-wasm.wit +++ b/providers/pulumi_wasm_provider_random/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/providers/pulumi_wasm_provider_random_rust/Cargo.toml b/providers/pulumi_wasm_provider_random_rust/Cargo.toml index 134df328c..c8bb77ef0 100644 --- a/providers/pulumi_wasm_provider_random_rust/Cargo.toml +++ b/providers/pulumi_wasm_provider_random_rust/Cargo.toml @@ -7,7 +7,4 @@ edition = "2021" wit-bindgen.workspace = true pulumi_wasm_rust.workspace = true serde.workspace = true -automod.workspace = true - -[package.metadata.pulumi] -related_crate = "pulumi_wasm_random_provider" +pulumi_wasm_wit = { workspace = true, features = ["client"] } \ No newline at end of file diff --git a/providers/pulumi_wasm_provider_random_rust/src/lib.rs b/providers/pulumi_wasm_provider_random_rust/src/lib.rs index a9fc18806..222abc1c1 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/lib.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/lib.rs @@ -1,5 +1,5 @@ -use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutput; use pulumi_wasm_rust::Output; +use pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface::Output as WitOutput; pub mod resource; pub mod types; @@ -8,22 +8,11 @@ mod bindings { // the name of the world in the `*.wit` input file world: "random-pulumi-client", with: { - "component:pulumi-wasm/output-interface@0.0.0-DEV": generate + "component:pulumi-wasm/output-interface@0.0.0-DEV": pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface } }); } -fn random_to_domain_mapper(random: WitOutput) -> Output { - unsafe { - let inner = random.take_handle(); - Output::::new_from_handle(inner) - } -} - -fn clone(output: Output) -> WitOutput { - unsafe { - let inner = output.get_inner(); - let cloned = inner.duplicate(); - WitOutput::from_handle(cloned.take_handle()) - } +fn into_domain(output: WitOutput) -> Output { + unsafe { Output::::new_from_handle(output) } } diff --git a/providers/pulumi_wasm_provider_random_rust/src/resource.rs b/providers/pulumi_wasm_provider_random_rust/src/resource.rs index 551161dc3..bfa21b0a4 100644 --- a/providers/pulumi_wasm_provider_random_rust/src/resource.rs +++ b/providers/pulumi_wasm_provider_random_rust/src/resource.rs @@ -16,20 +16,16 @@ pub mod random_bytes { let result = crate::bindings::pulumi::random::random_bytes::invoke( name, &crate::bindings::pulumi::random::random_bytes::Args { - keepers: &crate::clone::>>( - args.keepers, - ), - length: &crate::clone::(args.length), + keepers: args.keepers.get_inner(), + length: args.length.get_inner(), }, ); RandomBytesResult { - base64: crate::random_to_domain_mapper::(result.base64), - hex: crate::random_to_domain_mapper::(result.hex), - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - length: crate::random_to_domain_mapper::(result.length), + base64: crate::into_domain(result.base64), + hex: crate::into_domain(result.hex), + keepers: crate::into_domain(result.keepers), + length: crate::into_domain(result.length), } } } @@ -56,24 +52,20 @@ pub mod random_id { let result = crate::bindings::pulumi::random::random_id::invoke( name, &crate::bindings::pulumi::random::random_id::Args { - byte_length: &crate::clone::(args.byte_length), - keepers: &crate::clone::>>( - args.keepers, - ), - prefix: &crate::clone::>(args.prefix), + byte_length: args.byte_length.get_inner(), + keepers: args.keepers.get_inner(), + prefix: args.prefix.get_inner(), }, ); RandomIdResult { - b64_std: crate::random_to_domain_mapper::(result.b64_std), - b64_url: crate::random_to_domain_mapper::(result.b64_url), - byte_length: crate::random_to_domain_mapper::(result.byte_length), - dec: crate::random_to_domain_mapper::(result.dec), - hex: crate::random_to_domain_mapper::(result.hex), - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - prefix: crate::random_to_domain_mapper::>(result.prefix), + b64_std: crate::into_domain(result.b64_std), + b64_url: crate::into_domain(result.b64_url), + byte_length: crate::into_domain(result.byte_length), + dec: crate::into_domain(result.dec), + hex: crate::into_domain(result.hex), + keepers: crate::into_domain(result.keepers), + prefix: crate::into_domain(result.prefix), } } } @@ -99,23 +91,19 @@ pub mod random_integer { let result = crate::bindings::pulumi::random::random_integer::invoke( name, &crate::bindings::pulumi::random::random_integer::Args { - keepers: &crate::clone::>>( - args.keepers, - ), - max: &crate::clone::(args.max), - min: &crate::clone::(args.min), - seed: &crate::clone::>(args.seed), + keepers: args.keepers.get_inner(), + max: args.max.get_inner(), + min: args.min.get_inner(), + seed: args.seed.get_inner(), }, ); RandomIntegerResult { - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - max: crate::random_to_domain_mapper::(result.max), - min: crate::random_to_domain_mapper::(result.min), - result: crate::random_to_domain_mapper::(result.result), - seed: crate::random_to_domain_mapper::>(result.seed), + keepers: crate::into_domain(result.keepers), + max: crate::into_domain(result.max), + min: crate::into_domain(result.min), + result: crate::into_domain(result.result), + seed: crate::into_domain(result.seed), } } } @@ -158,42 +146,36 @@ pub mod random_password { let result = crate::bindings::pulumi::random::random_password::invoke( name, &crate::bindings::pulumi::random::random_password::Args { - keepers: &crate::clone::>>( - args.keepers, - ), - length: &crate::clone::(args.length), - lower: &crate::clone::>(args.lower), - min_lower: &crate::clone::>(args.min_lower), - min_numeric: &crate::clone::>(args.min_numeric), - min_special: &crate::clone::>(args.min_special), - min_upper: &crate::clone::>(args.min_upper), - number: &crate::clone::>(args.number), - numeric: &crate::clone::>(args.numeric), - override_special: &crate::clone::>(args.override_special), - special: &crate::clone::>(args.special), - upper: &crate::clone::>(args.upper), + keepers: args.keepers.get_inner(), + length: args.length.get_inner(), + lower: args.lower.get_inner(), + min_lower: args.min_lower.get_inner(), + min_numeric: args.min_numeric.get_inner(), + min_special: args.min_special.get_inner(), + min_upper: args.min_upper.get_inner(), + number: args.number.get_inner(), + numeric: args.numeric.get_inner(), + override_special: args.override_special.get_inner(), + special: args.special.get_inner(), + upper: args.upper.get_inner(), }, ); RandomPasswordResult { - bcrypt_hash: crate::random_to_domain_mapper::(result.bcrypt_hash), - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - length: crate::random_to_domain_mapper::(result.length), - lower: crate::random_to_domain_mapper::(result.lower), - min_lower: crate::random_to_domain_mapper::(result.min_lower), - min_numeric: crate::random_to_domain_mapper::(result.min_numeric), - min_special: crate::random_to_domain_mapper::(result.min_special), - min_upper: crate::random_to_domain_mapper::(result.min_upper), - number: crate::random_to_domain_mapper::(result.number), - numeric: crate::random_to_domain_mapper::(result.numeric), - override_special: crate::random_to_domain_mapper::>( - result.override_special, - ), - result: crate::random_to_domain_mapper::(result.result), - special: crate::random_to_domain_mapper::(result.special), - upper: crate::random_to_domain_mapper::(result.upper), + bcrypt_hash: crate::into_domain(result.bcrypt_hash), + keepers: crate::into_domain(result.keepers), + length: crate::into_domain(result.length), + lower: crate::into_domain(result.lower), + min_lower: crate::into_domain(result.min_lower), + min_numeric: crate::into_domain(result.min_numeric), + min_special: crate::into_domain(result.min_special), + min_upper: crate::into_domain(result.min_upper), + number: crate::into_domain(result.number), + numeric: crate::into_domain(result.numeric), + override_special: crate::into_domain(result.override_special), + result: crate::into_domain(result.result), + special: crate::into_domain(result.special), + upper: crate::into_domain(result.upper), } } } @@ -218,22 +200,18 @@ pub mod random_pet { let result = crate::bindings::pulumi::random::random_pet::invoke( name, &crate::bindings::pulumi::random::random_pet::Args { - keepers: &crate::clone::>>( - args.keepers, - ), - length: &crate::clone::>(args.length), - prefix: &crate::clone::>(args.prefix), - separator: &crate::clone::>(args.separator), + keepers: args.keepers.get_inner(), + length: args.length.get_inner(), + prefix: args.prefix.get_inner(), + separator: args.separator.get_inner(), }, ); RandomPetResult { - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - length: crate::random_to_domain_mapper::(result.length), - prefix: crate::random_to_domain_mapper::>(result.prefix), - separator: crate::random_to_domain_mapper::(result.separator), + keepers: crate::into_domain(result.keepers), + length: crate::into_domain(result.length), + prefix: crate::into_domain(result.prefix), + separator: crate::into_domain(result.separator), } } } @@ -259,23 +237,19 @@ pub mod random_shuffle { let result = crate::bindings::pulumi::random::random_shuffle::invoke( name, &crate::bindings::pulumi::random::random_shuffle::Args { - inputs: &crate::clone::>(args.inputs), - keepers: &crate::clone::>>( - args.keepers, - ), - result_count: &crate::clone::>(args.result_count), - seed: &crate::clone::>(args.seed), + inputs: args.inputs.get_inner(), + keepers: args.keepers.get_inner(), + result_count: args.result_count.get_inner(), + seed: args.seed.get_inner(), }, ); RandomShuffleResult { - inputs: crate::random_to_domain_mapper::>(result.inputs), - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - result_count: crate::random_to_domain_mapper::>(result.result_count), - results: crate::random_to_domain_mapper::>(result.results), - seed: crate::random_to_domain_mapper::>(result.seed), + inputs: crate::into_domain(result.inputs), + keepers: crate::into_domain(result.keepers), + result_count: crate::into_domain(result.result_count), + results: crate::into_domain(result.results), + seed: crate::into_domain(result.seed), } } } @@ -317,41 +291,35 @@ pub mod random_string { let result = crate::bindings::pulumi::random::random_string::invoke( name, &crate::bindings::pulumi::random::random_string::Args { - keepers: &crate::clone::>>( - args.keepers, - ), - length: &crate::clone::(args.length), - lower: &crate::clone::>(args.lower), - min_lower: &crate::clone::>(args.min_lower), - min_numeric: &crate::clone::>(args.min_numeric), - min_special: &crate::clone::>(args.min_special), - min_upper: &crate::clone::>(args.min_upper), - number: &crate::clone::>(args.number), - numeric: &crate::clone::>(args.numeric), - override_special: &crate::clone::>(args.override_special), - special: &crate::clone::>(args.special), - upper: &crate::clone::>(args.upper), + keepers: args.keepers.get_inner(), + length: args.length.get_inner(), + lower: args.lower.get_inner(), + min_lower: args.min_lower.get_inner(), + min_numeric: args.min_numeric.get_inner(), + min_special: args.min_special.get_inner(), + min_upper: args.min_upper.get_inner(), + number: args.number.get_inner(), + numeric: args.numeric.get_inner(), + override_special: args.override_special.get_inner(), + special: args.special.get_inner(), + upper: args.upper.get_inner(), }, ); RandomStringResult { - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - length: crate::random_to_domain_mapper::(result.length), - lower: crate::random_to_domain_mapper::(result.lower), - min_lower: crate::random_to_domain_mapper::(result.min_lower), - min_numeric: crate::random_to_domain_mapper::(result.min_numeric), - min_special: crate::random_to_domain_mapper::(result.min_special), - min_upper: crate::random_to_domain_mapper::(result.min_upper), - number: crate::random_to_domain_mapper::(result.number), - numeric: crate::random_to_domain_mapper::(result.numeric), - override_special: crate::random_to_domain_mapper::>( - result.override_special, - ), - result: crate::random_to_domain_mapper::(result.result), - special: crate::random_to_domain_mapper::(result.special), - upper: crate::random_to_domain_mapper::(result.upper), + keepers: crate::into_domain(result.keepers), + length: crate::into_domain(result.length), + lower: crate::into_domain(result.lower), + min_lower: crate::into_domain(result.min_lower), + min_numeric: crate::into_domain(result.min_numeric), + min_special: crate::into_domain(result.min_special), + min_upper: crate::into_domain(result.min_upper), + number: crate::into_domain(result.number), + numeric: crate::into_domain(result.numeric), + override_special: crate::into_domain(result.override_special), + result: crate::into_domain(result.result), + special: crate::into_domain(result.special), + upper: crate::into_domain(result.upper), } } } @@ -371,17 +339,13 @@ pub mod random_uuid { let result = crate::bindings::pulumi::random::random_uuid::invoke( name, &crate::bindings::pulumi::random::random_uuid::Args { - keepers: &crate::clone::>>( - args.keepers, - ), + keepers: args.keepers.get_inner(), }, ); RandomUuidResult { - keepers: crate::random_to_domain_mapper::< - Option>, - >(result.keepers), - result: crate::random_to_domain_mapper::(result.result), + keepers: crate::into_domain(result.keepers), + result: crate::into_domain(result.result), } } } diff --git a/providers/pulumi_wasm_provider_random_rust/wit/deps/pulumi-wasm.wit b/providers/pulumi_wasm_provider_random_rust/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/providers/pulumi_wasm_provider_random_rust/wit/deps/pulumi-wasm.wit +++ b/providers/pulumi_wasm_provider_random_rust/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/pulumi_wasm/src/bindings.rs b/pulumi_wasm/src/bindings.rs index 123e8f807..5d209b0ef 100644 --- a/pulumi_wasm/src/bindings.rs +++ b/pulumi_wasm/src/bindings.rs @@ -600,16 +600,6 @@ pub mod exports { } #[doc(hidden)] #[allow(non_snake_case)] - pub unsafe fn _export_method_output_duplicate_cabi( - arg0: *mut u8, - ) -> i32 { - #[cfg(target_arch = "wasm32")] - _rt::run_ctors_once(); - let result0 = T::duplicate(OutputBorrow::lift(arg0 as u32 as usize).get()); - (result0).take_handle() as i32 - } - #[doc(hidden)] - #[allow(non_snake_case)] pub unsafe fn _export_combine_cabi(arg0: *mut u8, arg1: usize) -> i32 { #[cfg(target_arch = "wasm32")] _rt::run_ctors_once(); @@ -684,43 +674,38 @@ pub mod exports { fn new(value: _rt::String) -> Self; fn map(&self, function_name: _rt::String) -> Output; - fn duplicate(&self) -> Output; } #[doc(hidden)] macro_rules! __export_component_pulumi_wasm_output_interface_0_0_0_dev_cabi{ - ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - - #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[constructor]output"] - unsafe extern "C" fn export_constructor_output(arg0: *mut u8,arg1: usize,) -> i32 { - $($path_to_types)*::_export_constructor_output_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1) - } - #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[method]output.map"] - unsafe extern "C" fn export_method_output_map(arg0: *mut u8,arg1: *mut u8,arg2: usize,) -> i32 { - $($path_to_types)*::_export_method_output_map_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1, arg2) - } - #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[method]output.duplicate"] - unsafe extern "C" fn export_method_output_duplicate(arg0: *mut u8,) -> i32 { - $($path_to_types)*::_export_method_output_duplicate_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0) - } - #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#combine"] - unsafe extern "C" fn export_combine(arg0: *mut u8,arg1: usize,) -> i32 { - $($path_to_types)*::_export_combine_cabi::<$ty>(arg0, arg1) - } + ($ty:ident with_types_in $($path_to_types:tt)*) => (const _: () = { - const _: () = { - #[doc(hidden)] - #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[dtor]output"] - #[allow(non_snake_case)] - unsafe extern "C" fn dtor(rep: *mut u8) { - $($path_to_types)*::Output::dtor::< - <$ty as $($path_to_types)*::Guest>::Output - >(rep) + #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[constructor]output"] + unsafe extern "C" fn export_constructor_output(arg0: *mut u8,arg1: usize,) -> i32 { + $($path_to_types)*::_export_constructor_output_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1) + } + #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[method]output.map"] + unsafe extern "C" fn export_method_output_map(arg0: *mut u8,arg1: *mut u8,arg2: usize,) -> i32 { + $($path_to_types)*::_export_method_output_map_cabi::<<$ty as $($path_to_types)*::Guest>::Output>(arg0, arg1, arg2) + } + #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#combine"] + unsafe extern "C" fn export_combine(arg0: *mut u8,arg1: usize,) -> i32 { + $($path_to_types)*::_export_combine_cabi::<$ty>(arg0, arg1) } - }; - };); -} + const _: () = { + #[doc(hidden)] + #[export_name = "component:pulumi-wasm/output-interface@0.0.0-DEV#[dtor]output"] + #[allow(non_snake_case)] + unsafe extern "C" fn dtor(rep: *mut u8) { + $($path_to_types)*::Output::dtor::< + <$ty as $($path_to_types)*::Guest>::Output + >(rep) + } + }; + + };); + } #[doc(hidden)] pub(crate) use __export_component_pulumi_wasm_output_interface_0_0_0_dev_cabi; } @@ -1348,8 +1333,8 @@ pub(crate) use __export_pulumi_wasm_impl as export; #[cfg(target_arch = "wasm32")] #[link_section = "component-type:wit-bindgen:0.25.0:pulumi-wasm:encoded world"] #[doc(hidden)] -pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1559] = *b"\ -\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\x95\x0b\x01A\x02\x01\ +pub static __WIT_BINDGEN_COMPONENT_TYPE: [u8; 1519] = *b"\ +\0asm\x0d\0\x01\0\0\x19\x16wit-component-encoding\x04\0\x07\xed\x0a\x01A\x02\x01\ A\x0b\x01B\x0a\x01m\x05\x05TRACE\x05DEBUG\x04INFO\x04WARN\x05ERROR\x04\0\x05leve\ l\x03\0\0\x01ks\x01ky\x01o\x02ss\x01p\x04\x01r\x07\x05level\x01\x06targets\x04ar\ gss\x0bmodule-path\x02\x04file\x02\x04line\x03\x0akey-values\x05\x04\0\x07conten\ @@ -1361,27 +1346,26 @@ n-preview\x01\x05\x01@\0\0s\x04\0\x11get-root-resource\x01\x06\x01@\x01\x07reque st\0\0\0\x04\0\x19register-resource-outputs\x01\x07\x01@\x01\x07request\x02\x01\0\ \x04\0\x11register-resource\x01\x08\x01p\x04\x01@\0\0\x09\x04\0\x1dwait-for-regi\ stered-resources\x01\x0a\x03\x01>component:pulumi-wasm-external/external-world@0\ -.0.0-STABLE-DEV\x05\x01\x01B\x0c\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05valu\ +.0.0-STABLE-DEV\x05\x01\x01B\x0a\x04\0\x06output\x03\x01\x01i\0\x01@\x01\x05valu\ es\0\x01\x04\0\x13[constructor]output\x01\x02\x01h\0\x01@\x02\x04self\x03\x0dfun\ -ction-names\0\x01\x04\0\x12[method]output.map\x01\x04\x01@\x01\x04self\x03\0\x01\ -\x04\0\x18[method]output.duplicate\x01\x05\x01p\x01\x01@\x01\x07outputs\x06\0\x01\ -\x04\0\x07combine\x01\x07\x04\x010component:pulumi-wasm/output-interface@0.0.0-D\ -EV\x05\x02\x02\x03\0\x02\x06output\x01B\x13\x02\x03\x02\x01\x03\x04\0\x06output\x03\ -\0\0\x01h\x01\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\x03\0\x03\x01\ -r\x01\x04names\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04names\x06out\ -put\x07\x04\0\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01p\x06\x01r\ -\x04\x04types\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-resource-r\ -equest\x03\0\x0c\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-resource-resu\ -lt\x03\0\x0f\x01@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x04\x012com\ -ponent:pulumi-wasm/register-interface@0.0.0-DEV\x05\x04\x01B\x0e\x02\x03\x02\x01\ -\x03\x04\0\x06output\x03\0\0\x01i\x01\x01r\x03\x02id\x02\x0bfunction-ids\x05valu\ -es\x04\0\x1bfunction-invocation-request\x03\0\x03\x01h\x01\x01r\x02\x02id\x05\x05\ -values\x04\0\x1afunction-invocation-result\x03\0\x06\x01@\x02\x04names\x05value\x05\ -\x01\0\x04\0\x0aadd-export\x01\x08\x01p\x07\x01p\x04\x01@\x01\x09functions\x09\0\ -\x0a\x04\0\x06finish\x01\x0b\x04\x01/component:pulumi-wasm/stack-interface@0.0.0\ --DEV\x05\x05\x04\x01+component:pulumi-wasm/pulumi-wasm@0.0.0-DEV\x04\0\x0b\x11\x01\ -\0\x0bpulumi-wasm\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-compone\ -nt\x070.208.1\x10wit-bindgen-rust\x060.25.0"; +ction-names\0\x01\x04\0\x12[method]output.map\x01\x04\x01p\x01\x01@\x01\x07outpu\ +ts\x05\0\x01\x04\0\x07combine\x01\x06\x04\x010component:pulumi-wasm/output-inter\ +face@0.0.0-DEV\x05\x02\x02\x03\0\x02\x06output\x01B\x13\x02\x03\x02\x01\x03\x04\0\ +\x06output\x03\0\0\x01h\x01\x01r\x02\x04names\x05value\x02\x04\0\x0cobject-field\ +\x03\0\x03\x01r\x01\x04names\x04\0\x0cresult-field\x03\0\x05\x01i\x01\x01r\x02\x04\ +names\x06output\x07\x04\0\x1eregister-resource-result-field\x03\0\x08\x01p\x04\x01\ +p\x06\x01r\x04\x04types\x04names\x06object\x0a\x07results\x0b\x04\0\x19register-\ +resource-request\x03\0\x0c\x01p\x09\x01r\x01\x06fields\x0e\x04\0\x18register-res\ +ource-result\x03\0\x0f\x01@\x01\x07request\x0d\0\x10\x04\0\x08register\x01\x11\x04\ +\x012component:pulumi-wasm/register-interface@0.0.0-DEV\x05\x04\x01B\x0e\x02\x03\ +\x02\x01\x03\x04\0\x06output\x03\0\0\x01i\x01\x01r\x03\x02id\x02\x0bfunction-ids\ +\x05values\x04\0\x1bfunction-invocation-request\x03\0\x03\x01h\x01\x01r\x02\x02i\ +d\x05\x05values\x04\0\x1afunction-invocation-result\x03\0\x06\x01@\x02\x04names\x05\ +value\x05\x01\0\x04\0\x0aadd-export\x01\x08\x01p\x07\x01p\x04\x01@\x01\x09functi\ +ons\x09\0\x0a\x04\0\x06finish\x01\x0b\x04\x01/component:pulumi-wasm/stack-interf\ +ace@0.0.0-DEV\x05\x05\x04\x01+component:pulumi-wasm/pulumi-wasm@0.0.0-DEV\x04\0\x0b\ +\x11\x01\0\x0bpulumi-wasm\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit\ +-component\x070.208.1\x10wit-bindgen-rust\x060.25.0"; #[inline(never)] #[doc(hidden)] diff --git a/pulumi_wasm/src/lib.rs b/pulumi_wasm/src/lib.rs index 6817e24a2..d8ee17380 100644 --- a/pulumi_wasm/src/lib.rs +++ b/pulumi_wasm/src/lib.rs @@ -160,9 +160,4 @@ impl GuestOutput for CustomOutputId { .create_native_function_node(function_name.into(), self.0); Output::new::(output_id.into()) } - - fn duplicate(&self) -> Output { - pulumi_wasm_common::setup_logger(); - Output::new::(self.0.into()) - } } diff --git a/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars b/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars index 94c8ebfd4..98345ecbd 100644 --- a/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars +++ b/pulumi_wasm_generator_lib/src/output/provider/lib.rs.handlebars @@ -1,3 +1,4 @@ +use std::collections::HashMap; {{#each package.interfaces}} use bindings::exports::pulumi::{{@root.package.name_escaped}}::{{name}}; {{/each}} @@ -31,9 +32,11 @@ impl {{name}}::Guest for Component { let o = register(&request); + let mut hashmap: HashMap = o.fields.into_iter().map(|f| (f.name, f.output)).collect(); + {{name}}::Res { {{#each output_properties}} - {{arg_name}}: o.fields.iter().find(|o| o.name == "{{name}}").unwrap().output.duplicate(), + {{arg_name}}: hashmap.remove("{{name}}").unwrap(), {{/each}} } diff --git a/pulumi_wasm_generator_lib/src/output/rust/Cargo.toml.handlebars b/pulumi_wasm_generator_lib/src/output/rust/Cargo.toml.handlebars index 9183672a3..c60c13d70 100644 --- a/pulumi_wasm_generator_lib/src/output/rust/Cargo.toml.handlebars +++ b/pulumi_wasm_generator_lib/src/output/rust/Cargo.toml.handlebars @@ -7,7 +7,4 @@ edition = "2021" wit-bindgen.workspace = true pulumi_wasm_rust.workspace = true serde.workspace = true -automod.workspace = true - -[package.metadata.pulumi] -related_crate = "pulumi_wasm_{{package.name}}_provider" +pulumi_wasm_wit = { workspace = true, features = ["client"] } \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/src/output/rust/lib.rs.handlebars b/pulumi_wasm_generator_lib/src/output/rust/lib.rs.handlebars index 1dc4f841b..32f19bda0 100644 --- a/pulumi_wasm_generator_lib/src/output/rust/lib.rs.handlebars +++ b/pulumi_wasm_generator_lib/src/output/rust/lib.rs.handlebars @@ -1,6 +1,6 @@ use pulumi_wasm_rust::Output; {{#if package.interfaces}} -use crate::bindings::component::pulumi_wasm::output_interface::Output as WitOutput; +use pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface::Output as WitOutput; {{/if}} pub mod resource; pub mod types; @@ -11,25 +11,14 @@ mod bindings { world: "{{package.name}}-pulumi-client", {{#if package.interfaces}} with: { - "component:pulumi-wasm/output-interface@{{package.pulumi_wasm_version}}": generate + "component:pulumi-wasm/output-interface@{{package.pulumi_wasm_version}}": pulumi_wasm_wit::client_bindings::component::pulumi_wasm::output_interface } {{/if}} }); } {{#if package.interfaces}} -fn random_to_domain_mapper(random: WitOutput) -> Output { - unsafe { - let inner = random.take_handle(); - Output::::new_from_handle(inner) - } -} - -fn clone(output: Output) -> WitOutput { - unsafe { - let inner = output.get_inner(); - let cloned = inner.duplicate(); - WitOutput::from_handle(cloned.take_handle()) - } +fn into_domain(output: WitOutput) -> Output { + unsafe { Output::::new_from_handle(output) } } {{/if}} \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/src/output/rust/resource.rs.handlebars b/pulumi_wasm_generator_lib/src/output/rust/resource.rs.handlebars index a67ff569e..a0cfc2e65 100644 --- a/pulumi_wasm_generator_lib/src/output/rust/resource.rs.handlebars +++ b/pulumi_wasm_generator_lib/src/output/rust/resource.rs.handlebars @@ -18,13 +18,13 @@ pub mod {{interface.name}} { let result = crate::bindings::pulumi::{{@root.package.name}}::{{interface.name}}::invoke(name, &crate::bindings::pulumi::{{@root.package.name}}::{{interface.name}}::Args { {{#each interface.input_properties}} - {{arg_name}}: &crate::clone::<{{&type_}}>(args.{{arg_name}}), + {{arg_name}}: args.{{arg_name}}.get_inner(), {{/each}} }); {{interface.struct_name}}Result { {{#each interface.output_properties}} - {{arg_name}}: crate::random_to_domain_mapper::<{{&type_}}>(result.{{arg_name}}), + {{arg_name}}: crate::into_domain(result.{{arg_name}}), {{/each}} } } diff --git a/pulumi_wasm_generator_lib/src/output/wit/dependencies.handlebars b/pulumi_wasm_generator_lib/src/output/wit/dependencies.handlebars index 90610151e..43658fea3 100644 --- a/pulumi_wasm_generator_lib/src/output/wit/dependencies.handlebars +++ b/pulumi_wasm_generator_lib/src/output/wit/dependencies.handlebars @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/pulumi_wasm_generator_lib/tests/input/Cargo.toml b/pulumi_wasm_generator_lib/tests/input/Cargo.toml index fceab158f..fc199ef35 100644 --- a/pulumi_wasm_generator_lib/tests/input/Cargo.toml +++ b/pulumi_wasm_generator_lib/tests/input/Cargo.toml @@ -15,4 +15,5 @@ wit-bindgen = "0.27.0" automod = "1.0.14" pulumi_wasm_common = { path = "../../../../pulumi_wasm_common" } pulumi_wasm_rust = { path = "../../../../pulumi_wasm_rust" } +pulumi_wasm_wit = { path = "../../../../pulumi_wasm_wit" } serde = "1.0.197" \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/tests/output/cyclic-types/Cargo.toml b/pulumi_wasm_generator_lib/tests/output/cyclic-types/Cargo.toml index fceab158f..fc199ef35 100644 --- a/pulumi_wasm_generator_lib/tests/output/cyclic-types/Cargo.toml +++ b/pulumi_wasm_generator_lib/tests/output/cyclic-types/Cargo.toml @@ -15,4 +15,5 @@ wit-bindgen = "0.27.0" automod = "1.0.14" pulumi_wasm_common = { path = "../../../../pulumi_wasm_common" } pulumi_wasm_rust = { path = "../../../../pulumi_wasm_rust" } +pulumi_wasm_wit = { path = "../../../../pulumi_wasm_wit" } serde = "1.0.197" \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/Cargo.toml b/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/Cargo.toml index 9d5e0ddd4..1a3ca20db 100644 --- a/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/Cargo.toml +++ b/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/Cargo.toml @@ -7,7 +7,4 @@ edition = "2021" wit-bindgen.workspace = true pulumi_wasm_rust.workspace = true serde.workspace = true -automod.workspace = true - -[package.metadata.pulumi] -related_crate = "pulumi_wasm_example_provider" +pulumi_wasm_wit = { workspace = true, features = ["client"] } \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/wit/deps/pulumi-wasm.wit b/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/wit/deps/pulumi-wasm.wit +++ b/pulumi_wasm_generator_lib/tests/output/cyclic-types/lib/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/src/lib.rs b/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/src/lib.rs index ffdeafaca..2b128f428 100644 --- a/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/src/lib.rs +++ b/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/src/lib.rs @@ -1,3 +1,4 @@ +use std::collections::HashMap; struct Component {} diff --git a/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/wit/deps/pulumi-wasm.wit b/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/wit/deps/pulumi-wasm.wit +++ b/pulumi_wasm_generator_lib/tests/output/cyclic-types/provider/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/Cargo.toml b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/Cargo.toml index fceab158f..fc199ef35 100644 --- a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/Cargo.toml +++ b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/Cargo.toml @@ -15,4 +15,5 @@ wit-bindgen = "0.27.0" automod = "1.0.14" pulumi_wasm_common = { path = "../../../../pulumi_wasm_common" } pulumi_wasm_rust = { path = "../../../../pulumi_wasm_rust" } +pulumi_wasm_wit = { path = "../../../../pulumi_wasm_wit" } serde = "1.0.197" \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/Cargo.toml b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/Cargo.toml index 1d7b7abb9..2e048a0d5 100644 --- a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/Cargo.toml +++ b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/Cargo.toml @@ -7,7 +7,4 @@ edition = "2021" wit-bindgen.workspace = true pulumi_wasm_rust.workspace = true serde.workspace = true -automod.workspace = true - -[package.metadata.pulumi] -related_crate = "pulumi_wasm_aws-native_provider" +pulumi_wasm_wit = { workspace = true, features = ["client"] } \ No newline at end of file diff --git a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/wit/deps/pulumi-wasm.wit b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/wit/deps/pulumi-wasm.wit +++ b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/lib/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/src/lib.rs b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/src/lib.rs index ffdeafaca..2b128f428 100644 --- a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/src/lib.rs +++ b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/src/lib.rs @@ -1,3 +1,4 @@ +use std::collections::HashMap; struct Component {} diff --git a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/wit/deps/pulumi-wasm.wit b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/wit/deps/pulumi-wasm.wit index 9fad235dd..a015e10f8 100644 --- a/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/wit/deps/pulumi-wasm.wit +++ b/pulumi_wasm_generator_lib/tests/output/mini-awsnative/provider/wit/deps/pulumi-wasm.wit @@ -5,7 +5,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; } diff --git a/pulumi_wasm_rust/src/output.rs b/pulumi_wasm_rust/src/output.rs index 966c994d0..1581d43ea 100644 --- a/pulumi_wasm_rust/src/output.rs +++ b/pulumi_wasm_rust/src/output.rs @@ -36,27 +36,6 @@ lazy_static! { } impl Output { - /// - /// # Safety - /// - /// Returns handle to inner output representation. Only needed in provider glue code. - pub unsafe fn get_inner(&self) -> &output_interface::Output { - &self.future - } - - /// - /// # Safety - /// - /// Underlying output type must the same as `F` and this Output will take ownership of the handle. - /// This means that the handle must not be deallocated by something else. - pub unsafe fn new_from_handle(handle: u32) -> Output { - let output = output_interface::Output::from_handle(handle); - Output { - phantom: PhantomData::, - future: output, - } - } - pub fn map(&self, f: F) -> Output where F: Fn(T) -> B + Send + 'static, @@ -87,6 +66,23 @@ impl Output { pub(crate) fn add_to_export(&self, name: &str) { add_export(name, &self.future); } + + pub fn get_inner(&self) -> &output_interface::Output { + &self.future + } + + /// + /// # Safety + /// + /// Underlying output must be of type `F`. + pub unsafe fn new_from_handle( + handle: output_interface::Output, + ) -> Output { + Output { + phantom: PhantomData::, + future: handle, + } + } } impl Output { diff --git a/pulumi_wasm_wit/wit/world.wit b/pulumi_wasm_wit/wit/world.wit index 89a728e4c..2539335e2 100644 --- a/pulumi_wasm_wit/wit/world.wit +++ b/pulumi_wasm_wit/wit/world.wit @@ -30,7 +30,6 @@ interface output-interface { resource output { constructor(value: string); map: func(function-name: string) -> output; - duplicate: func() -> output; } combine: func(outputs: list) -> output; }