diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_application.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_application.rs index 6b5e459b2..43b724987 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_application.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_application.rs @@ -36,14 +36,18 @@ pub struct GetAccessApplicationResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetAccessApplicationArgs) -> GetAccessApplicationResult { +pub fn invoke( + args: GetAccessApplicationArgs +) -> GetAccessApplicationResult { - let result = crate::bindings::pulumi::cloudflare::get_access_application::invoke(&crate::bindings::pulumi::cloudflare::get_access_application::Args { - account_id: &args.account_id.get_inner(), - domain: &args.domain.get_inner(), - name: &args.name.get_inner(), - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_access_application::invoke( + &crate::bindings::pulumi::cloudflare::get_access_application::Args { + account_id: &args.account_id.get_inner(), + domain: &args.domain.get_inner(), + name: &args.name.get_inner(), + zone_id: &args.zone_id.get_inner(), + } + ); GetAccessApplicationResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_identity_provider.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_identity_provider.rs index 0bca72684..af38b33db 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_identity_provider.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_access_identity_provider.rs @@ -201,13 +201,17 @@ pub struct GetAccessIdentityProviderResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetAccessIdentityProviderArgs) -> GetAccessIdentityProviderResult { +pub fn invoke( + args: GetAccessIdentityProviderArgs +) -> GetAccessIdentityProviderResult { - let result = crate::bindings::pulumi::cloudflare::get_access_identity_provider::invoke(&crate::bindings::pulumi::cloudflare::get_access_identity_provider::Args { - account_id: &args.account_id.get_inner(), - name: &args.name.get_inner(), - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_access_identity_provider::invoke( + &crate::bindings::pulumi::cloudflare::get_access_identity_provider::Args { + account_id: &args.account_id.get_inner(), + name: &args.name.get_inner(), + zone_id: &args.zone_id.get_inner(), + } + ); GetAccessIdentityProviderResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_account_roles.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_account_roles.rs index e9a9c98a0..3ac91db34 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_account_roles.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_account_roles.rs @@ -21,11 +21,15 @@ pub struct GetAccountRolesResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetAccountRolesArgs) -> GetAccountRolesResult { +pub fn invoke( + args: GetAccountRolesArgs +) -> GetAccountRolesResult { - let result = crate::bindings::pulumi::cloudflare::get_account_roles::invoke(&crate::bindings::pulumi::cloudflare::get_account_roles::Args { - account_id: &args.account_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_account_roles::invoke( + &crate::bindings::pulumi::cloudflare::get_account_roles::Args { + account_id: &args.account_id.get_inner(), + } + ); GetAccountRolesResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_accounts.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_accounts.rs index 485c49e3d..36dc169c9 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_accounts.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_accounts.rs @@ -114,11 +114,15 @@ pub struct GetAccountsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetAccountsArgs) -> GetAccountsResult { +pub fn invoke( + args: GetAccountsArgs +) -> GetAccountsResult { - let result = crate::bindings::pulumi::cloudflare::get_accounts::invoke(&crate::bindings::pulumi::cloudflare::get_accounts::Args { - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_accounts::invoke( + &crate::bindings::pulumi::cloudflare::get_accounts::Args { + name: &args.name.get_inner(), + } + ); GetAccountsResult { accounts: crate::into_domain(result.accounts), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_api_token_permission_groups.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_api_token_permission_groups.rs index 7d55b1766..65a036c35 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_api_token_permission_groups.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_api_token_permission_groups.rs @@ -110,10 +110,6 @@ //! ``` //! -#[derive(bon::Builder)] -#[builder(finish_fn = build_struct)] -pub struct GetApiTokenPermissionGroupsArgs { -} pub struct GetApiTokenPermissionGroupsResult { /// Map of permissions for account level resources. @@ -133,10 +129,11 @@ pub struct GetApiTokenPermissionGroupsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetApiTokenPermissionGroupsArgs) -> GetApiTokenPermissionGroupsResult { +pub fn invoke( +) -> GetApiTokenPermissionGroupsResult { - let result = crate::bindings::pulumi::cloudflare::get_api_token_permission_groups::invoke(&crate::bindings::pulumi::cloudflare::get_api_token_permission_groups::Args { - }); + let result = crate::bindings::pulumi::cloudflare::get_api_token_permission_groups::invoke( + ); GetApiTokenPermissionGroupsResult { account: crate::into_domain(result.account), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_device_posture_rules.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_device_posture_rules.rs index e2fcf7081..970d2e609 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_device_posture_rules.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_device_posture_rules.rs @@ -136,13 +136,17 @@ pub struct GetDevicePostureRulesResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetDevicePostureRulesArgs) -> GetDevicePostureRulesResult { +pub fn invoke( + args: GetDevicePostureRulesArgs +) -> GetDevicePostureRulesResult { - let result = crate::bindings::pulumi::cloudflare::get_device_posture_rules::invoke(&crate::bindings::pulumi::cloudflare::get_device_posture_rules::Args { - account_id: &args.account_id.get_inner(), - name: &args.name.get_inner(), - type_: &args.type_.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_device_posture_rules::invoke( + &crate::bindings::pulumi::cloudflare::get_device_posture_rules::Args { + account_id: &args.account_id.get_inner(), + name: &args.name.get_inner(), + type_: &args.type_.get_inner(), + } + ); GetDevicePostureRulesResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_devices.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_devices.rs index 085172fa3..a0e7d3555 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_devices.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_devices.rs @@ -115,11 +115,15 @@ pub struct GetDevicesResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetDevicesArgs) -> GetDevicesResult { +pub fn invoke( + args: GetDevicesArgs +) -> GetDevicesResult { - let result = crate::bindings::pulumi::cloudflare::get_devices::invoke(&crate::bindings::pulumi::cloudflare::get_devices::Args { - account_id: &args.account_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_devices::invoke( + &crate::bindings::pulumi::cloudflare::get_devices::Args { + account_id: &args.account_id.get_inner(), + } + ); GetDevicesResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_dlp_datasets.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_dlp_datasets.rs index 015b87f28..62d3fa6b1 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_dlp_datasets.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_dlp_datasets.rs @@ -116,11 +116,15 @@ pub struct GetDlpDatasetsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetDlpDatasetsArgs) -> GetDlpDatasetsResult { +pub fn invoke( + args: GetDlpDatasetsArgs +) -> GetDlpDatasetsResult { - let result = crate::bindings::pulumi::cloudflare::get_dlp_datasets::invoke(&crate::bindings::pulumi::cloudflare::get_dlp_datasets::Args { - account_id: &args.account_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_dlp_datasets::invoke( + &crate::bindings::pulumi::cloudflare::get_dlp_datasets::Args { + account_id: &args.account_id.get_inner(), + } + ); GetDlpDatasetsResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_ip_ranges.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_ip_ranges.rs index 13af10bd4..89aa52d62 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_ip_ranges.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_ip_ranges.rs @@ -154,10 +154,6 @@ //! ``` //! -#[derive(bon::Builder)] -#[builder(finish_fn = build_struct)] -pub struct GetIpRangesArgs { -} pub struct GetIpRangesResult { /// The lexically ordered list of only the IPv4 China CIDR blocks. @@ -177,10 +173,11 @@ pub struct GetIpRangesResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetIpRangesArgs) -> GetIpRangesResult { +pub fn invoke( +) -> GetIpRangesResult { - let result = crate::bindings::pulumi::cloudflare::get_ip_ranges::invoke(&crate::bindings::pulumi::cloudflare::get_ip_ranges::Args { - }); + let result = crate::bindings::pulumi::cloudflare::get_ip_ranges::invoke( + ); GetIpRangesResult { china_ipv4_cidr_blocks: crate::into_domain(result.china_ipv4_cidr_blocks), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_list.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_list.rs index 8409649aa..5c73ac1ed 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_list.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_list.rs @@ -131,12 +131,16 @@ pub struct GetListResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetListArgs) -> GetListResult { +pub fn invoke( + args: GetListArgs +) -> GetListResult { - let result = crate::bindings::pulumi::cloudflare::get_list::invoke(&crate::bindings::pulumi::cloudflare::get_list::Args { - account_id: &args.account_id.get_inner(), - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_list::invoke( + &crate::bindings::pulumi::cloudflare::get_list::Args { + account_id: &args.account_id.get_inner(), + name: &args.name.get_inner(), + } + ); GetListResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_lists.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_lists.rs index a5923b548..f68205dc1 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_lists.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_lists.rs @@ -115,11 +115,15 @@ pub struct GetListsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetListsArgs) -> GetListsResult { +pub fn invoke( + args: GetListsArgs +) -> GetListsResult { - let result = crate::bindings::pulumi::cloudflare::get_lists::invoke(&crate::bindings::pulumi::cloudflare::get_lists::Args { - account_id: &args.account_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_lists::invoke( + &crate::bindings::pulumi::cloudflare::get_lists::Args { + account_id: &args.account_id.get_inner(), + } + ); GetListsResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_load_balancer_pools.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_load_balancer_pools.rs index 3b16d4bad..e5a0af055 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_load_balancer_pools.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_load_balancer_pools.rs @@ -143,13 +143,17 @@ pub struct GetLoadBalancerPoolsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetLoadBalancerPoolsArgs) -> GetLoadBalancerPoolsResult { +pub fn invoke( + args: GetLoadBalancerPoolsArgs +) -> GetLoadBalancerPoolsResult { - let result = crate::bindings::pulumi::cloudflare::get_load_balancer_pools::invoke(&crate::bindings::pulumi::cloudflare::get_load_balancer_pools::Args { - account_id: &args.account_id.get_inner(), - filter: &args.filter.get_inner(), - pools: &args.pools.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_load_balancer_pools::invoke( + &crate::bindings::pulumi::cloudflare::get_load_balancer_pools::Args { + account_id: &args.account_id.get_inner(), + filter: &args.filter.get_inner(), + pools: &args.pools.get_inner(), + } + ); GetLoadBalancerPoolsResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_certificate.rs index ad0b29ae3..0c1febfed 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_certificate.rs @@ -122,11 +122,15 @@ pub struct GetOriginCaCertificateResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetOriginCaCertificateArgs) -> GetOriginCaCertificateResult { +pub fn invoke( + args: GetOriginCaCertificateArgs +) -> GetOriginCaCertificateResult { - let result = crate::bindings::pulumi::cloudflare::get_origin_ca_certificate::invoke(&crate::bindings::pulumi::cloudflare::get_origin_ca_certificate::Args { - id: &args.id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_origin_ca_certificate::invoke( + &crate::bindings::pulumi::cloudflare::get_origin_ca_certificate::Args { + id: &args.id.get_inner(), + } + ); GetOriginCaCertificateResult { certificate: crate::into_domain(result.certificate), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_root_certificate.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_root_certificate.rs index beed2f0b7..60d46a7c0 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_root_certificate.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_origin_ca_root_certificate.rs @@ -118,11 +118,15 @@ pub struct GetOriginCaRootCertificateResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetOriginCaRootCertificateArgs) -> GetOriginCaRootCertificateResult { +pub fn invoke( + args: GetOriginCaRootCertificateArgs +) -> GetOriginCaRootCertificateResult { - let result = crate::bindings::pulumi::cloudflare::get_origin_ca_root_certificate::invoke(&crate::bindings::pulumi::cloudflare::get_origin_ca_root_certificate::Args { - algorithm: &args.algorithm.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_origin_ca_root_certificate::invoke( + &crate::bindings::pulumi::cloudflare::get_origin_ca_root_certificate::Args { + algorithm: &args.algorithm.get_inner(), + } + ); GetOriginCaRootCertificateResult { algorithm: crate::into_domain(result.algorithm), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_record.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_record.rs index 7a0a8a77e..8fad8915b 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_record.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_record.rs @@ -152,15 +152,19 @@ pub struct GetRecordResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetRecordArgs) -> GetRecordResult { +pub fn invoke( + args: GetRecordArgs +) -> GetRecordResult { - let result = crate::bindings::pulumi::cloudflare::get_record::invoke(&crate::bindings::pulumi::cloudflare::get_record::Args { - content: &args.content.get_inner(), - hostname: &args.hostname.get_inner(), - priority: &args.priority.get_inner(), - type_: &args.type_.get_inner(), - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_record::invoke( + &crate::bindings::pulumi::cloudflare::get_record::Args { + content: &args.content.get_inner(), + hostname: &args.hostname.get_inner(), + priority: &args.priority.get_inner(), + type_: &args.type_.get_inner(), + zone_id: &args.zone_id.get_inner(), + } + ); GetRecordResult { content: crate::into_domain(result.content), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_rulesets.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_rulesets.rs index d90e729d0..c299d2e4c 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_rulesets.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_rulesets.rs @@ -147,14 +147,18 @@ pub struct GetRulesetsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetRulesetsArgs) -> GetRulesetsResult { +pub fn invoke( + args: GetRulesetsArgs +) -> GetRulesetsResult { - let result = crate::bindings::pulumi::cloudflare::get_rulesets::invoke(&crate::bindings::pulumi::cloudflare::get_rulesets::Args { - account_id: &args.account_id.get_inner(), - filter: &args.filter.get_inner(), - include_rules: &args.include_rules.get_inner(), - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_rulesets::invoke( + &crate::bindings::pulumi::cloudflare::get_rulesets::Args { + account_id: &args.account_id.get_inner(), + filter: &args.filter.get_inner(), + include_rules: &args.include_rules.get_inner(), + zone_id: &args.zone_id.get_inner(), + } + ); GetRulesetsResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel.rs index 13846f6fe..6334c615c 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel.rs @@ -131,12 +131,16 @@ pub struct GetTunnelResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetTunnelArgs) -> GetTunnelResult { +pub fn invoke( + args: GetTunnelArgs +) -> GetTunnelResult { - let result = crate::bindings::pulumi::cloudflare::get_tunnel::invoke(&crate::bindings::pulumi::cloudflare::get_tunnel::Args { - account_id: &args.account_id.get_inner(), - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_tunnel::invoke( + &crate::bindings::pulumi::cloudflare::get_tunnel::Args { + account_id: &args.account_id.get_inner(), + name: &args.name.get_inner(), + } + ); GetTunnelResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel_virtual_network.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel_virtual_network.rs index 169e53bf6..3fc0ce707 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel_virtual_network.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_tunnel_virtual_network.rs @@ -129,12 +129,16 @@ pub struct GetTunnelVirtualNetworkResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetTunnelVirtualNetworkArgs) -> GetTunnelVirtualNetworkResult { +pub fn invoke( + args: GetTunnelVirtualNetworkArgs +) -> GetTunnelVirtualNetworkResult { - let result = crate::bindings::pulumi::cloudflare::get_tunnel_virtual_network::invoke(&crate::bindings::pulumi::cloudflare::get_tunnel_virtual_network::Args { - account_id: &args.account_id.get_inner(), - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_tunnel_virtual_network::invoke( + &crate::bindings::pulumi::cloudflare::get_tunnel_virtual_network::Args { + account_id: &args.account_id.get_inner(), + name: &args.name.get_inner(), + } + ); GetTunnelVirtualNetworkResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_user.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_user.rs index fb7bbfc84..97c22c8a6 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_user.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_user.rs @@ -173,10 +173,6 @@ //! ``` //! -#[derive(bon::Builder)] -#[builder(finish_fn = build_struct)] -pub struct GetUserArgs { -} pub struct GetUserResult { /// The user's email address. @@ -190,10 +186,11 @@ pub struct GetUserResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetUserArgs) -> GetUserResult { +pub fn invoke( +) -> GetUserResult { - let result = crate::bindings::pulumi::cloudflare::get_user::invoke(&crate::bindings::pulumi::cloudflare::get_user::Args { - }); + let result = crate::bindings::pulumi::cloudflare::get_user::invoke( + ); GetUserResult { email: crate::into_domain(result.email), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone.rs index cfb1df177..06621e3ee 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone.rs @@ -191,13 +191,17 @@ pub struct GetZoneResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetZoneArgs) -> GetZoneResult { +pub fn invoke( + args: GetZoneArgs +) -> GetZoneResult { - let result = crate::bindings::pulumi::cloudflare::get_zone::invoke(&crate::bindings::pulumi::cloudflare::get_zone::Args { - account_id: &args.account_id.get_inner(), - name: &args.name.get_inner(), - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_zone::invoke( + &crate::bindings::pulumi::cloudflare::get_zone::Args { + account_id: &args.account_id.get_inner(), + name: &args.name.get_inner(), + zone_id: &args.zone_id.get_inner(), + } + ); GetZoneResult { account_id: crate::into_domain(result.account_id), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_cache_reserve.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_cache_reserve.rs index 1e2d86a78..3e460711a 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_cache_reserve.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_cache_reserve.rs @@ -117,11 +117,15 @@ pub struct GetZoneCacheReserveResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetZoneCacheReserveArgs) -> GetZoneCacheReserveResult { +pub fn invoke( + args: GetZoneCacheReserveArgs +) -> GetZoneCacheReserveResult { - let result = crate::bindings::pulumi::cloudflare::get_zone_cache_reserve::invoke(&crate::bindings::pulumi::cloudflare::get_zone_cache_reserve::Args { - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_zone_cache_reserve::invoke( + &crate::bindings::pulumi::cloudflare::get_zone_cache_reserve::Args { + zone_id: &args.zone_id.get_inner(), + } + ); GetZoneCacheReserveResult { enabled: crate::into_domain(result.enabled), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_dnssec.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_dnssec.rs index de1d54405..7e7005796 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_dnssec.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zone_dnssec.rs @@ -134,11 +134,15 @@ pub struct GetZoneDnssecResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetZoneDnssecArgs) -> GetZoneDnssecResult { +pub fn invoke( + args: GetZoneDnssecArgs +) -> GetZoneDnssecResult { - let result = crate::bindings::pulumi::cloudflare::get_zone_dnssec::invoke(&crate::bindings::pulumi::cloudflare::get_zone_dnssec::Args { - zone_id: &args.zone_id.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_zone_dnssec::invoke( + &crate::bindings::pulumi::cloudflare::get_zone_dnssec::Args { + zone_id: &args.zone_id.get_inner(), + } + ); GetZoneDnssecResult { algorithm: crate::into_domain(result.algorithm), diff --git a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zones.rs b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zones.rs index 55d1e74a0..6283636a3 100644 --- a/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zones.rs +++ b/providers/pulumi_wasm_provider_cloudflare_rust/src/function/get_zones.rs @@ -135,11 +135,15 @@ pub struct GetZonesResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetZonesArgs) -> GetZonesResult { +pub fn invoke( + args: GetZonesArgs +) -> GetZonesResult { - let result = crate::bindings::pulumi::cloudflare::get_zones::invoke(&crate::bindings::pulumi::cloudflare::get_zones::Args { - filter: &args.filter.get_inner(), - }); + let result = crate::bindings::pulumi::cloudflare::get_zones::invoke( + &crate::bindings::pulumi::cloudflare::get_zones::Args { + filter: &args.filter.get_inner(), + } + ); GetZonesResult { filter: crate::into_domain(result.filter), diff --git a/providers/pulumi_wasm_provider_docker_rust/src/function/get_logs.rs b/providers/pulumi_wasm_provider_docker_rust/src/function/get_logs.rs index e80bf0237..a0f8280e0 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/function/get_logs.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/function/get_logs.rs @@ -54,21 +54,25 @@ pub struct GetLogsResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetLogsArgs) -> GetLogsResult { +pub fn invoke( + args: GetLogsArgs +) -> GetLogsResult { - let result = crate::bindings::pulumi::docker::get_logs::invoke(&crate::bindings::pulumi::docker::get_logs::Args { - details: &args.details.get_inner(), - discard_headers: &args.discard_headers.get_inner(), - follow: &args.follow.get_inner(), - logs_list_string_enabled: &args.logs_list_string_enabled.get_inner(), - name: &args.name.get_inner(), - show_stderr: &args.show_stderr.get_inner(), - show_stdout: &args.show_stdout.get_inner(), - since: &args.since.get_inner(), - tail: &args.tail.get_inner(), - timestamps: &args.timestamps.get_inner(), - until: &args.until.get_inner(), - }); + let result = crate::bindings::pulumi::docker::get_logs::invoke( + &crate::bindings::pulumi::docker::get_logs::Args { + details: &args.details.get_inner(), + discard_headers: &args.discard_headers.get_inner(), + follow: &args.follow.get_inner(), + logs_list_string_enabled: &args.logs_list_string_enabled.get_inner(), + name: &args.name.get_inner(), + show_stderr: &args.show_stderr.get_inner(), + show_stdout: &args.show_stdout.get_inner(), + since: &args.since.get_inner(), + tail: &args.tail.get_inner(), + timestamps: &args.timestamps.get_inner(), + until: &args.until.get_inner(), + } + ); GetLogsResult { details: crate::into_domain(result.details), diff --git a/providers/pulumi_wasm_provider_docker_rust/src/function/get_network.rs b/providers/pulumi_wasm_provider_docker_rust/src/function/get_network.rs index 0bd8f6cbd..97f814e57 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/function/get_network.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/function/get_network.rs @@ -124,11 +124,15 @@ pub struct GetNetworkResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetNetworkArgs) -> GetNetworkResult { +pub fn invoke( + args: GetNetworkArgs +) -> GetNetworkResult { - let result = crate::bindings::pulumi::docker::get_network::invoke(&crate::bindings::pulumi::docker::get_network::Args { - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::docker::get_network::invoke( + &crate::bindings::pulumi::docker::get_network::Args { + name: &args.name.get_inner(), + } + ); GetNetworkResult { driver: crate::into_domain(result.driver), diff --git a/providers/pulumi_wasm_provider_docker_rust/src/function/get_plugin.rs b/providers/pulumi_wasm_provider_docker_rust/src/function/get_plugin.rs index 2ba566bb2..5e0ed2c2c 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/function/get_plugin.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/function/get_plugin.rs @@ -44,12 +44,16 @@ pub struct GetPluginResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetPluginArgs) -> GetPluginResult { +pub fn invoke( + args: GetPluginArgs +) -> GetPluginResult { - let result = crate::bindings::pulumi::docker::get_plugin::invoke(&crate::bindings::pulumi::docker::get_plugin::Args { - alias: &args.alias.get_inner(), - id: &args.id.get_inner(), - }); + let result = crate::bindings::pulumi::docker::get_plugin::invoke( + &crate::bindings::pulumi::docker::get_plugin::Args { + alias: &args.alias.get_inner(), + id: &args.id.get_inner(), + } + ); GetPluginResult { alias: crate::into_domain(result.alias), diff --git a/providers/pulumi_wasm_provider_docker_rust/src/function/get_registry_image.rs b/providers/pulumi_wasm_provider_docker_rust/src/function/get_registry_image.rs index f51a46931..31cc26301 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/function/get_registry_image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/function/get_registry_image.rs @@ -160,12 +160,16 @@ pub struct GetRegistryImageResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetRegistryImageArgs) -> GetRegistryImageResult { +pub fn invoke( + args: GetRegistryImageArgs +) -> GetRegistryImageResult { - let result = crate::bindings::pulumi::docker::get_registry_image::invoke(&crate::bindings::pulumi::docker::get_registry_image::Args { - insecure_skip_verify: &args.insecure_skip_verify.get_inner(), - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::docker::get_registry_image::invoke( + &crate::bindings::pulumi::docker::get_registry_image::Args { + insecure_skip_verify: &args.insecure_skip_verify.get_inner(), + name: &args.name.get_inner(), + } + ); GetRegistryImageResult { id: crate::into_domain(result.id), diff --git a/providers/pulumi_wasm_provider_docker_rust/src/function/get_remote_image.rs b/providers/pulumi_wasm_provider_docker_rust/src/function/get_remote_image.rs index 9d6315151..ef9c64ff4 100644 --- a/providers/pulumi_wasm_provider_docker_rust/src/function/get_remote_image.rs +++ b/providers/pulumi_wasm_provider_docker_rust/src/function/get_remote_image.rs @@ -188,11 +188,15 @@ pub struct GetRemoteImageResult { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: GetRemoteImageArgs) -> GetRemoteImageResult { +pub fn invoke( + args: GetRemoteImageArgs +) -> GetRemoteImageResult { - let result = crate::bindings::pulumi::docker::get_remote_image::invoke(&crate::bindings::pulumi::docker::get_remote_image::Args { - name: &args.name.get_inner(), - }); + let result = crate::bindings::pulumi::docker::get_remote_image::invoke( + &crate::bindings::pulumi::docker::get_remote_image::Args { + name: &args.name.get_inner(), + } + ); GetRemoteImageResult { id: crate::into_domain(result.id), diff --git a/pulumi_wasm_generator_lib/src/output/rust/function_code.rs.handlebars b/pulumi_wasm_generator_lib/src/output/rust/function_code.rs.handlebars index c98149b79..ce126519d 100644 --- a/pulumi_wasm_generator_lib/src/output/rust/function_code.rs.handlebars +++ b/pulumi_wasm_generator_lib/src/output/rust/function_code.rs.handlebars @@ -2,6 +2,7 @@ //! {{&this}} {{/each}} +{{#if interface.input_properties}} #[derive(bon::Builder)] #[builder(finish_fn = build_struct)] pub struct {{interface.struct_name}}Args { @@ -17,6 +18,7 @@ pub struct {{interface.struct_name}}Args { pub {{arg_name}}: pulumi_wasm_rust::Output<{{&type_}}>, {{/each}} } +{{/if}} pub struct {{interface.struct_name}}Result { {{#each interface.output_properties}} @@ -30,13 +32,21 @@ pub struct {{interface.struct_name}}Result { /// /// Registers a new resource with the given unique name and arguments /// -pub fn invoke(args: {{interface.struct_name}}Args) -> {{interface.struct_name}}Result { +pub fn invoke( +{{#if interface.input_properties}} + args: {{interface.struct_name}}Args +{{/if}} +) -> {{interface.struct_name}}Result { - let result = crate::bindings::pulumi::{{package_name}}::{{interface.name}}::invoke(&crate::bindings::pulumi::{{package_name}}::{{interface.name}}::Args { -{{#each interface.input_properties}} - {{arg_name}}: &args.{{arg_name}}.get_inner(), -{{/each}} - }); + let result = crate::bindings::pulumi::{{package_name}}::{{interface.name}}::invoke( +{{#if interface.input_properties}} + &crate::bindings::pulumi::{{package_name}}::{{interface.name}}::Args { + {{#each interface.input_properties}} + {{arg_name}}: &args.{{arg_name}}.get_inner(), + {{/each}} + } +{{/if}} + ); {{interface.struct_name}}Result { {{#each interface.output_properties}}